| | |
| | | * @param defBasemapName 初始化完成后,默认显示的图层 |
| | | */ |
| | | initBasemap = (mapConfig, isIntranet) => { |
| | | if(isIntranet) { |
| | | this._getToken(mapConfig); // 获取token,并按配置加载地图 |
| | | }else { |
| | | if(isIntranet) { // 内网 |
| | | this._getToken(mapConfig); // 获取token后,并按配置加载地图 |
| | | }else { // 外网 |
| | | this._createBasemapByConfig(mapConfig) |
| | | } |
| | | |
| | |
| | | this.L = options.L |
| | | this.tileLayersMap = new Map() |
| | | this.tileLayersArray = [] |
| | | this.mapConfig = {} |
| | | } |
| | | |
| | | /** |
| | |
| | | */ |
| | | initServiceLayers(mapConfig){ |
| | | console.log(mapConfig) |
| | | this.mapConfig = mapConfig |
| | | } |
| | | |
| | | /** |
| | |
| | | option:{ |
| | | maxZoom: 18, |
| | | minZoom: 1, |
| | | zoomOffset: 1 |
| | | zoomOffset: 0 |
| | | } |
| | | }, |
| | | annotation: { |
| | |
| | | option:{ |
| | | maxZoom: 18, |
| | | minZoom: 1, |
| | | zoomOffset: 1 |
| | | zoomOffset: 0 |
| | | } |
| | | }, |
| | | }, |
| | |
| | | option:{ |
| | | maxZoom: 18, |
| | | minZoom: 1, |
| | | zoomOffset: 1 |
| | | zoomOffset: 0 |
| | | } |
| | | }, |
| | | annotation: { |
| | |
| | | option:{ |
| | | maxZoom: 18, |
| | | minZoom: 1, |
| | | zoomOffset: 1 |
| | | zoomOffset: 0 |
| | | } |
| | | } |
| | | } |
| | |
| | | option:{ |
| | | maxZoom: 18, |
| | | minZoom: 1, |
| | | zoomOffset: 1 |
| | | zoomOffset: 0 |
| | | } |
| | | }, |
| | | annotation: { |
| | |
| | | option:{ |
| | | maxZoom: 18, |
| | | minZoom: 1, |
| | | zoomOffset: 1 |
| | | zoomOffset: 0 |
| | | } |
| | | }, |
| | | }, |
| | |
| | | option:{ |
| | | maxZoom: 18, |
| | | minZoom: 1, |
| | | zoomOffset: 1 |
| | | zoomOffset: 0 |
| | | } |
| | | }, |
| | | annotation: { |
| | |
| | | option:{ |
| | | maxZoom: 18, |
| | | minZoom: 1, |
| | | zoomOffset: 1 |
| | | zoomOffset: 0 |
| | | } |
| | | } |
| | | } |
| | |
| | | import Vue from 'vue' |
| | | import App from './App.vue' |
| | | import App from './App2.vue' |
| | | import router from './router' |
| | | import store from './store' |
| | | // import registerDirectives from './directive' |