上添加字母來標記我我想信添加到我的標記,然後有多個標記(14是準確的)字母。到目前爲止,我沒有成功。我是一個具有代碼和谷歌API的完全新手。谷歌地圖API:我的谷歌地圖
你能告訴什麼碼L需要添加,在哪裏?
下面是我的代碼:
<script src="http://maps.google.com/maps?file=api&v=2&key=....
type="text/javascript"></script>
<script type="text/javascript">
//<![CDATA[
function load() {
if (GBrowserIsCompatible()) {
var map = new GMap2(document.getElementById("map"));
map.addControl(new GMapTypeControl());
map.addControl(new GLargeMapControl());
map.addControl(new GOverviewMapControl());
map.addControl(new GScaleControl());
var bounds = map.getBounds();
var southWest = bounds.getSouthWest();
var northEast = bounds.getNorthEast();
var lngSpan = northEast.lng() - southWest.lng();
var latSpan = northEast.lat() - southWest.lat();
for (var i = 0; i < 10; i++) {
var point = new GLatLng(southWest.lat() + latSpan * Math.random(),
southWest.lng() + lngSpan * Math.random());
map.addOverlay(new GMarker(point));
var point = new GLatLng(lat,ling);
map.setCenter(point, 10);
var marker = new GMarker(point);
map.addOverlay(marker);
}
GEvent.addListener(map, "moveend", function() {
var center = map.getCenter();
document.getElementById("message").innerHTML = center.toString();
});
map.setCenter(new GLatLng(lat,ling), 7);
}
}
//]]>
</script>
<style type="text/css">
展館位置
感謝
>>我想信添加到我的標記 - 你是不是想改變圖標本身?我不確定你想要做什麼。 – praethorian 2010-08-11 16:04:40