This commit is contained in:
BianLzhaoMin 2025-04-30 10:36:28 +08:00
parent 7c980e9a4e
commit 4834cb7faf
1 changed files with 1 additions and 1 deletions

View File

@ -327,7 +327,7 @@ function addAllMapPoints() {
// 检查图标是否存在,不存在则使用默认图标
const iconUrl = iconTypeList[9]; // 默认使用第一个图标
const myIcon = new BMapGL.Icon(iconUrl, new BMapGL.Size(40, 38), {
anchor: new BMapGL.Size(32, 40), // 修正锚点位置为中心底部
anchor: new BMapGL.Size(20, 25), // 修正锚点位置为中心底部
imageSize: new BMapGL.Size(40, 38), // 与实际图片尺寸一致
});