New eslint config with no-multi-assign
This commit is contained in:
@@ -180,7 +180,8 @@ class UrlTile extends TileSource {
|
||||
* @api
|
||||
*/
|
||||
setUrl(url) {
|
||||
const urls = this.urls = expandUrl(url);
|
||||
const urls = expandUrl(url);
|
||||
this.urls = urls;
|
||||
this.setUrls(urls);
|
||||
}
|
||||
|
||||
|
||||
@@ -380,8 +380,9 @@ class VectorTile extends UrlTile {
|
||||
// A tile grid that matches the tile size of the source tile grid is more
|
||||
// likely to have 1:1 relationships between source tiles and rendered tiles.
|
||||
const sourceTileGrid = this.tileGrid;
|
||||
tileGrid = this.tileGrids_[code] = createForProjection(projection, undefined,
|
||||
tileGrid = createForProjection(projection, undefined,
|
||||
sourceTileGrid ? sourceTileGrid.getTileSize(sourceTileGrid.getMinZoom()) : undefined);
|
||||
this.tileGrids_[code] = tileGrid;
|
||||
}
|
||||
return tileGrid;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user