Просмотр исходного кода

added resolve, resolveDepth and primaryKey in js get feature

Piotr Labudda 8 лет назад
Родитель
Сommit
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({