|
|
|
|
|
|
|
|
); |
|
|
); |
|
|
let icon = new AMap.Icon({ |
|
|
let icon = new AMap.Icon({ |
|
|
// 图标尺寸 |
|
|
// 图标尺寸 |
|
|
size: new AMap.Size(25, 25), |
|
|
|
|
|
|
|
|
size: new AMap.Size(25, 35), |
|
|
// 图标的取图地址 |
|
|
// 图标的取图地址 |
|
|
image: require("../../assets/img/marker-img.png"), |
|
|
image: require("../../assets/img/marker-img.png"), |
|
|
// 图标所用图片大小 |
|
|
// 图标所用图片大小 |
|
|
imageSize: new AMap.Size(25, 25) |
|
|
|
|
|
|
|
|
imageSize: new AMap.Size(25, 35) |
|
|
}); |
|
|
}); |
|
|
let marker = new AMap.Marker({ |
|
|
let marker = new AMap.Marker({ |
|
|
position: point, |
|
|
position: point, |
|
|
icon: icon, |
|
|
icon: icon, |
|
|
offset: new AMap.Pixel(-12, -12) |
|
|
|
|
|
|
|
|
offset: new AMap.Pixel(-12, -17) |
|
|
}); |
|
|
}); |
|
|
marker.setDraggable(true); |
|
|
marker.setDraggable(true); |
|
|
marker.setMap(me.map); |
|
|
marker.setMap(me.map); |