在script中定义:
var domImg = document.createElement("img");
domImg.style.height = domImg.height = domImg.width = domImg.style.width = "100px";
domImg.src = `图片转换为base64的编码`
在地图配置项geo中:
itemStyle:{
normal:{
areaColor: {
image: domImg,
repeat: "repeat",
},
}
}