1. 程式人生 > >谷歌地圖,國內使用Google Maps JavaScript API,國外業務

谷歌地圖,國內使用Google Maps JavaScript API,國外業務

mark you net ref utf-8 http itl initial map

目前還是得墻

<!DOCTYPE html>
<html>
  <head>
    <meta name="viewport" content="initial-scale=1.0, user-scalable=no">
    <meta charset="utf-8">
    <title>Simple markers</title>
    <style>
      html, body {
        height: 100%;
        margin: 0;
        padding: 
0; } #map { height: 100%; } </style> </head> <body> <div id="map"></div> <script> function initMap() { var myLatLng = {lat: -25.363, lng: 131.044}; var map = new google.maps.Map(document.getElementById(map
), { zoom: 16, center: myLatLng }); var marker = new google.maps.Marker({ position: myLatLng, map: map, title: Hello World! }); } </script> <script src="https://maps.google.cn/maps/api/js?v=3.20&region=cn&language=zh-CN&key=your_key&callback=initMap
"></script> </body> </html>

https://blog.csdn.net/xiaoyu411502/article/details/48784365

谷歌地圖,國內使用Google Maps JavaScript API,國外業務