Skip to content

Commit

Permalink
fix min and max zoom levels
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasm0 committed Jul 17, 2024
1 parent 1be61b1 commit 2bc5e51
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/ContextExamples/Position/Map.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ const Map: FunctionComponent = () => {
],
zoomControl: false,
maxZoom: 16,
minZoom: 3,
minZoom: 6,
crs: getCrsRd(),
maxBounds: [
[52.25168, 4.64034],
Expand Down
2 changes: 2 additions & 0 deletions src/pages/ReactLeaflet/GeoJSONLayer/GeoJSONLayer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ const GeoJSONLayer = (): JSX.Element => {
<MapContainer
center={L.latLng([52.370216, 4.895168])}
zoom={8}
maxZoom={16}
minZoom={6}
maxBounds={[
[52.25168, 4.64034],
[52.50536, 5.10737],
Expand Down
2 changes: 2 additions & 0 deletions src/pages/ReactLeaflet/WMSLayer/WMSLayer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ const WMSLayer = (): JSX.Element => (
<MapContainer
center={L.latLng([52.370216, 4.895168])}
zoom={13}
maxZoom={16}
minZoom={6}
maxBounds={[
[52.36966606270195, 4.886568897250246],
[52.37253554766886, 4.892099548064893],
Expand Down

0 comments on commit 2bc5e51

Please sign in to comment.