From 701dc3b54a10eb66b103c50efdd062bdfdf74656 Mon Sep 17 00:00:00 2001 From: Frederic Junod Date: Fri, 27 Sep 2019 11:03:21 +0200 Subject: [PATCH] Use the right variable to get the hitTolerance value --- src/ol/PluggableMap.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ol/PluggableMap.js b/src/ol/PluggableMap.js index 415cf31317..a064ae88b2 100644 --- a/src/ol/PluggableMap.js +++ b/src/ol/PluggableMap.js @@ -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); }