Skip to content

Commit 835b049

Browse files
authored
Merge pull request #271 from hancocb/enhancement/increase-max-zoom
[Enhancement] Increase maximum zoom level to 26 for all map components
2 parents 5026805 + fc1ef7f commit 835b049

6 files changed

Lines changed: 7 additions & 0 deletions

File tree

frontend/src/components/maps/CompareMap/CompareMap.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,7 @@ export default function CompareMap() {
203203
style={LeftMapStyle}
204204
mapboxAccessToken={mapboxAccessToken || undefined}
205205
mapStyle={mapStyle}
206+
maxZoom={26}
206207
reuseMaps={true}
207208
>
208209
{/* Display project boundary when project activated */}
@@ -256,6 +257,7 @@ export default function CompareMap() {
256257
style={RightMapStyle}
257258
mapboxAccessToken={mapboxAccessToken}
258259
mapStyle={mapStyle}
260+
maxZoom={26}
259261
reuseMaps={true}
260262
>
261263
{/* Display project boundary when project activated */}

frontend/src/components/maps/DrawFieldMap/DrawFieldMap.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -261,6 +261,7 @@ export default function DrawFieldMap({
261261
style={{ width: '100%', height: '100%' }}
262262
mapboxAccessToken={mapboxAccessToken || undefined}
263263
mapStyle={mapStyle}
264+
maxZoom={26}
264265
>
265266
{/* Render GeoJSON feature collection if it exists */}
266267
{featureCollection && !editFeature && (

frontend/src/components/maps/HomeMap.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,7 @@ export default function HomeMap({ layers }: { layers: MapLayerProps[] }) {
219219
}}
220220
mapboxAccessToken={mapboxAccessToken || undefined}
221221
mapStyle={mapStyle}
222+
maxZoom={26}
222223
onClick={handleMapClick}
223224
onMoveEnd={handleMoveEnd}
224225
>

frontend/src/components/maps/ShareMap.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,7 @@ export default function ShareMap() {
178178
}}
179179
mapboxAccessToken={mapboxAccessToken || undefined}
180180
mapStyle={mapStyle}
181+
maxZoom={26}
181182
reuseMaps={true}
182183
>
183184
{/* Display raster tiles */}

frontend/src/components/pages/admin/DashboardMap.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@ export default function DashboardMap() {
106106
}}
107107
mapboxAccessToken={mapboxAccessToken || undefined}
108108
mapStyle={mapStyle}
109+
maxZoom={26}
109110
reuseMaps={true}
110111
onClick={handleMapClick}
111112
>

frontend/src/components/pages/projects/iForester/IForesterMap.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,7 @@ export default function IForesterMap() {
139139
}}
140140
mapboxAccessToken={mapboxAccessToken || undefined}
141141
mapStyle={mapStyle}
142+
maxZoom={26}
142143
reuseMaps={true}
143144
>
144145
{/* Cluster markers */}

0 commit comments

Comments
 (0)