ceshi
This commit is contained in:
parent
3fae04a517
commit
0123f10d82
|
@ -20,6 +20,9 @@ const initMap = () => {
|
||||||
|
|
||||||
let type = tools.data.get("type");
|
let type = tools.data.get("type");
|
||||||
if (type == 1) {
|
if (type == 1) {
|
||||||
|
map.setMapStyleV2({
|
||||||
|
styleId: "d0acde891abd157741b71e12670ee2e6",
|
||||||
|
});
|
||||||
} else {
|
} else {
|
||||||
map.setMapStyleV2({
|
map.setMapStyleV2({
|
||||||
styleId: "d0acde891abd157741b71e12670ee2e6",
|
styleId: "d0acde891abd157741b71e12670ee2e6",
|
||||||
|
|
|
@ -1074,12 +1074,24 @@ const pagination = reactive({
|
||||||
});
|
});
|
||||||
//--------定义方法----------------------------------------
|
//--------定义方法----------------------------------------
|
||||||
//地图初始化
|
//地图初始化
|
||||||
|
var styleJson = [
|
||||||
|
{ featureType: "label", elementType: "all", stylers: { visibility: "off" } },
|
||||||
|
{
|
||||||
|
featureType: "boundary",
|
||||||
|
elementType: "all",
|
||||||
|
stylers: { visibility: "off" },
|
||||||
|
},
|
||||||
|
{ featureType: "road", elementType: "all", stylers: { visibility: "off" } },
|
||||||
|
{ featureType: "water", elementType: "all", stylers: { visibility: "off" } },
|
||||||
|
{ featureType: "land", elementType: "all", stylers: { visibility: "off" } },
|
||||||
|
];
|
||||||
const totalType = ref(2);
|
const totalType = ref(2);
|
||||||
const initMap = () => {
|
const initMap = () => {
|
||||||
map = new BMapGL.Map("map", { minZoom: 8, maxZoom: 20 });
|
map = new BMapGL.Map("map", { minZoom: 8, maxZoom: 20 });
|
||||||
let type = tools.data.get("type");
|
let type = tools.data.get("type");
|
||||||
if (type == 1) {
|
if (type == 1) {
|
||||||
totalType.value = 1;
|
totalType.value = 1;
|
||||||
|
map.setMapStyleV2({ styleJson: styleJson });
|
||||||
} else {
|
} else {
|
||||||
totalType.value = 2;
|
totalType.value = 2;
|
||||||
map.setMapType(BMAP_SATELLITE_MAP);
|
map.setMapType(BMAP_SATELLITE_MAP);
|
||||||
|
@ -4941,6 +4953,7 @@ onMounted(async () => {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
//蒙版
|
||||||
.btns {
|
.btns {
|
||||||
z-index: 999;
|
z-index: 999;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
|
|
Loading…
Reference in New Issue