JS获取经纬度的实现方法
<! - 版权(C)2009 Google Inc。您可以免费复制和使用此样本。许可可以在此处找到:http://code.google.com/apis/ajaxsearch/faq/#license-> <!<! <html xmlns =“ http://www.w3.org/1999/xhtml” xmlns:v =“ urn:schemas-microsoft-com:vml”> <head> <head> <head> <meta http-equiv =“示例</title> <style type =“ text/css”> @import url(“ http://www.google.com/uds/css/gsearch.css”); @import url(“ http://www.google.com/uds/solutions/localsearch/gmlocalsearch.css”);在type =“ text/javascript”> </script> <script src =“ http://www.google.com/uds/api?file=uds.js&v=1.0” type =“ text/javascript”> </javascript“> </script> </script> </script> <</script> <</script src =” type =“ text/javaScript”> </script>函数inditialize(){if(gbrowserisCompaible()){//创建和中心A MAP36.1019825,103.6055232)var map = new Gmap2(document.getElementByid(getElementByid) map.setCenter(新Glatlng(36.1019825,103.6055232),13); map.AddControl(new GlargeMapControl()); map.AddControl(new Gmaptypecontrol()); //将搜索控件绑定到地图,抑制结果列表map.addcontrol(new Google.maps.localsearch(),新的gcontrolposition(g_anchor_bottom_right,new GSize(10,20))); }} gsearch.setonloadCallback(initialize); </script> </head> <body onload =“ pritialize()” onunload =“ gunload()” style =“ font-family:arial; arial; border; border;“ none;”> <div id =“ map_canvas”> </div> </div> </div> </div> </body> </html> </html>以上这篇js获取经纬度的实现方法就是小编分享给大家的全部内容了,希望能给大家一个参考,也希望大家多多支持武林网。,也希望大家多多支持武林网。