This commit is contained in:
李想 2025-04-24 11:09:06 +08:00
commit 47ab984f4d
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>
<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">
<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>
</template>
@ -43,41 +43,68 @@ const chartsData = reactive({
// saveAsImage: {},
},
},
geo: {
geo3D: {
map: mapName.value,
roam: true,
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: {
normal: {
areaColor: '#1f77b4', //
borderColor: '#000', //
//
color: 'rgba(48,160,187,0.8)', //
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', //
borderColor: '#fff', //
},
emphasis: {
//
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: [
// {
// 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: '闪烁散点',
@ -119,20 +146,50 @@ const chartsData = reactive({
},
valData: [
{
name: '镇边界',
type: 'map',
mapType: mapName.value,
map: mapName.value,
roam: true,
zoom: 1.2,
zoom: 0.9,
show: true,
itemStyle: {
normal: {
borderColor: '#000', //
borderWidth: 1, //
areaColor: 'transparent', //
//
color: 'rgba(48,160,187,0.8)', //
opacity: 1, // [ default: 1 ]
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',
borderWidth: 2,
},
emphasis: {
//
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' },
],
},
},
},
},