How-to add Select to a layer ============================ Select operations are only supported on ``vector``, ``geojson``, ``ags-vector``, ``wfs``, and ``mapserver-wfs`` map-source types. You can also add select operations to ``ags``, ``wms``, and ``mapserver`` mapsources using the query-as technique. Add a supported vector map-source --------------------------------- This how-to references the ``firestations`` source and ``fire_stations`` layer. For more information on setting those up in your local demo, read the:doc:`./add-a-layer` guide. This example creates a WFS-source for the Firestations layer. Add the following to ``mapbook.xml``: .. raw:: html .. code:: xml ./demo/firestations/firestations.map .. raw:: html The important bits ------------------ The above defines the entire map-source but the following is what enables the layer to be used for select: 1. In ````, ``type="mapserver-wfs"``: WFS is the OGC Web Feature Serice. WFS servers emit actual vector features definitions and not rendered maps. You must have a ```` in the ```` for the wfs to be valid 2. In ````, ``selectable="true"``: This tells GeoMoose the layer can be used for selections. 3. Inside of ```` there is a ``