@@ -6,7 +6,7 @@
<meta name="viewport" content="width=device-width,initial-scale=1.0">
<title>BMS</title>
<link rel="stylesheet" href="static/css/common.css">
- <script type="text/javascript" src="https://webapi.amap.com/maps?v=1.4.15&key=ddbf8bc912a1c79be34e7d646f8fd726"></script>
+ <script type="text/javascript" src="https://webapi.amap.com/maps?v=2.0&key=ddbf8bc912a1c79be34e7d646f8fd726"></script>
</head>
<body>
<div id="app"></div>
@@ -90,8 +90,9 @@
}
});
var marker = new AMap.Marker({
- position: new AMap.LngLat(116.39, 39.9), // 经纬度对象,也可以是经纬度构成的一维数组[116.39, 39.9]
- title: '北京'
+ position: new AMap.LngLat(116.406315,39.908775), // 经纬度对象,也可以是经纬度构成的一维数组[116.39, 39.9]
+ title: '北京',
+ offset: new AMap.Pixel(-10, -10),
this.map.add(marker);
this.markers = markers;