vue实现3d地图的展示与切换
引入echarts依赖
npm install echarts
npm install echarts-gl
定义一个使用3d地图的组件
<template>
<div class="echarts"/>
</template>
<script>
import {watchEffect} from 'vue'
import * as echarts from 'echarts'
import debounce from 'lodash/debounce'
import {addListener, removeListener} from 'resize-detector'
const INIT_TRIGGERS = ['theme', 'initOptions', 'autoResize']
const REWATCH_TRIGGERS = ['manualUpdate', 'watchShallow']
export default {
props: {
option: {
type: Object,
...