From efeec0bf4278781791b2203c4160c19a7dcde49a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Antonia=20P=C3=A9rez-Cerezo?= Date: Mon, 10 Mar 2025 22:08:12 +0100 Subject: [PATCH] Document editing mode --- README.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/README.md b/README.md index acbaeda..d6db7f0 100644 --- a/README.md +++ b/README.md @@ -82,6 +82,20 @@ value also increases the size of the `strecken.pmtiles` file. If not given explicitly `maxZoom` defaults to 10. +## Map Editing Mode + +As a new experimental feature, Streckenkarte implements a simple +[brouter][brouter] frontend to allow for easy editing, currently only +supported on browsers that support +[showDirectoryPicker](https://developer.mozilla.org/en-US/docs/Web/API/Window/showDirectoryPicker). It +can be accessed by adding `?edit=1` to the URL and then clicking the +"edit" button that appears in the top right corner. Then, the +directory containing the files for the layer that is to be edited can +be opened in the file selection dialog and lines can be drawn as in +the normal brouter web frontend. By clicking on "save", the lines are +saved locally in the chosen directory and will only appear on the +production map if processed correctly by the tile-generating script. + ## Troubleshooting ### My pmtiles file is huge (hundreds of megabytes)