如何在谷歌地圖上進行標注?
mear楊
1.0 Strict//EN" " 鏈接"> < xmlns=" 鏈接" xmlns:v="urn:schemas-microsoft-com:vml"> <head> <meta http-equiv="content-type" content="text/; charset=utf-8"/> <title>Google Maps JavaScript API Example: Simple Markers</title> <script src=" 鏈接" type="text/javascript"></script> <script type="text/javascript"> function initialize() { if (GBrowserIsCompatible()) { var map = new GMap2(document.getElementById("map_canvas")); map.setCenter(new GLatLng(3
7.4419, -12
2.1419), 13); // Add 10 markers to the map at random locations 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 latlng = new GLatLng(southWest.lat() + latSpan * Math.random(), southWest.lng() + lngSpan * Math.random()); map.addOverlay(new GMarker(latlng)); } } } </script> </head> <body onload="initialize()" onunload="GUnload()"> <div id="map_canvas" style="width: 500px; height: 300px"></div> </body> </> ============================================================ 更多的例子: 鏈接 你懸賞分都沒有,問的又是這么復(fù)雜的問題,本來不是很愿意回答的。但是正好我上上個學(xué)期做過調(diào)用google map 的項目,想想你估計也是要作類似的項目把,要是沒人引導(dǎo),從頭開始做的確比較難,所以想想還是幫你一下。上面的除了代碼外,都不是從網(wǎng)上粘貼拷貝的噢。就看在打了這么多字的份上,我覺得你也該給我追加分數(shù)了!呵呵。
皮小哥
2021-09-23 17:28:21 1318查看 1回答
咖喱雞的秘密
2021-09-23 17:30:22 557查看 1回答
Dark·B
2021-09-23 17:30:22 433查看 2回答
章魚
2021-09-23 17:34:30 675查看 2回答
2021-09-23 17:54:19 710查看 0回答