| | |
| | | <template> |
| | | <div class="map-container"> |
| | | <wrapper-title :title="'区域地图'"></wrapper-title> |
| | | <!-- <wrapper-title :title="'区域地图'"></wrapper-title> --> |
| | | <div class="map-content"> |
| | | <div ref="map" class="map-style"></div> |
| | | </div> |
| | |
| | | <script> |
| | | import * as echarts from 'echarts'; |
| | | import 'echarts-gl'; |
| | | import mapData from '@/assets/map/zigong.json'; |
| | | import mapData from '@/assets/map/zigong2.json'; |
| | | import WrapperTitle from '../wrapper-title/index'; |
| | | import ScreenData from '../screen-data/index'; |
| | | |
| | | echarts.registerMap('zigong', mapData); |
| | | let mapChart = null; |
| | |
| | | viewControl: { |
| | | beta: -30, |
| | | alpha: 50, |
| | | distance: 105, |
| | | distance: 78, |
| | | maxBeta: 180, |
| | | panSensitivity: 0, |
| | | zoomSensitivity: 1, |
| | |
| | | viewControl: { |
| | | beta: -30, |
| | | alpha: 50, |
| | | distance: 105, |
| | | distance: 78, |
| | | maxBeta: 180, |
| | | panSensitivity: 0, |
| | | zoomSensitivity: 1, |
| | |
| | | } |
| | | }, |
| | | components: { |
| | | WrapperTitle |
| | | WrapperTitle, |
| | | ScreenData |
| | | }, |
| | | methods: { |
| | | filterData(name) { |
| | |
| | | |
| | | .map-content { |
| | | flex: 1; |
| | | background: rgba(67, 102, 155, 0.3); |
| | | border: 1px solid rgba(47, 91, 157, 0.8); |
| | | position: relative; |
| | | // background: rgba(67, 102, 155, 0.3); |
| | | // border: 1px solid rgba(47, 91, 157, 0.8); |
| | | } |
| | | |
| | | .map-style { |
| | |
| | | height: 100%; |
| | | } |
| | | } |
| | | |
| | | .data-container { |
| | | width: 100%; |
| | | display: flex; |
| | | position: absolute; |
| | | top: 0; |
| | | left: 0; |
| | | } |
| | | </style> |