This commit is contained in:
duanxiaohai 2024-07-24 16:00:36 +08:00
parent 4834215193
commit 2c67eff444
4 changed files with 15 additions and 9 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.4 KiB

View File

@ -421,6 +421,7 @@ const change = (name, index) => {
.module {
width: 100%;
height: 943px;
margin-top: 112px;
display: flex;
justify-content: space-between;
padding: 10px 45px;

View File

@ -129,6 +129,8 @@ import b4 from "@/assets/images/map/b4.png";
import b5 from "@/assets/images/map/b5.png";
import b6 from "@/assets/images/map/b6.png";
import xcbg from "@/assets/images/map/xcbg.png";
import AED from "@/assets/images/map/AED.png";
//
const jdm_arr = ref([]);
const jdm_number_arr = ref([]);
@ -333,16 +335,18 @@ 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); //
let icons = "";
icons = new BMapGL.Icon(AED, new BMapGL.Size(24, 62));
var marker = new BMapGL.Marker(
new BMapGL.Point(e.latlng.lng, e.latlng.lat),
{
icon: icons,
}
); //
map.addOverlay(marker); //
});
};
@ -358,8 +362,8 @@ const initMap = () => {
//
addPolygonCounty();
//
addJd();
BMAP();
addJd();
};
const loadTown = () => {
for (let v of mapTown.features) {

View File

@ -440,6 +440,7 @@ const rowState = (row) => {
img {
width: 24px;
height: 24px;
margin-right: 8px;
}
.tableli {
font-size: 26px;
@ -451,7 +452,7 @@ const rowState = (row) => {
height: 29px;
background: rgba(255, 255, 255, 0.2);
border-radius: 15px;
border: 0px solid #ffffff;
border: 1px solid #ffffff6b;
color: #ffffff;
font-weight: 400;