summaryrefslogtreecommitdiffstats
path: root/loleaflet/src/layer/tile/CalcTileLayer.js
diff options
context:
space:
mode:
Diffstat (limited to 'loleaflet/src/layer/tile/CalcTileLayer.js')
-rw-r--r--loleaflet/src/layer/tile/CalcTileLayer.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/loleaflet/src/layer/tile/CalcTileLayer.js b/loleaflet/src/layer/tile/CalcTileLayer.js
index 8960ddaf5c..11d0a47098 100644
--- a/loleaflet/src/layer/tile/CalcTileLayer.js
+++ b/loleaflet/src/layer/tile/CalcTileLayer.js
@@ -109,7 +109,7 @@ L.CalcTileLayer = L.TileLayer.extend({
var annotations = this._annotations[this._selectedPart];
for (var key in annotations) {
var annotation = annotations[key]._annotation;
- if (this._cellCursor.contains(annotation._data.cellPos)) {
+ if (this._cellCursor.intersects(annotation._data.cellPos)) {
this._map.addLayer(annotation);
annotation.show();
}