compassinformatics / cpsi-mapview

GNU General Public License v3.0
6 stars 14 forks source link

Add Vector Tile support to the LayerFactory #102

Closed geographika closed 5 years ago

geographika commented 5 years ago

Allow vector tile layers (from MapServer) to be added via a config file and the LayerFactory

Applying symbology - it is possible to export SLD styles from MapServer - could GeoStyler be used here? Is there a SLD to MVT-styling conversion that could be run from the command-line? The styling would be fairly static (so could be updated offline for a deployment). Unsure how tooltips are configured in OpenLayers for vector tiles. Ideally they would work with the ToolTip.js class.

Vector tiles are supported in the current MapServer environment. They can be accessed in MapServer using the WMS interface e.g. http://localhost/mapserver/?SERVICE=WMS&VERSION=1.3.0&REQUEST=GetMap&FORMAT=mvt&LAYERS=mylayer&BBOX=...

They can also be accessed via XYZ templates e.g. http://localhost/mapserver/?mode=tile&tilemode=gmap&tile={x}+{y}+{z}&layers=mylayer&map.imagetype=mvt

It appears the XYZ template is the standard method OpenLayers uses. However the advantage to MapServer of using a WMS interface is the a FILTER= parameter can be passed with the URL to filter out features on the server. This approach would therefore be preferred.

geographika commented 5 years ago

Thanks @chrismayer - great to have this functionality in OpenLayers / GeoExt. Related issue #129 but not a blocker.