Routes - WMS
Implementing GeoServer WMS
Datasets
The map demostrates implementation of a WMS (Web Mapping Service) served by GeoServer. Two layers are provided by the service. Route points and route tracks.
Both datasets were sourced from open API's on morotur.no, manipulated in QGIS, uploaded to PostGIS, and served by GeoServer. The dataset with route pints had to converted from JSON to GeoJSON using a custom Python script before it could be manipulated in QGIS.
Web Mapping Service
When the user changes the route type by clicking on the buttons on top of the map, a CQL (Contextual Query Language) filter is applied to limit the features rendered by the GeoServer WMS, then the map updates accordingly by clearing the current layer, and adding tiles with the new filter.
Legend
The map legend is presented using the legend feature from the WMS service, and a modified version of the legend library from kartoza.
Notes
The same geodata presented using WFS from my private GeoServer can be found here.