new AMap.Marker({
// icon: "//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-default.png",
// icon: 'img/icon/'+item.mark,
icon:new AMap.Icon({
image: 'img/icon/'+item.mark,
size: new AMap.Size(22, 28), //图标所处区域大小
imageSize: new AMap.Size(22,28) //图标大小
}),
position: [pos.y,pos.x],
anchor: 'bottom-center',
offset: new AMap.Pixel(0,0)//(-10, -30)
});
高德地图 添加标注marker 设置图标大小
最新推荐文章于 2025-03-19 22:18:40 发布