|
@@ -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;
|