2012-03-14 63 views

回答

1

myMarker.moveTo(map.getPixelFromLonLat(new OpenLayers.LonLat(-98, 35))); 

這裏有一個DEMO/Example LINK

只需點擊移動標記按鈕。 enter image description here

+0

此作品真的非常感謝 – 2012-03-15 05:22:26

+0

可以工作,但[這裏](http://stackoverflow.com/a/9291473/2835520)**沒有標記爲「APIMethod」**,並建議刪除標記並用新座標添加新標記。 – IgniteCoders 2015-06-25 18:09:03