mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 17:59:23 -04:00
[Maps] Apply tile styles before waiting for _tileLoadErrorTracker timer to expire (#29798)
* [Maps] avoid re-loading tiles after * set starting min and max to values provided from descriptor
This commit is contained in:
parent
d9255a9798
commit
37f507e5a9
1 changed files with 3 additions and 3 deletions
|
@ -108,12 +108,12 @@ export class TileLayer extends AbstractLayer {
|
||||||
id: mbLayerId,
|
id: mbLayerId,
|
||||||
type: 'raster',
|
type: 'raster',
|
||||||
source: sourceId,
|
source: sourceId,
|
||||||
minzoom: 0,
|
minzoom: this._descriptor.minZoom,
|
||||||
maxzoom: 22,
|
maxzoom: this._descriptor.maxZoom,
|
||||||
});
|
});
|
||||||
|
this._setTileLayerProperties(mbMap, mbLayerId);
|
||||||
|
|
||||||
await this._tileLoadErrorTracker(mbMap, url);
|
await this._tileLoadErrorTracker(mbMap, url);
|
||||||
this._setTileLayerProperties(mbMap, mbLayerId);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
_setTileLayerProperties(mbMap, mbLayerId) {
|
_setTileLayerProperties(mbMap, mbLayerId) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue