https://lbs.amap.com/api/jsapi-v2/guide/abc/quickstart

    Key名称 Key 安全秘钥
    GIS eb91dd62e638a8012007bc0ea6ce13c3 d3c8aa8d353e42cbce00fdb6e7fd7797
    1. <!doctype html>
    2. <html>
    3. <head>
    4. <meta charset="utf-8">
    5. <meta http-equiv="X-UA-Compatible" content="IE=edge">
    6. <meta name="viewport" content="initial-scale=1.0, user-scalable=no, width=device-width">
    7. <link rel="stylesheet" href="https://a.amap.com/jsapi_demos/static/demo-center/css/demo-center.css" />
    8. <title>地图显示</title>
    9. <style>
    10. html,
    11. body,
    12. #container {
    13. width: 100%;
    14. height: 100%;
    15. }
    16. </style>
    17. </head>
    18. <body>
    19. <div id="container"></div>
    20. <!-- 加载地图JSAPI脚本 -->
    21. <script src="https://webapi.amap.com/maps?v=2.0&key=eb91dd62e638a8012007bc0ea6ce13c3"></script>
    22. <script>
    23. var map = new AMap.Map('container', {
    24. viewMode: '2D', // 默认使用 2D 模式,如果希望使用带有俯仰角的 3D 模式,请设置 viewMode: '3D',
    25. zoom:11, //初始化地图层级
    26. center: [114, 30] //初始化地图中心点
    27. });
    28. </script>
    29. </body>
    30. </html>