如何在谷歌地圖上進(jìn)行標(biāo)注?
初風(fēng).
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> </> ============================================================ 更多的例子:鏈接 你懸賞分都沒(méi)有,問(wèn)的又是這么復(fù)雜的問(wèn)題,本來(lái)不是很愿意回答的。但是正好我上上個(gè)學(xué)期做過(guò)調(diào)用google map 的項(xiàng)目,想想你估計(jì)也是要作類(lèi)似的項(xiàng)目把,要是沒(méi)人引導(dǎo),從頭開(kāi)始做的確比較難,所以想想還是幫你一下。上面的除了代碼外,都不是從網(wǎng)上粘貼拷貝的噢。就看在打了這么多字的份上,我覺(jué)得你也該給我追加分?jǐn)?shù)了!呵呵。
皮小哥
2021-09-23 17:40:34 1313查看 1回答
Gary Z鄭
2021-09-23 17:41:14 766查看 1回答
咖喱雞的秘密
2021-09-23 17:42:29 532查看 1回答
Dark·B
2021-09-23 17:42:33 533查看 2回答