2
我使用的是OpenLayers,我已經找到拖動標記的實現,但沒有關於如何返回拖動位置的文檔。我已經試過這樣:我怎樣才能拖動一個標記,並得到lon/lat
drag = new OpenLayers.Control.DragFeature(vectors, {
autoActivate: true,
onComplete: function() {
alert('hello')
}
});
不退還其標記被拖所以我不能拖後得到其經度或緯度。