Noch ein Bisschen extra Informationen.
Ich benutze zum Beispeil den Geoserver WFS Featuretype ne:countries um ein wfsSearch zu konfigurieren.
Hier meine Konfiguration:
config.json Inhalt fuer wfsSearch:
{
„type“: „wfsSearch“,
„description“: „common:modules.wfsSearch.description_parcel“,
„zoomLevel“: 10,
„maxFeatures“: 10,
„resultsPerPage“: 10,
„multiSelect“: true,
„instances“: [{
„resultList“: {
„fid“:„Id“,
„SOVEREIGNT“:„SOVEREIGNT“,
„TYPE“:„TYPE“,
„ADMIN“:„ADMIN“,
„ADM0_A3“:„ADM0_A3“
},
„title“: „Search a country (e.g. Germany)“,
„requestConfig“: {
„layerId“: „WFS_WORLD_COUNTRIES“,
„maxFeatures“: „showAll“
},
„literals“: [{
„field“: {
„type“: [„equal“],
„fieldName“: [„ne:ADMIN“],
„inputLabel“: [„Countryname“]
}
}
]
}
]
}
services-internet.json Inhalt fuer wfsSearch:
{
„id“: „WFS_WORLD_COUNTRIES“,
„name“: „World“,
„url“: „https://geoserver-acc.cicapp.nl:6443/geoserver/ne/wfs“,
„typ“: „WFS“,
„featureType“: „ne:countries“,
„outputFormat“ : „XML“,
„version“ : „2.0.0“,
„featureNS“ : „http://127.0.0.1:8080/geoserver/ne/ows“,
„gfiTheme“ : „default“,
„gfiAttributes“: {
„fid“:„Id“,
„SOVEREIGNT“:„SOVEREIGNT“,
„TYPE“:„TYPE“,
„ADMIN“:„ADMIN“,
„ADM0_A3“:„ADM0_A3“,
„geom“:„geom“
},
„layerAttribution“ : „nicht vorhanden“,
„legendURL“ : „“,
„hitTolerance“ : „“,
„urlIsVisible“ : true,
„filter“ : true,
„loadingStrategy“:„all“
}