diff --git a/x-pack/plugins/gis/public/shared/layers/tile_layer.js b/x-pack/plugins/gis/public/shared/layers/tile_layer.js index 8a7e711680a9..3157f92339a8 100644 --- a/x-pack/plugins/gis/public/shared/layers/tile_layer.js +++ b/x-pack/plugins/gis/public/shared/layers/tile_layer.js @@ -108,12 +108,12 @@ export class TileLayer extends AbstractLayer { id: mbLayerId, type: 'raster', source: sourceId, - minzoom: 0, - maxzoom: 22, + minzoom: this._descriptor.minZoom, + maxzoom: this._descriptor.maxZoom, }); + this._setTileLayerProperties(mbMap, mbLayerId); await this._tileLoadErrorTracker(mbMap, url); - this._setTileLayerProperties(mbMap, mbLayerId); } _setTileLayerProperties(mbMap, mbLayerId) {