Skip to content

Commit 66d88cb

Browse files
Update minZoom configuration in MapTemplate to use appConfig setting or fallback to default value
1 parent 554e118 commit 66d88cb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/map-template/src/components/MapTemplate/MapTemplate.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -524,7 +524,7 @@ function MapTemplate({ apiKey, gmApiKey, mapboxAccessToken, venue, locationId, p
524524
: appConfig?.appSettings?.showMapMarkers),
525525
miTransitionLevel: miTransitionLevel,
526526
// If ignoreViewportBounds is true, we would like to see the map at the minimum zoom level (World Map).
527-
minZoom: appConfig?.appSettings?.ignoreViewportBounds ? 1 : ZoomLevelValues.minZoom,
527+
minZoom: appConfig?.appSettings?.minZoom ?? ZoomLevelValues.minZoom,
528528
mapboxMapStyle: appConfig?.appSettings?.mapboxMapStyle || mapboxMapStyle,
529529
// Boolean from the App Config comes as a string. We need to return clean boolean value based on that.
530530
enableFullScreenButton:

0 commit comments

Comments
 (0)