Merge branch 'main' of https://git.cityme.com.cn/xiangshan/ggfwjsc
This commit is contained in:
commit
d763a20212
|
@ -2562,10 +2562,15 @@ const createZyys = (polygon, indexx, name) => {
|
|||
content.style.zIndex = BMapGL.Overlay.getZIndex(this.point.lat);
|
||||
content.style.height = "30px";
|
||||
content.style.width = "30px";
|
||||
// content.style.position = "relative"; // 使得提示文字相对于父元素定位
|
||||
|
||||
let img2 = document.createElement("img");
|
||||
img2.style.width = "20px";
|
||||
img2.style.height = "26px";
|
||||
img2.src = this.properties.imgSrc2;
|
||||
|
||||
// 添加 title 属性作为简单的文字提示
|
||||
img2.title = polygon.name;
|
||||
content.appendChild(img2);
|
||||
return content;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue