uMap lets you create maps with OpenStreetMap layers in a minute and embed them in your site.
Find a file
Yohan Boniface 455ddd455d
fix: do not try to create legend for non loaded classified layer (#2234)
fix #2232

A classified layer needs to have compiled the data to known its
classes/categories.

This commit review the way we build the legend: instead of creating with
the whole caption panel, we just set a container and we populate it
later. This opens the door for live changing the legend when editing the
layer.

But we have to clarify that "reactive" pattern at some point, as we have
some concurrent pattern laying around: the `render()`, which coupled
with the schema and this is nice, but for now it's a bit rough (changing
the whole UI each time); the `propagate` way, which is more specific,
but not coupled to the schema; the `dataChanged`; and the `onDataLoaded`
now, which is a bit different, as it's about the data being loaded, not
changed/modified, but for the DOM it may at the end be the same. Well,
food for thoughts…
2024-10-24 17:39:12 +02: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: bump mkdocs-material from 9.5.40 to 9.5.42 2024-10-21 17:40:54 +00:00
docs-users chore: bump mkdocs-material from 9.5.40 to 9.5.42 2024-10-21 17:40:54 +00:00
scripts chore: use colorbrewer as ES module 2024-10-16 09:01:31 +02:00
umap fix: do not try to create legend for non loaded classified layer (#2234) 2024-10-24 17:39:12 +02: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: use pytest-rerunfailed 2024-10-10 10:31:25 +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 ruff from 0.6.9 to 0.7.0 (#2230) 2024-10-22 08:28:13 +02: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.