diff --git a/packages/geo/src/lib/map/shared/controllers/view.ts b/packages/geo/src/lib/map/shared/controllers/view.ts index 3fb27a4086..f307763198 100644 --- a/packages/geo/src/lib/map/shared/controllers/view.ts +++ b/packages/geo/src/lib/map/shared/controllers/view.ts @@ -326,8 +326,8 @@ export class MapViewController extends MapController { const moySize = (toSize + fromSize) / 2; const xSize = distCenter / moySize; - const maxZoom = action === MapViewAction.Move ? zoom : 17; - console.log(this.padding); + const maxZoom = action === MapViewAction.Move ? zoom : zoom > 19 ? zoom : 19; + olView.fit(extent, { maxZoom, padding: this.padding,