|
@@ -786,15 +786,38 @@ export default defineComponent({
|
|
|
},
|
|
|
);
|
|
|
});
|
|
|
+ // popup.on('onmouseup',function(){
|
|
|
+ // alert(11)
|
|
|
+ // });
|
|
|
+
|
|
|
+ // popup.getElement().onmouseout = ()=>{
|
|
|
+ // alert(12)
|
|
|
+ // }
|
|
|
+ // debugger
|
|
|
+
|
|
|
+ var imagep= renderElement(nextImage);
|
|
|
+ var markp =
|
|
|
+ new window.minemap.Marker(imagep, {
|
|
|
+ offset: [-25, -25],
|
|
|
+ });
|
|
|
+
|
|
|
+ imagep.onmouseover = ()=>{
|
|
|
+ //console.log(222)
|
|
|
+
|
|
|
+ imagep.innerHTML = `<div style="position:relative"><div class="tipc">${i.name}</div></div>`
|
|
|
+ markp.setZIndex(111);
|
|
|
+ };
|
|
|
+ imagep.onmouseout = ()=>{
|
|
|
+
|
|
|
+ imagep.innerHTML = "";
|
|
|
+ markp.setZIndex(0);
|
|
|
+ };
|
|
|
+
|
|
|
+
|
|
|
return {
|
|
|
locations: i.locations,
|
|
|
popup,
|
|
|
- marker:
|
|
|
- i.locations &&
|
|
|
- new window.minemap.Marker(renderElement(nextImage), {
|
|
|
- offset: [-25, -25],
|
|
|
- })
|
|
|
- .setLngLat({
|
|
|
+ marker: i.locations && markp.setLngLat({
|
|
|
lng: ((i) => { var ii = parseFloat(i.locations?.split(',')[0] ?? "0"); return ii; })(i),
|
|
|
lat: ((i) => { var ii = parseFloat(i.locations?.split(',')[1] ?? "0"); return ii>90?89:ii<-90?-89:ii; })(i) ,
|
|
|
})
|