|
@@ -1465,13 +1465,15 @@
|
|
|
toIndex: 999999
|
|
|
})
|
|
|
|
|
|
- window.L.supermap.featureService("http://121.36.228.94:8090/iserver/services/data-baishan/rest/data")
|
|
|
- .getFeaturesBySQL(getFeatureBySQLParams, function(serviceResult) {
|
|
|
- if (serviceResult.hasOwnProperty('result') && serviceResult.result
|
|
|
- .hasOwnProperty('features')) {
|
|
|
- that.lbtThemeLayer.addFeatures(serviceResult.result.features);
|
|
|
- }
|
|
|
- }, SuperMap.DataFormat.ISERVER);
|
|
|
+ selectConfigKey('superMap.iserver.data').then(res => {
|
|
|
+ window.L.supermap.featureService(res.data)
|
|
|
+ .getFeaturesBySQL(getFeatureBySQLParams, function(serviceResult) {
|
|
|
+ if (serviceResult.hasOwnProperty('result') && serviceResult.result
|
|
|
+ .hasOwnProperty('features')) {
|
|
|
+ that.lbtThemeLayer.addFeatures(serviceResult.result.features);
|
|
|
+ }
|
|
|
+ }, SuperMap.DataFormat.ISERVER);
|
|
|
+ })
|
|
|
}
|
|
|
}
|
|
|
}
|