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.
- package/index.js +1 -1
- package/index.js.map +1 -1
- package/ol/layers/TrackerLayer.js +6 -1
- package/package.json +1 -1
|
@@ -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(
|
|
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