diff --git a/src/plugins/maps_legacy/public/map/base_maps_visualization.js b/src/plugins/maps_legacy/public/map/base_maps_visualization.js index b639fdf9bb7f..75afed53deb3 100644 --- a/src/plugins/maps_legacy/public/map/base_maps_visualization.js +++ b/src/plugins/maps_legacy/public/map/base_maps_visualization.js @@ -164,7 +164,7 @@ export function BaseMapsVisualizationProvider() { try { if (this._wmsConfigured()) { - if (WMS_MINZOOM > this._opensearchDashboardsMap.getMaxZoomLevel()) { + if (WMS_MAXZOOM > this._opensearchDashboardsMap.getMaxZoomLevel()) { this._opensearchDashboardsMap.setMinZoom(WMS_MINZOOM); this._opensearchDashboardsMap.setMaxZoom(WMS_MAXZOOM); }