This commit is contained in:
duanxiaohai 2024-09-30 16:13:53 +08:00
parent 64574d5357
commit 5653356142
1 changed files with 7 additions and 1 deletions

View File

@ -1830,7 +1830,13 @@ const markera = (e) => {
map.removeOverlay(currentMarker);
}
//
let icons = new BMapGL.Icon(AED, new BMapGL.Size(24, 62));
let sizeIcons = 62;
if (totalType.value == 1) {
sizeIcons = 48;
} else {
sizeIcons = 62;
}
let icons = new BMapGL.Icon(AED, new BMapGL.Size(24, sizeIcons));
var marker = new BMapGL.Marker(new BMapGL.Point(e.latlng.lng, e.latlng.lat), {
icon: icons,
});