zskarte / zskarte-client

Zivilschutz-Karte allows to draw situation maps for disaster management
https://www.zskarte.ch/
MIT License
13 stars 8 forks source link

feat(geojson): add option for geojson layers incl. feature search #417

Open swerder opened 2 months ago

swerder commented 2 months ago

Add option for an geojson type, where the whole defined geojson (defined by url) is loaded in an new layer. For styling the layer the definitions can be set by "Mapbox GL Style" or "OpenLayers Flat". Style can be defined as String or also per url.

If defined in the feature layer settings the search on the page can also be used to search on defined fields on the features and allow navigate to them. This function was designed to have a possibility for an offline search for addresses, and use the "entrances.geojson" (for used canton) from https://www.housing-stat.ch/de/madd/public.html#daten_herunterladen

It is based on wms persistant update https://github.com/zskarte/zskarte-client/pull/414