brouter-web icon indicating copy to clipboard operation
brouter-web copied to clipboard

Store custom layers as FeatureCollection

Open zod opened this issue 1 year ago • 0 comments

Replace custom format with GeoJSON Features which are already used for layer configuration. This allows storing also MVT or GeoJSON layers.

Currently custom layers are stored in localStorage in a custom format which supports only TMS, OverpassAPI and OpenStreetMapNotesAPI(?). For #775 support for additional formats is required. Instead of extending the custom format this reuses the existing handling from LayerConfig which uses JOSM's map format serialized to GeoJSON.

Existing localStorage are converted to the new format.

zod avatar Oct 11 '23 09:10 zod