我在页面上有 yandex 地图。对于这张地图,我绑定事件处理程序'actionend'。
我需要在这个处理程序中获取地图中心的当前坐标。请帮我做。
代码:
ymaps.ready(init);
var myMap;
function init(){
myMap = new ymaps.Map("map", {
center: [55.76, 37.64],
controls: [],
zoom: 18
});
myMap.events.add('actionend', function (e) {
console.log('stop action');
console.log('print current coords of map center???????????????');
});
};