This commit is contained in:
13713575202 2025-04-24 11:08:02 +08:00
parent e78a541eb3
commit 05a267fbd1
3 changed files with 38523 additions and 617 deletions

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -1,8 +1,8 @@
<template> <template>
<div class="map-center-warp"> <div class="map-center-warp">
<img :src="getAssetsFile('images/vsualized/gmmap.png')" class="map-img" /> <!-- <img :src="getAssetsFile('images/vsualized/gmmap.png')" class="map-img" /> -->
<div class="map-pos"> <div class="map-pos">
<custom-echart-maps :chart-data="chartsData.valData" height="100%" :option="chartsData.option" :geo="geoData" :name="mapName" /> <custom-echart-maps :chart-data="chartsData.valData" height="100%" width="100%" :option="chartsData.option" :geo="geoData" :name="mapName" />
</div> </div>
</div> </div>
</template> </template>
@ -43,41 +43,68 @@ const chartsData = reactive({
// saveAsImage: {}, // saveAsImage: {},
}, },
}, },
geo: { geo3D: {
map: mapName.value, map: mapName.value,
roam: true, roam: true,
zoom: 0.9, zoom: 0.9,
show: false, show: true,
zlevel: -2, //
viewControl: {
distance: 110,
alpha: 60,
beta: 0,
minBeta: -360,
maxBeta: 720,
// 使
// rotateSensitivity: 0,
// zoomSensitivity: 0,
// panSensitivity: 0,
},
itemStyle: { itemStyle: {
normal: { //
areaColor: '#1f77b4', // color: 'rgba(48,160,187,0.8)', //
borderColor: '#000', // opacity: 1, // [ default: 1 ]
borderWidth: 1.5, // (线) [ default: 0 ]
borderColor: '#4bffb4', // [ default: #333 ]
},
label: {
show: true,
distance: 0,
color: '#000',
padding: [6, 4, 2, 4],
borderRadius: 4,
backgroundColor: 'rgba(255,255,255,0.2)',
textStyle: {
fontSize: 12,
color: '#E87813', //
borderWidth: 0,
borderColor: '#000',
}, },
emphasis: { },
areaColor: '#ff7f0e', // emphasis: {
borderColor: '#fff', // //
label: {
show: true,
color: '#fff',
},
itemStyle: {
// show: false,
color: {
type: 'linear', // 线
x: 0,
y: 0,
x2: 0,
y2: 1,
colorStops: [
{ offset: 0, color: '#45bfe9' },
{ offset: 1, color: '#01589c' },
],
global: false, // false
},
}, },
}, },
}, },
series: [ series: [
// {
// name: '',
// type: 'map',
// mapType: mapName.value,
// roam: true,
// zoom: 1.2,
// itemStyle: {
// normal: {
// borderColor: '#000', //
// borderWidth: 1, //
// areaColor: 'transparent', //
// },
// emphasis: {
// borderColor: '#fff',
// borderWidth: 2,
// },
// },
// },
// //
{ {
name: '闪烁散点', name: '闪烁散点',
@ -119,20 +146,50 @@ const chartsData = reactive({
}, },
valData: [ valData: [
{ {
name: '镇边界', map: mapName.value,
type: 'map',
mapType: mapName.value,
roam: true, roam: true,
zoom: 1.2, zoom: 0.9,
show: true,
itemStyle: { itemStyle: {
normal: { //
borderColor: '#000', // color: 'rgba(48,160,187,0.8)', //
borderWidth: 1, // opacity: 1, // [ default: 1 ]
areaColor: 'transparent', // borderWidth: 1.5, // (线) [ default: 0 ]
borderColor: 'rgba(92, 184, 238, 1)', // [ default: #333 ]
},
label: {
show: true,
distance: 0,
color: '#000',
padding: [6, 4, 2, 4],
borderRadius: 4,
backgroundColor: 'rgba(255,255,255,.66)',
textStyle: {
fontSize: 12,
color: '#E87813', //
borderWidth: 0,
borderColor: '#000',
}, },
emphasis: { },
borderColor: '#fff', emphasis: {
borderWidth: 2, //
label: {
show: true,
color: '#fff',
},
itemStyle: {
// show: false,
color: {
type: 'linear', // 线
x: 0,
y: 0,
x2: 0,
y2: 1,
colorStops: [
{ offset: 0, color: '#45bfe9' },
{ offset: 1, color: '#01589c' },
],
},
}, },
}, },
}, },