fix:控制台--地图报错
This commit is contained in:
parent
5e2b32f62a
commit
5e31517f1d
|
@ -7,8 +7,8 @@
|
|||
*/
|
||||
var _global = {}
|
||||
var CONFIGITEM = {
|
||||
version: 'qingdao', // 青岛
|
||||
// version: 'xihaian', // 西海岸
|
||||
// version: 'qingdao', // 青岛
|
||||
version: 'xihaian', // 西海岸
|
||||
// version: 'test', // 测试
|
||||
// version: 'frp', // 内网穿透
|
||||
// version: 'dev', // 开发
|
||||
|
@ -23,7 +23,8 @@ var CONFIGITEM = {
|
|||
// 西海岸大数据局
|
||||
xihaian: {
|
||||
previewUrl: 'http://10.134.135.9:9796/',
|
||||
apiURL: 'http://10.134.135.9:8888/renren-admin',
|
||||
// apiURL: 'http://10.134.135.9:8888/renren-admin',
|
||||
apiURL: 'http://10.16.5.35:8888/renren-admin', // 李志成
|
||||
websocketURL: 'ws://10.134.135.9:8888/renren-admin/websocket'
|
||||
},
|
||||
// 测试
|
||||
|
|
|
@ -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,7 @@ export function HieimpMap() {
|
|||
// debugger;
|
||||
|
||||
// 获取图层信息
|
||||
L.supermap
|
||||
L.supermap && L.supermap.layerInfoService && L.supermap
|
||||
.layerInfoService(_mapConfig.config.QUERY_URL)
|
||||
.getLayersInfo(function (result) {
|
||||
// doSomething
|
||||
|
|
Loading…
Reference in New Issue