派生自 wuyushui/SewerAndRainNetwork

徐旺旺
2021-05-11 8d9c17cd5166ad31e3357070e95ee73002f34de5
src/components/helpers/WfsHelper.js
@@ -6,11 +6,22 @@
  this.filters = []
  this.typeNames = []
  this.url = WFS_URL
  this.page = 1
  this.pageSize = 10
  this.params = {
    REQUEST: 'getfeature',
    OUTPUTFORMAT: 'application/json',
    maxFeatures: 20000,
    version: '1.0.0'
    maxFeatures: 10,
    version: '1.0.0',
    startIndex: 0
  }
  this.setTypeName = (typeName) => {
    this.typeNames = typeName
  }
  this.clearFilter = () => {
    this.filters = []
  }
  this.addTypeName = (typeName) => {
@@ -89,6 +100,12 @@
    }
    return url + this.getUrlParams()
  }
  this.setPage = (page) => {
    const startIndex = page * this.pageSize
    this.params.startIndex = startIndex
    this.page = page
  }
}
export default WfsHelper