This commit is contained in:
姚宇浩 2024-09-30 15:07:53 +08:00
parent 01b4b78187
commit 0a9c47d69e
2 changed files with 27 additions and 13 deletions

View File

@ -178,7 +178,8 @@ const createCustomOverlay = (polygon) => {
content.style.flexDirection = "column";
content.style.alignItems = "center";
content.style.zIndex = BMapGL.Overlay.getZIndex(this.point.lat);
content.style.height = "30px";
content.style.width = "30px";
var div = document.createElement("div");
div.style.color = "#333";
div.style.padding = "6px 8px";

View File

@ -1074,12 +1074,14 @@ const pagination = reactive({
});
//------------------------------------------------
//
const totalType = ref(2);
const initMap = () => {
map = new BMapGL.Map("map", { minZoom: 8, maxZoom: 20 });
let type = tools.data.get("type");
if(type==1){
}else{
if (type == 1) {
totalType.value = 1;
} else {
totalType.value = 2;
map.setMapType(BMAP_SATELLITE_MAP);
}
map.enableScrollWheelZoom(true);
@ -2544,7 +2546,7 @@ const getDataBqs3 = async (jd, cs, bq) => {
DGcreateCs(item, index);
});
} else {
console.log(666666,cs_dd_arr.value);
console.log(666666, cs_dd_arr.value);
cs_dd_arr.value.map((item, index) => {
DGcreateCs2(item, index);
});
@ -3349,8 +3351,14 @@ const createCustomOverlay = (polygon, indexx) => {
const addFwqCs = () => {
fwq_dk.value.length = 0;
fwq_jzdk.value.map((item, index) => {
let num = index % 9;
// let num = index % 9;
let fillColor = "#ffffff";
if (totalType.value == 1) {
fillColor = "#7d7c7c";
} else {
fillColor = "#ffffff";
}
let points = [];
item.point[0].map((p) => points.push(new BMapGL.Point(...p)));
if (points.length) {
@ -3360,7 +3368,7 @@ const addFwqCs = () => {
strokeWeight: 2,
strokeOpacity: 0.8,
fillColor: fillColor,
fillOpacity: 0.6,
fillOpacity: 0.7,
name: item.name,
});
map.addOverlay(fwq_dk.value[index]);
@ -3589,6 +3597,12 @@ const isclick = ref("");
const addPolygonCounty = () => {
map.clearOverlays();
let fillColor = "#ffffff";
if (totalType.value == 1) {
fillColor = "#7d7c7c";
} else {
fillColor = "#ffffff";
}
mapTownDataDK.map((item) => {
// item.leg = 0;
//
@ -3664,8 +3678,7 @@ const addPolygonCounty = () => {
} else {
setTimeout(() => {
title_jd.value = item.name;
},1000)
}, 1000);
}
}
});
@ -3874,8 +3887,8 @@ const addPolygonCountyCs = () => {
if (drawing.value) {
return;
}
if(!title_jd.value){
return
if (!title_jd.value) {
return;
}
loadingss.value = true;
cs_dd_arr.value = [];
@ -4778,8 +4791,8 @@ onMounted(async () => {
}
//
.loadBody {
width: 100%;
height: calc(100% - 112px );
width: 100%;
height: calc(100% - 112px);
z-index: 999;
background: rgba(0, 0, 0, 0);
bottom: 0;