1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
| /** mapbox 地图配置文件 */
| import MCBaseMap from '@/conf/mapbox/MCBaseMap'
| import MCWMTS from '@/conf/mapbox/MCWMTS'
| import MCVectorTile from '@/conf/mapbox/MCVectorTile'
| import MCWMS from '@/conf/mapbox/MCWMS'
| const mapOptions = {
| center: [118.7843, 32.2221], // 地图中心点
| zoom: 13, // 地图当前缩放级数
| maxZoom: 16
| }
| export default {
| mapOptions: mapOptions,
| TokenConfig: MCBaseMap.TokenConfig, // 是否通过token加载地图
| layers: {
| BaseMap: MCBaseMap.BaseMap,
| WMTS: MCWMTS,
| VectorTile: MCVectorTile,
| wms: MCWMS
| }
| }
|
|