mirror of
https://github.com/umap-project/umap.git
synced 2025-04-29 03:42:37 +02:00
uMap lets you create maps with OpenStreetMap layers in a minute and embed them in your site.
![]() This PR introduce two new share_status: `DRAFT` and `DELETED`. So all status are now: (DRAFT, _("Draft (private)")), (PUBLIC, _("Everyone (public)")), (OPEN, _("Anyone with link")), (PRIVATE, _("Editors and team only")), (BLOCKED, _("Blocked")), (DELETED, _("Deleted")), Here are the impact of such introduction, on the draft side: - by default maps are now create in draft status, and they are not visible from others than owner (or collaborators if any); this can be changed for a given instance with the setting `UMAP_DEFAULT_SHARE_STATUS` - now even anonymous owned maps have a share status, given one of the goals is to make a better distinction between maps ready to be shared and other, this also apply to maps without logged in owners  - when the map in in draft mode, the "Save" button on the frontend says "Save draft", so to make the state clear  - now the visibility of the map is immediately visible on the top bar (while before this was only displayed after first save)  Note: add the end `DRAFT` and `PRIVATE` are very similar, but I made the choice to keep the two, so one can still distinguish their draft maps from their ready map they want to keep private. On the delete side: - when deleting a map, it's now set as `share_status=DELETED`, which act as a sort of trash; so it become easier to recover a map, with it's full datalayers, etc. (the only thing which will not be restored is the previous share_status, which should be draft again after a restore; the restore function itself is not implemented) - there is a new command `empty_trash` which delete for real maps in DELETED status and with last_modified > 30 days (by default, can be changed with a command line argument) - deleted maps disappear from all views: home, search, dashboard… - in the future, we could create a new view "My Trash", where one could see their deleted map not yet deleted for real (and that should be the opportunity to also add the `restore` function, which for now can be done by simply changing the share_status from the shell or the admin) - all the purgatory related code has been removed fix #2207 |
||
---|---|---|
.github | ||
.tx | ||
charts/umap | ||
docker | ||
docs | ||
docs-users | ||
scripts | ||
umap | ||
.dockerignore | ||
.eslintrc.json | ||
.gitignore | ||
.pipignore | ||
.prettierrc.yaml | ||
.readthedocs.yaml | ||
.travis.yml | ||
biome.json | ||
docker-compose.yml | ||
Dockerfile | ||
LICENSE | ||
Makefile | ||
manage.py | ||
MANIFEST.in | ||
mkdocs.yml | ||
osmic-white.yaml | ||
osmic.yaml | ||
package.json | ||
pyproject.toml | ||
pytest.ini | ||
README.md | ||
SECURITY.md |
uMap project
uMap lets you create maps with OpenStreetMap layers in a minute and embed them in your site. Because we think that the more OSM will be used, the more OSM will be improved. Built on top of Django and Leaflet.
- Have a look at our website for an introduction
- See our docs for technical information
- Come chat with us on matrix.org, or join the mailing-list