google APIkay test

梅庆
2023-12-01

<script src="http://ditu.google.cn/maps?file=api&amp;v=2&amp;key= ;sensor=false&amp;oe=gbk"
            type="text/javascript"></script>
        <script type="text/javascript">
//    function load()
    {
      if (GBrowserIsCompatible())
       {
        var map = new GMap2(document.getElementById("map"));
        map.setCenter(new GLatLng(54.233,108.911), 5);
        map.addControl(new GSmallMapControl());
        map.addControl(new GMapTypeControl());
                map.enableGoogleBar();
        var marker = new GMarker(new GLatLng(54.233,108.911));
        map.addOverlay(marker);
        marker.openInfoWindowHtml("当前您的位置");

      }
    }
    </script>

 

 

 

 

 类似资料:

相关阅读

相关文章

相关问答