Merge branch 'main' of git.zdool.com:xs/ggfwjsc
This commit is contained in:
commit
fd53ee78bf
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -501,6 +501,7 @@ body {
|
|||
width: 180px;
|
||||
height: 180px;
|
||||
position: relative;
|
||||
cursor: pointer;
|
||||
.fiTop {
|
||||
width: 100%;
|
||||
img {
|
||||
|
|
|
@ -333,6 +333,20 @@ const xkzCenter = reactive([
|
|||
},
|
||||
]);
|
||||
var map = null;
|
||||
|
||||
const BMAP = () => {
|
||||
// 添加鼠标点击事件监听器
|
||||
map.addEventListener("click", function (e) {
|
||||
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); // 将标注添加到地图中
|
||||
});
|
||||
};
|
||||
|
||||
const initMap = () => {
|
||||
map = new BMapGL.Map("map", { minZoom: 11, maxZoom: 20 });
|
||||
map.setMapType(BMAP_SATELLITE_MAP);
|
||||
|
@ -345,6 +359,7 @@ const initMap = () => {
|
|||
addPolygonCounty();
|
||||
//添加街道名
|
||||
addJd();
|
||||
BMAP();
|
||||
};
|
||||
const loadTown = () => {
|
||||
for (let v of mapTown.features) {
|
||||
|
|
Loading…
Reference in New Issue