JSDM

HTML

 
1
<!doctype html>
You don't need a DOCTYPE on CodePen. Just put here what you would normally put in the <body>.
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
    <title>自定义地图</title>
8
    <link rel="stylesheet" href="https://cache.amap.com/lbs/static/main1119.css"/>
9
    <script type="text/javascript" src="https://cache.amap.com/lbs/static/addToolbar.js"></script>
10
</head>
11
<body>
12
<div id="container"></div>
13
14
  <script type="text/javascript">
15
        window._AMapSecurityConfig = {
16
            securityJsCode:'dca2a84f7e011ad7c21a6d6b3f70789e',
17
        }
18
</script>
19
<script type="text/javascript" src="https://webapi.amap.com/maps?v=1.4.15&key=681b28cd506d1154e2cd176dc2e87e5d"></script> 
20
<script>
21
  
22
    var map = new AMap.Map('container', {
23
        resizeEnable: true,
24
        zoom:4,
25
        center: [116.397428, 39.90923],
26
        mapStyle:'amap://styles/ca8d716eb1fa96c955b9d2cbd5f74024'
27
    });
28
29
</script>
30
</body>
31
</html>
!

CSS

xxxxxxxxxx
1
 
1
? ?
? ?
必须是有效的URL
+ 添加另一个资源

JS

xxxxxxxxxx
1
 
1
必须是有效的URL
+ 添加另一个资源
Close

文件管理 点击文件查看URL

图片

  1. 暂无文件

CSS

  1. 暂无文件

JavaScript

  1. 暂无文件

其他

  1. 暂无文件
拖动文件到上面的区域或者:
加载中 ..................