This commit is contained in:
parent
44385a2bf6
commit
c3760554bd
|
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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); // 将标注添加到地图中
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue