mirror of
https://github.com/umap-project/umap.git
synced 2025-04-28 19:42:36 +02:00
uMap lets you create maps with OpenStreetMap layers in a minute and embed them in your site.
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 |
||
---|---|---|
.github | ||
.tx | ||
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