JS 获取经纬度的实现方法
<!- 저작권 (C) 2009 Google Inc. 이 샘플을 자유롭게 복사하고 사용할 수 있습니다. 라이센스는 여기에서 찾을 수 있습니다 : http://code.google.com/apis/ajaxsearch/faq/#license-> <! doctype html public "-// w3c // dtd xhtml 1.0 strict // en" "http://www.w3.org/tr/xhtml1/dtd/xhtml1-strict.dtd"> <html xmlns = "http://www.w3.org/1999/xhtml"xmlns : v = "urn : schemas-microsoft-com : vml-com-com : vmml-com http-equiv = "content-type"content = "text/html; charset = utf-8"/> <title> Google지도 </title> <style type = "text/css"> @import url ( "http://www.google.com/uds/gsearch.css"); @Import URL ( "http://www.google.com/uds/solutions/localsearch/gmlocalsearch.css"); </style> <script src = "http://maps.google.com/maps?file=api&v=2&key=abqiaaaaaaaaaA1xBMIDXX_BTCY2_FKPH06RRAGTYH6UML8MADNA0YKUWNNA8VNXQEERTAUCFKYR6WBOVXN7tDAH5Q" type = "text/javaScript"> </script> <script src = "http://www.google.com/uds/api?file=uds.js&v=1.0"type = "text/javaScript"> </script> <script src = "http://www.google.com/uds/solutions/localsearch/gmlocalsearch.js"type = "text/javaScript> function initialize () {if (gbrowseriscompatible ()) {// create and center a map36.1019825, 103.6055232) new gmap2 (document.getElementByid ( "map_canvas")); Map.setCenter (New Glatlng (36.1019825, 103.6055232), 13); map.addControl (New GlargemapControl ()); map.addControl (새로운 gmaptypecontrol ()); // 검색 제어를 맵에 바인딩하고 결과 목록 맵을 억제합니다. AaddControl (new Google.maps.localSearch (), New GControlPosition (g_anchor_bottom_right, new gsize (10,20))); }} gsearch.setonloadcallback (초기화); </script> </head> <body onload = "initialize ()"onunload = "gunload ()"style = "font-family : arial; border : 0 없음;"> <div id = "map_canvas"> </div> </body> </html>以上这篇 js 获取经纬度的实现方法就是小编分享给大家的全部内容了 获取经纬度的实现方法就是小编分享给大家的全部内容了, 希望能给大家一个参考, 也希望大家多多支持武林网。