Files
gnss-tool-kit/src/render/components/Map.vue

36 lines
716 B
Vue
Raw Normal View History

2021-11-11 12:52:57 +08:00
<template>
2021-11-15 12:11:39 +08:00
<v-chart class="chart w-h-full" :option="option" />
2021-11-11 12:52:57 +08:00
</template>
<script lang="ts" setup>
2021-11-15 12:11:39 +08:00
import { reactive } from 'vue'
import { use, registerMap } from "echarts/core";
import { CanvasRenderer } from 'echarts/renderers'
import { Map3DChart } from 'echarts-gl/charts';
import VChart from "vue-echarts";
import tmskMap from "../assets/geojson/659003.json";
use([ CanvasRenderer, Map3DChart ]);
registerMap('tmsk', tmskMap);
const option = reactive({
series: {
type: 'map3D',
map: 'tmsk',
label: {
show: true
},
itemStyle: {
color: '#999',
borderWidth: 1,
},
shading: 'color'
2021-11-11 12:52:57 +08:00
}
2021-11-15 12:11:39 +08:00
});
2021-11-11 12:52:57 +08:00
const update = () => console.log
defineExpose({ update })
</script>