|
|
@@ -83,7 +83,9 @@ function p5WFS_GetFeature(typeName, query) { // @returns Promise
|
|
|
postData = query['ogc:Filter']
|
|
|
}
|
|
|
if ('sortBy' in query) link += '&sortBy=' + query['sortBy']
|
|
|
- var method = (postData) ? 'POST' : 'GET' // TODO: if long 'ogc:Filter' then POST
|
|
|
+ if ('maxFeatures' in query) link += '&maxFeatures=' + query['maxFeatures']
|
|
|
+ if ('count' in query) link += '&count=' + query['count']
|
|
|
+ var method = (postData) ? 'POST' : 'GET'
|
|
|
|
|
|
return window.fetch(link, Object.assign({
|
|
|
method: method,
|