派生自 wuyushui/SewerAndRainNetwork

wangrui
2020-12-22 612ac3de5dc5067b8140272feb378e4f4da8bde4
src/components/helpers/BasemapHelper.js
@@ -18,9 +18,9 @@
     * @param defBasemapName 初始化完成后,默认显示的图层
     */
    initBasemap = (mapConfig, isIntranet) => {
        if(isIntranet) {
            this._getToken(mapConfig); // 获取token,并按配置加载地图
        }else {
        if(isIntranet) { // 内网
            this._getToken(mapConfig); // 获取token后,并按配置加载地图
        }else { // 外网
            this._createBasemapByConfig(mapConfig)
        }