[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:
Nathan Reese 2019-01-31 21:52:47 -07:00 committed by GitHub
parent d9255a9798
commit 37f507e5a9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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) {