Simpler tileLoadFunction for vector tiles

This commit is contained in:
Andreas Hocevar
2019-12-08 17:21:56 +01:00
parent f52f72dd96
commit f460198850
2 changed files with 15 additions and 2 deletions

View File

@@ -105,7 +105,9 @@ class VectorTile extends Tile {
if (this.state == TileState.IDLE) {
this.setState(TileState.LOADING);
this.tileLoadFunction_(this, this.url_);
this.loader_(this.extent, this.resolution, this.projection);
if (this.loader_) {
this.loader_(this.extent, this.resolution, this.projection);
}
}
}