單一景點(坐標), 套google map 的方法,
這個方法很簡單, 直接用 iframe 把 google map 叫進來就做完了,
相關的 asp code 如下:
dim iframe_google_map_url iframe_google_map_url = "" if DetailLatitude <> "" then iframe_google_map_url = "http://maps.google.com.tw/maps?ie=UTF8&f=q&hl=zh-TW&geocode=&z=14&output=embed&t=" 'iframe_google_map_url = iframe_google_map_url & "&ll=" & DetailLatitude &","& DetailLongitude iframe_google_map_url = iframe_google_map_url & "&q="& DetailLatitude &","& DetailLongitude &"(" & server.urlencode(DetailName) & ")" end if if iframe_google_map_url <> "" then Response.Write "<div class='map'>" Response.Write "<iframe width='425' height='350' frameborder='0' scrolling='no' marginheight='0' marginwidth='0'" Response.Write " src='" & iframe_google_map_url & "'></iframe>" Response.Write "<br /><small><a href='"& iframe_google_map_url &"' target='_google_map' style='color:#0000FF;text-align:left'>檢視較大的地圖</a></small>" Response.Write "</div>"&vbCrLf end if
相關文章: google keyword: iframe google map
沒有留言:
張貼留言