This commit is contained in:
duanxiaohai 2024-07-24 15:33:43 +08:00
parent 44385a2bf6
commit c3760554bd
2 changed files with 7 additions and 4 deletions

View File

@ -239,6 +239,7 @@ onMounted(() => {
position: absolute;
right: -70px;
bottom: -50px;
pointer-events: none;
}
.leftLineClass {
@ -246,6 +247,7 @@ onMounted(() => {
transform: scaleX(-1);
left: -70px;
bottom: -50px;
pointer-events: none;
}
}

View File

@ -316,10 +316,11 @@ var map = null;
const BMAP = () => {
//
map.addEventListener("click", function (e) {
console.log(e.point.latLng.lng,e.point.latLng.lat, 666);
var pt = e.point; //
// map.addOverlay(marker);
var marker = new BMapGL.Marker(new BMapGL.Point(e.point.latLng.lng,e.point.latLng.lat)); //
console.log(e.point, 666);
// console.log(e.point.latLng.lng,e.point.latLng.lat, 666);
// var pt = e.point; //
map.addOverlay(marker);
var marker = new BMapGL.Marker(new BMapGL.Point(e.point.lng,e.point.lat)); //
// var marker = new BMapGL.Marker(pt); //
map.addOverlay(marker); //
});