uMap lets you create maps with OpenStreetMap layers in a minute and embed them in your site.
Find a file
Alexis Métaireau 7dadb83ff5 feat(sync): Let the clients set layers UUID
This make it possible to synchronize datalayers before their creation on
the server, allowing at the same time to solve issues related to them
not being saved (e.g. duplication of geometries)

We use the DataLayer._referenceVersion to track if a DataLayer has been
saved on the server.

After a save, the _referenceVersion is synched with other peers.

To pass the reference version from the server to the frontend, we have two
options:
- use a header
- populate the `options.version` field

In the case of a GET on a Datalayer, we could not use the `options` scenario
because:
- the value in the file is not up to date (it was the value the client has
 before the save)
- the python cannot change it on the fly, as the file is served by nginx

So we decided to keep using a header. But on the map view, we load all
datalayers metadatas in the map options, so here we cannot use the header
scenario, so in this specific case we had to populate `options._referenceVersion`.

At the same time, we also changed:
- Umap.options.umap_id => Umap.id
- DataLayer.umap_id => Datalayer.id
- fixed the version number returned by DataLayer.version_metadata
2024-11-15 15:22:36 +01:00
.github chore: add a Github action to autoclose issues after some time 2024-09-17 09:51:10 +02:00
.tx i18n 2023-02-22 10:23:03 +01:00
docker chore(deploy): Spawn the websocket server in the docker image. 2024-10-03 12:26:33 +02:00
docs chore: split umap.js in two modules (#2257) 2024-11-13 14:52:33 +01:00
docs-users chore: bump pymdown-extensions from 10.11.2 to 10.12 2024-11-11 18:11:20 +00:00
scripts chore: use colorbrewer as ES module 2024-10-16 09:01:31 +02:00
umap feat(sync): Let the clients set layers UUID 2024-11-15 15:22:36 +01:00
.dockerignore Do not track Dockerfile, not to invalidate Docker cache at each change 2023-06-05 14:44:33 +02:00
.eslintrc.json lint: use eslint with a browserslist configuration 2024-01-29 16:44:04 -05:00
.gitignore chore: remove package-lock.json from git 2024-10-04 17:22:04 +02:00
.pipignore Upgrade django-social-auth to python-social-auth 2014-03-06 23:22:37 +01:00
.prettierrc.yaml Apply PrettierJS to the whole codebase 2023-05-12 13:57:03 -04:00
.readthedocs.yaml Control which version of mkdocs is install on readthedocs 2023-04-30 11:35:23 +02:00
.travis.yml deps: adaptations for Django 5.x 2024-01-29 14:29:24 -05:00
biome.json chore: remove the noDelete rule completely 2024-06-25 21:31:37 -04:00
docker-compose.yml version is obsolete. 2024-10-17 08:42:51 +10:00
Dockerfile fix: uppercased AS in Dockerfile 2024-08-02 11:08:44 -04:00
LICENSE Switch license from WTFPL to AGPLv3 2024-02-12 21:03:17 -05:00
Makefile chore: install sync target on "make develop" 2024-10-21 11:59:58 +02:00
manage.py [style] Format the code 2023-11-24 23:31:18 +01:00
MANIFEST.in Explicitly exclude local.py from being released 2018-07-07 23:46:10 +02:00
mkdocs.yml Split users’ documentation to dedicated folder 2024-05-08 21:17:00 -04:00
osmic-white.yaml update osmic YAML files according to new configuration 2018-11-17 22:03:08 +01:00
osmic.yaml update osmic YAML files according to new configuration 2018-11-17 22:03:08 +01:00
package.json chore: bump and pin front facing JS deps 2024-10-15 11:28:39 +02:00
pyproject.toml chore: bump pymdown-extensions from 10.11.2 to 10.12 2024-11-11 18:11:20 +00:00
pytest.ini [ci] Add support for Github Actions 2023-11-24 23:31:18 +01:00
README.md docs: Update the links in the README, remove the badges 2024-01-06 14:31:46 +01:00
SECURITY.md [docs] Update security contact information 2023-12-15 17:20:30 +01:00

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.