mobility-toolbox-js 1.6.1 → 1.6.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -169,7 +169,12 @@ class TrackerLayer extends mixin(Layer) {
169
169
  if (this.map && this.tracker && this.tracker.canvas) {
170
170
  const context = this.tracker.canvas.getContext('2d');
171
171
  const pixel = this.map.getPixelFromCoordinate(coordinate);
172
- return !!context.getImageData(pixel[0], pixel[1], 1, 1).data[3];
172
+ return !!context.getImageData(
173
+ pixel[0] * this.pixelRatio,
174
+ pixel[1] * this.pixelRatio,
175
+ 1,
176
+ 1,
177
+ ).data[3];
173
178
  }
174
179
  return false;
175
180
  }
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "mobility-toolbox-js",
3
3
  "license": "MIT",
4
4
  "description": "Toolbox for JavaScript applications in the domains of mobility and logistics.",
5
- "version": "1.6.1",
5
+ "version": "1.6.2",
6
6
  "main": "index.js",
7
7
  "module": "module.js",
8
8
  "dependencies": {