如何在谷歌地圖上進行標注?
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> </> ============================================================ 更多的例子: 鏈接 你懸賞分都沒有,問的又是這么復雜的問題,本來不是很愿意回答的。但是正好我上上個學期做過調用google map 的項目,想想你估計也是要作類似的項目把,要是沒人引導,從頭開始做的確比較難,所以想想還是幫你一下。上面的除了代碼外,都不是從網上粘貼拷貝的噢。就看在打了這么多字的份上,我覺得你也該給我追加分數了!呵呵。
皮小哥
2021-09-23 17:40:34 1312查看 1回答
Gary Z鄭
2021-09-23 17:41:14 765查看 1回答
咖喱雞的秘密
2021-09-23 17:42:29 530查看 1回答