Skip to content

Commit

Permalink
Disable pitch and rotation
Browse files Browse the repository at this point in the history
  • Loading branch information
nerik committed Sep 14, 2023
1 parent 962e440 commit d3314dd
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion app/scripts/components/common/map/map-component.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React, { useCallback, ReactElement, useContext, useMemo } from 'react';
import React, { useCallback, ReactElement, useContext, useMemo, useEffect } from 'react';
import ReactMapGlMap from 'react-map-gl';
import { ProjectionOptions } from 'veda';
import 'mapbox-gl/dist/mapbox-gl.css';
Expand Down Expand Up @@ -44,6 +44,10 @@ export default function MapComponent({
<ReactMapGlMap
id={id}
mapboxAccessToken={process.env.MAPBOX_TOKEN}
dragRotate={false}
touchPitch={false}
pitchWithRotate={false}
maxPitch={0}
initialViewState={initialViewState}
mapStyle={style as any}
onMove={onMove}
Expand Down

0 comments on commit d3314dd

Please sign in to comment.