Browse Source

可视化底部林班数据改为后台维护

彭宇 2 năm trước cách đây
mục cha
commit
68675ee2f9
1 tập tin đã thay đổi với 9 bổ sung7 xóa
  1. 9 7
      src/components/supermap.vue

+ 9 - 7
src/components/supermap.vue

@@ -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);
+              })
 						}
 					}
 				}