Skip to content

Commit

Permalink
Merge pull request #5159 from camptocamp/wfspermalink-doc
Browse files Browse the repository at this point in the history
Add WFS permailing configuration documentation
  • Loading branch information
sbrunner authored Sep 25, 2019
2 parents 9cbb858 + 4ad7aea commit e70b584
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions src/statemanager/WfsPermalink.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,15 @@ import olFormatWFS from 'ol/format/WFS.js';
* WFS permalink service that can be used to load features with a WFS
* GetFeature request given query parameters.
*
* Resulting features are then highlighted and
* the map is zoomed to the nearest map extent.
* Resulting features are then highlighted and the map is zoomed to the nearest map extent.
*
* Configuration:
*
* ngeoWfsPermalinkOptions:
* wfsTypes:
* - featureType: <featureType>
* label: <attribute used as label>
* - ...
*
* Parameters:
*
Expand All @@ -100,8 +107,7 @@ import olFormatWFS from 'ol/format/WFS.js';
* starting at 0. For instance ``wfs_0_<layer attribute name>``
*
* Example:
* http://example.com?wfs_layer=parcels&wfs_ngroups=2
* &wfs_0_city=Oslo&wfs_0_number=12,34,56&wfs_1_city=Paris&wfs_1_number=78,90
* http://example.com?wfs_layer=parcels&wfs_ngroups=2&wfs_0_city=Oslo&wfs_0_number=12,34,56&wfs_1_city=Paris&wfs_1_number=78,90
* will load parcels #12, 34 and 56 of the city of Oslo as well as
* parcels #78 and 90 of the city of Paris.
*
Expand Down

0 comments on commit e70b584

Please sign in to comment.