Re: [問題] 關於與GOOGLE MAP的結合

看板Ajax作者 (順)時間17年前 (2008/09/27 18:58), 編輯推噓1(101)
留言2則, 2人參與, 最新討論串2/2 (看更多)
※ 引述《idcomputer (順)》之銘言: : 請問像下列這個網站 : http://www.i-city.com.tw/ : 它中的的逢甲地圖&店家資訊搜尋的部份 : 應該是他自己畫的吧?! : 不過左下角有寫個POWERED BY GOOGLE : 請問是怎麼做到這樣功能的呢?! <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "" rel="nofollow">http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="" rel="nofollow">http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="content-type" content="text/html; charset=utf-8"/> <title>Google Maps JavaScript API Example</title> <script src="http://maps.google.com/maps?file=api&amp;v=2&amp;key=MYSITEKEY" type="text/javascript"></script> <script type="text/javascript"> //<![CDATA[ function load() { if (GBrowserIsCompatible()) { var map = new GMap2(document.getElementById("map")); map.setCenter(new GLatLng(37.4419, -122.1419), 13); } ↑經緯度 } //]]> </script> </head> <body onload="load()" onunload="GUnload()"> <div id="map" style="width: 500px; height: 300px"></div> </body> </html> 如果要把自己畫的圖層加在GOOGLE MAP該怎麼加呢?! 剛試了一下把一個有圖案的圖層放在GOOGLEMAP上面~~~結果就拖曳不到GOOGLEMAP了 -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 61.221.166.118 ※ 編輯: idcomputer 來自: 61.221.166.118 (09/27 19:07)

09/28 10:34, , 1F
要用 GTileLayer, 可參考 http://0rz.tw/ad4Ph
09/28 10:34, 1F

09/28 10:59, , 2F
感謝您~~又學到不少東西^^感恩
09/28 10:59, 2F
文章代碼(AID): #18tX7IgD (Ajax)
討論串 (同標題文章)
文章代碼(AID): #18tX7IgD (Ajax)