Skip to content

Commit

Permalink
adjust zoom setting
Browse files Browse the repository at this point in the history
  • Loading branch information
zuhdil committed May 10, 2021
1 parent 1ec1725 commit 8d56947
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion akvo/rsr/dir/app/modules/index/map.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,8 @@ const Map = ({ data, getRef, handlePan, getCenter, getMarkerBounds, onHoverProje
mapRef.current = new mapboxgl.Map({
container: 'map',
style: 'mapbox://styles/mapbox/light-v10',
zoom: 2
zoom: 2,
maxZoom: 15
})
const nav = new mapboxgl.NavigationControl();
mapRef.current.addControl(nav, 'top-right')
Expand Down

0 comments on commit 8d56947

Please sign in to comment.