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

View File

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