Use the right variable to get the hitTolerance value

This commit is contained in:
Frederic Junod
2019-09-27 11:03:21 +02:00
parent ea88e6cbd4
commit 701dc3b54a

View File

@@ -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);
}