|
@ -131,7 +131,6 @@ function Markers(props) { |
|
|
}); |
|
|
}); |
|
|
if (mover) { |
|
|
if (mover) { |
|
|
_massLayer.on("mouseover", function (e) { |
|
|
_massLayer.on("mouseover", function (e) { |
|
|
console.log(e); |
|
|
|
|
|
Mapmove.setPosition(e.data.lnglat); |
|
|
Mapmove.setPosition(e.data.lnglat); |
|
|
Mapmove.setLabel({ |
|
|
Mapmove.setLabel({ |
|
|
content: `${e.data.name} (${e.data?.option?.userTotal}/${e.data?.option?.berthTotal})`, |
|
|
content: `${e.data.name} (${e.data?.option?.userTotal}/${e.data?.option?.berthTotal})`, |
|
@ -148,9 +147,9 @@ function Markers(props) { |
|
|
// } |
|
|
// } |
|
|
}); |
|
|
}); |
|
|
|
|
|
|
|
|
_massLayer.on("mouseout", function () { |
|
|
|
|
|
map.remove(Mapmove); |
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
// _massLayer.on("mouseout", function () { |
|
|
|
|
|
// map.remove(Mapmove); |
|
|
|
|
|
// }); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
// setMassLayer(_massLayer); |
|
|
// setMassLayer(_massLayer); |
|
|