Answer the question
In order to leave comments, you need to log in
How to convert cursor coordinates to latitude/longtitude?
There is a map. I hung a handler for mouse movement like this:
document.getElementById('map').addEventListener("mousemove", (e) => {
console.log(e.clientX, e.clientY);
console.log(this.widgetMap.converter.pageToGlobal([e.clientX, e.clientY]))
});
[55.780739, 49.127621]
[10678127.080786489, 5257339.447339956]
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question