Use the right variable to get the hitTolerance value
This commit is contained in:
1 parent
ea88e6cbd4
commit
701dc3b54a
1 file changed
+1
-1
@@ -604,7 +604,7 @@ class PluggableMap extends BaseObject {
|
||||
}
|
||||
const options = opt_options || /** @type {AtPixelOptions} */ ({});
|
||||
const hitTolerance = options.hitTolerance !== undefined ?
|
||||
opt_options.hitTolerance * this.frameState_.pixelRatio : 0;
|
||||
options.hitTolerance * this.frameState_.pixelRatio : 0;
|
||||
const layerFilter = options.layerFilter || TRUE;
|
||||
return this.renderer_.forEachLayerAtPixel(pixel, this.frameState_, hitTolerance, callback, layerFilter);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user