|
|
@@ -272,10 +272,14 @@ class Route_WfsJsRequestPanel extends RouteBase {
|
|
|
console.log('examples', examples)
|
|
|
function setWfsExample(groupName, label) {
|
|
|
console.log('groupName', groupName, 'label', label)
|
|
|
- var typeName = examples[groupName][label].typeName
|
|
|
+ var example = examples[groupName][label]
|
|
|
+ var typeName = example.typeName
|
|
|
document.getElementById('wfsRequestFeatureTypeName').value = typeName
|
|
|
document.getElementById('typeNameStorageStructLink').href = 'index.php?_route=Storage_AclStruct&namespace=' + typeName.replace('__x3A__', '/').replace(':', '/')
|
|
|
- document.getElementById('wfsRequestBody').value = examples[groupName][label].postBody || ''
|
|
|
+ document.getElementById('wfsRequestBody').value = example.postBody || ''
|
|
|
+ document.getElementById('wfsRequestParam.root').checked = (example.args && 'root' in example.args && 1 == example.args['root'])
|
|
|
+ document.getElementById('wfsRequestParam.maxFeatures').value = (example.args && 'maxFeatures' in example.args && example.args['maxFeatures'] > 0) ? example.args['maxFeatures'] : 3
|
|
|
+ document.getElementById('wfsRequestParam.resolveDepth').value = (example.args && 'resolveDepth' in example.args && example.args['resolveDepth'] > 0) ? example.args['resolveDepth'] : ''
|
|
|
sendWfsRequest()
|
|
|
}
|
|
|
for (var groupName in examples) {
|