CzRger 1 年之前
父節點
當前提交
99ef7cb128
共有 1 個文件被更改,包括 7 次插入4 次删除
  1. 7 4
      src/store/modules/gis.ts

+ 7 - 4
src/store/modules/gis.ts

@@ -845,6 +845,7 @@ const actions = {
         "exceptions": 'application/vnd.ogc.se_inimage',
         refresh: new Date().getTime(),
         LAYERS: 'socialManagementElement',
+        geoType: 2,
         // viewparams: vp,
         CQL_FILTER: `(${cql.join(' and ')})`
       }
@@ -866,13 +867,14 @@ const actions = {
         cql.push(`INTERSECTS(location, ${state.gisParams.qy.analysisWKT})`)
       }
       const tileWMS = new source.TileWMS({
-        url: `/${rootState.app.apiProxy.geoserverApi}/geoserver/mysqlGeo/wms`,
+        url: `/${rootState.app.apiProxy.geoserverApi}/queryTile`,
         params: {
           'FORMAT': 'image/png8',
           'VERSION': '1.1.1',
           "exceptions": 'application/vnd.ogc.se_inimage',
           refresh: new Date().getTime(),
-          LAYERS: 'mysqlGeo:socialManagementElement',
+          LAYERS: 'socialManagementElement',
+          geoType: 1,
           // viewparams: `locationValue:${formatWkt(state.gisParams.qy.analysisWKT)}`,
           CQL_FILTER: `(${cql.join(' and ')})`
         }
@@ -895,13 +897,14 @@ const actions = {
         cql.push(`INTERSECTS(location, ${state.analysis.wkt})`)
       }
       const tileWMS = new source.TileWMS({
-        url: `/${rootState.app.apiProxy.geoserverApi}/geoserver/mysqlGeo/wms`,
+        url: `/${rootState.app.apiProxy.geoserverApi}/queryTile`,
         params: {
           'FORMAT': 'image/png8',
           'VERSION': '1.1.1',
           "exceptions": 'application/vnd.ogc.se_inimage',
           refresh: new Date().getTime(),
-          LAYERS: 'mysqlGeo:socialManagementElement',
+          LAYERS: 'socialManagementElement',
+          geoType: 1,
           // viewparams: `locationValue:${formatWkt(state.analysis.wkt)}`,
           CQL_FILTER: `(${cql.join(' and ')})`
         }