This commit is contained in:
姚宇浩 2024-08-30 11:35:47 +08:00
commit d763a20212
1 changed files with 5 additions and 0 deletions

View File

@ -2562,10 +2562,15 @@ const createZyys = (polygon, indexx, name) => {
content.style.zIndex = BMapGL.Overlay.getZIndex(this.point.lat); content.style.zIndex = BMapGL.Overlay.getZIndex(this.point.lat);
content.style.height = "30px"; content.style.height = "30px";
content.style.width = "30px"; content.style.width = "30px";
// content.style.position = "relative"; // 使
let img2 = document.createElement("img"); let img2 = document.createElement("img");
img2.style.width = "20px"; img2.style.width = "20px";
img2.style.height = "26px"; img2.style.height = "26px";
img2.src = this.properties.imgSrc2; img2.src = this.properties.imgSrc2;
// title
img2.title = polygon.name;
content.appendChild(img2); content.appendChild(img2);
return content; return content;
} }