2
創建一個谷歌地圖,其商店位置在用戶輸入的地址50英里以內。有地圖&精確顯示正確,但所有的精確點只有一個點。我希望能夠標記他們A,B,C,D等,以便我可以列出側邊欄中的地址&地址。如何在Google地圖Pinpoint上添加標籤?
我該怎麼做?這裏是我用來添加我的精確點的代碼。
var point = new GLatLng(latitude, longitude);
var marker = new GMarker(point);
GEvent.addListener(marker, "click", function() {
map.openInfoWindowHtml(point, myHtml);
});
map.addOverlay(marker);
http://stackoverflow.com/questions/2343575/google-maps-如何對加號或 - 字母標記物/ 2343612#2343612 – Bob 2010-03-23 19:48:20