fix基础设施控制台报错
This commit is contained in:
parent
715792aa7d
commit
9df17910ee
|
@ -60,7 +60,7 @@ export function MapFun(mapObj) {
|
|||
/**
|
||||
* 定义地物编辑服务
|
||||
*/
|
||||
const featureService = L.supermap.featureService(
|
||||
const featureService = L.supermap && L.supermap.featureService && L.supermap.featureService(
|
||||
_mapConfig.config.EDITORDATA_URL
|
||||
)
|
||||
|
||||
|
|
|
@ -123,7 +123,8 @@ export function HieimpMap() {
|
|||
// debugger;
|
||||
|
||||
// 获取图层信息
|
||||
L.supermap
|
||||
L.supermap && L.supermap
|
||||
.layerInfoService && L.supermap
|
||||
.layerInfoService(_mapConfig.config.QUERY_URL)
|
||||
.getLayersInfo(function (result) {
|
||||
// doSomething
|
||||
|
|
|
@ -252,7 +252,7 @@
|
|||
// 初始化地址匹配服务
|
||||
initAddressMatchService() {
|
||||
this.L = window.L || {}
|
||||
this.addressMatchService = L.supermap.addressMatchService(
|
||||
this.addressMatchService = L.supermap && L.supermap.addressMatchService && L.supermap.addressMatchService(
|
||||
this.addressMatchUrl
|
||||
)
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue