| | |
| | | this.filters = [] |
| | | this.typeNames = [] |
| | | this.url = WFS_URL |
| | | this.page = 1 |
| | | this.pageSize = 10 |
| | | this.params = { |
| | | REQUEST: 'getfeature', |
| | | OUTPUTFORMAT: 'application/json', |
| | | maxFeatures: 20000, |
| | | maxFeatures: 10, |
| | | version: '1.0.0' |
| | | } |
| | | |
| | | this.setTypeName = (typeName) => { |
| | | this.typeNames = typeName |
| | | } |
| | | |
| | | this.clearFilter = () => { |
| | | this.filters = [] |
| | | } |
| | | |
| | | this.addTypeName = (typeName) => { |
| | |
| | | } |
| | | return url + this.getUrlParams() |
| | | } |
| | | |
| | | this.setPage = (page) => { |
| | | const startIndex = page * this.pageSize |
| | | this.params.startIndex = startIndex |
| | | this.page = page |
| | | } |
| | | |
| | | this.setPageSize = (pageSize) => { |
| | | this.pageSize = pageSize |
| | | } |
| | | } |
| | | |
| | | export default WfsHelper |