Merge pull request #10228 from ahocevar/vectortile-hitdetect-rendertile
Use render tiles instead of source tiles for hit detection
This commit is contained in:
@@ -60,6 +60,11 @@ class VectorRenderTile extends Tile {
|
||||
*/
|
||||
this.errorSourceTileKeys = {};
|
||||
|
||||
/**
|
||||
* @type {ImageData}
|
||||
*/
|
||||
this.hitDetectionImageData = null;
|
||||
|
||||
/**
|
||||
* @private
|
||||
* @type {!Object<string, ReplayState>}
|
||||
@@ -72,9 +77,9 @@ class VectorRenderTile extends Tile {
|
||||
this.wantedResolution;
|
||||
|
||||
/**
|
||||
* @type {!function(import("./VectorRenderTile.js").default):Array<import("./VectorTile.js").default>}
|
||||
* @type {!function():Array<import("./VectorTile.js").default>}
|
||||
*/
|
||||
this.getSourceTiles_ = getSourceTiles;
|
||||
this.getSourceTiles = getSourceTiles.bind(this, this);
|
||||
|
||||
/**
|
||||
* @type {!function(import("./VectorRenderTile.js").default):void}
|
||||
@@ -184,7 +189,7 @@ class VectorRenderTile extends Tile {
|
||||
* @inheritDoc
|
||||
*/
|
||||
load() {
|
||||
this.getSourceTiles_(this);
|
||||
this.getSourceTiles();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user