Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
element("map").addEventListener("click", function(event) {
var domPoint = new DOMPoint();
domPoint.x = event.pageX;
domPoint.y = event.pageY;
// Con el punto donde hemos hecho click se lo
// pasamos al mapa para que nos de las coordenadas
let coordinate = map.convertPointOnPageToCoordinate(domPoint);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.