Преглед изворни кода

added resolve, resolveDepth and primaryKey in js get feature

Piotr Labudda пре 8 година
родитељ
комит
279b6c55bd
1 измењених фајлова са 3 додато и 0 уклоњено
  1. 3 0
      SE/static/p5WFS/GetFeature.js

+ 3 - 0
SE/static/p5WFS/GetFeature.js

@@ -125,6 +125,9 @@ function p5WFS_GetFeature(typeName, query) { // @returns Promise
 	if ('sortBy' in query) link += '&sortBy=' + query['sortBy']
 	if ('maxFeatures' in query) link += '&maxFeatures=' + query['maxFeatures']
 	if ('count' in query) link += '&count=' + query['count']
+	if ('primaryKey' in query) link += '&primaryKey=' + query['primaryKey']
+	if ('resolve' in query) link += '&resolve=' + query['resolve']
+	if ('resolveDepth' in query) link += '&resolveDepth=' + query['resolveDepth']
 	var method = (postData) ? 'POST' : 'GET'
 
 	return window.fetch(link, Object.assign({