fix(maxZoom): set option correctly closes #563

This commit is contained in:
moklick
2020-10-08 15:42:39 +02:00
parent 779a07b448
commit d266a48c14

View File

@@ -397,7 +397,7 @@ export const storeModel: StoreModel = {
}),
setMaxZoom: action((state, maxZoom) => {
state.minZoom = maxZoom;
state.maxZoom = maxZoom;
if (state.d3Zoom) {
state.d3Zoom.scaleExtent([state.minZoom, maxZoom]);