Seperate getEventCoordinate into internal/external method
This commit is contained in:
1 parent
686c185de3
commit
5711cd30d0
5 files changed
+16
-7
No files matched your search
+1
-1
@@ -135,7 +135,7 @@ map.on('pointermove', function(evt) {
|
||||
if (evt.dragging) {
|
||||
return;
|
||||
}
|
||||
const coordinate = map.getEventCoordinate(evt.originalEvent);
|
||||
const coordinate = map.getEventCoordinateExternal(evt.originalEvent);
|
||||
displaySnap(coordinate);
|
||||
});
|
||||
|
||||
|
||||
@@ -85,7 +85,7 @@ map.on('pointermove', function(evt) {
|
||||
if (evt.dragging) {
|
||||
return;
|
||||
}
|
||||
const coordinate = map.getEventCoordinate(evt.originalEvent);
|
||||
const coordinate = map.getEventCoordinateExternal(evt.originalEvent);
|
||||
displaySnap(coordinate);
|
||||
});
|
||||
|
||||
|
||||
+1
-1
@@ -63,7 +63,7 @@ map.on('pointermove', function(evt) {
|
||||
if (evt.dragging) {
|
||||
return;
|
||||
}
|
||||
const coordinate = map.getEventCoordinate(evt.originalEvent);
|
||||
const coordinate = map.getEventCoordinateExternal(evt.originalEvent);
|
||||
displayCountryInfo(coordinate);
|
||||
});
|
||||
|
||||
|
||||
Reference in new issue
Block a user