This commit is contained in:
parent
4834215193
commit
2c67eff444
Binary file not shown.
After Width: | Height: | Size: 7.4 KiB |
|
@ -421,6 +421,7 @@ const change = (name, index) => {
|
||||||
.module {
|
.module {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 943px;
|
height: 943px;
|
||||||
|
margin-top: 112px;
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
padding: 10px 45px;
|
padding: 10px 45px;
|
||||||
|
|
|
@ -129,6 +129,8 @@ import b4 from "@/assets/images/map/b4.png";
|
||||||
import b5 from "@/assets/images/map/b5.png";
|
import b5 from "@/assets/images/map/b5.png";
|
||||||
import b6 from "@/assets/images/map/b6.png";
|
import b6 from "@/assets/images/map/b6.png";
|
||||||
import xcbg from "@/assets/images/map/xcbg.png";
|
import xcbg from "@/assets/images/map/xcbg.png";
|
||||||
|
|
||||||
|
import AED from "@/assets/images/map/AED.png";
|
||||||
//删除
|
//删除
|
||||||
const jdm_arr = ref([]);
|
const jdm_arr = ref([]);
|
||||||
const jdm_number_arr = ref([]);
|
const jdm_number_arr = ref([]);
|
||||||
|
@ -333,16 +335,18 @@ const xkzCenter = reactive([
|
||||||
},
|
},
|
||||||
]);
|
]);
|
||||||
var map = null;
|
var map = null;
|
||||||
|
// 鼠标点击添加点位
|
||||||
const BMAP = () => {
|
const BMAP = () => {
|
||||||
// 添加鼠标点击事件监听器
|
// 添加鼠标点击事件监听器
|
||||||
map.addEventListener("click", function (e) {
|
map.addEventListener("click", function (e) {
|
||||||
console.log(e.point, 666);
|
let icons = "";
|
||||||
// console.log(e.point.latLng.lng,e.point.latLng.lat, 666);
|
icons = new BMapGL.Icon(AED, new BMapGL.Size(24, 62));
|
||||||
// var pt = e.point; // 获取点击的坐标
|
var marker = new BMapGL.Marker(
|
||||||
map.addOverlay(marker);
|
new BMapGL.Point(e.latlng.lng, e.latlng.lat),
|
||||||
var marker = new BMapGL.Marker(new BMapGL.Point(e.point.lng,e.point.lat)); // 创建点
|
{
|
||||||
// var marker = new BMapGL.Marker(pt); // 创建标注
|
icon: icons,
|
||||||
|
}
|
||||||
|
); // 创建点
|
||||||
map.addOverlay(marker); // 将标注添加到地图中
|
map.addOverlay(marker); // 将标注添加到地图中
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
@ -358,8 +362,8 @@ const initMap = () => {
|
||||||
//渲染地块
|
//渲染地块
|
||||||
addPolygonCounty();
|
addPolygonCounty();
|
||||||
//添加街道名
|
//添加街道名
|
||||||
addJd();
|
|
||||||
BMAP();
|
BMAP();
|
||||||
|
addJd();
|
||||||
};
|
};
|
||||||
const loadTown = () => {
|
const loadTown = () => {
|
||||||
for (let v of mapTown.features) {
|
for (let v of mapTown.features) {
|
||||||
|
|
|
@ -440,6 +440,7 @@ const rowState = (row) => {
|
||||||
img {
|
img {
|
||||||
width: 24px;
|
width: 24px;
|
||||||
height: 24px;
|
height: 24px;
|
||||||
|
margin-right: 8px;
|
||||||
}
|
}
|
||||||
.tableli {
|
.tableli {
|
||||||
font-size: 26px;
|
font-size: 26px;
|
||||||
|
@ -451,7 +452,7 @@ const rowState = (row) => {
|
||||||
height: 29px;
|
height: 29px;
|
||||||
background: rgba(255, 255, 255, 0.2);
|
background: rgba(255, 255, 255, 0.2);
|
||||||
border-radius: 15px;
|
border-radius: 15px;
|
||||||
border: 0px solid #ffffff;
|
border: 1px solid #ffffff6b;
|
||||||
|
|
||||||
color: #ffffff;
|
color: #ffffff;
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
|
|
Loading…
Reference in New Issue