[英]OpenLayers 3 get mouse coordinates on select interaction
I would like to get the coordinates of the mouse click that the select interaction is responding to. 我想获取选择交互正在响应的鼠标单击的坐标。 Is there an easy way to do this?
是否有捷径可寻?
selectInteraction.on('select', function(evt) {
console.info(evt.mapBrowserEvent.coordinate);
});
Always, console.info(evt)
to see if there's something there. 总是,
console.info(evt)
看看那里是否有东西。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.