No description
Find a file
Yohan Boniface 4669053b18 chore: refactor initCenter and controls ordering
We had an issue (not in Github :p) where a map was not loading
because the defaultView was set to "data", and the layers were
remote data layers. In this case, when computing the remote URL,
we allow to replace georelated variables (like east, west, north,
lat…), which needs the map to have a view.
So:
- the default view was expecting the data to be loaded (="data")
- the data to be loaded needed a default view…

So instead of adding yet another call to _setDefaultView in an
edge case, we reordered the way we initialize the map elements:

- first we initialize the controls (because initCenter needs the
  locate control to exist)
- then we call initCenter
- then we initialize the tile layers (because the miniMap needs it
  to render itself)
- then we call renderControls
2024-03-27 20:14:43 +01:00
.github Merge branch 'master' into dependabot/pip/django-5.0.1 2024-01-30 14:01:55 -05:00
.tx i18n 2023-02-22 10:23:03 +01:00
docker fix: run collectstatic first in Docker entrypoint 2024-02-19 10:03:47 +01:00
docs Merge pull request #1709 from umap-project/dependabot/pip/mkdocs-material-9.5.15 2024-03-25 21:00:51 +01:00
scripts chore: rm vendors/ dir before collecting vendors 2024-02-09 18:44:00 +01:00
umap chore: refactor initCenter and controls ordering 2024-03-27 20:14:43 +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 fix: gitignore should only ignore static/ dir at rool level 2024-01-17 20:14:21 +01: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
docker-compose.yml 2.0.2 2024-02-19 10:05:30 +01:00
Dockerfile Add umap command in Docker PATH 2023-06-29 15:19:39 +02:00
LICENSE Switch license from WTFPL to AGPLv3 2024-02-12 21:03:17 -05:00
Makefile chore: split lint and format recipes 2024-03-25 19:28:20 +01: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 docs: document how dependencies are handled 2024-01-15 14:44:55 +01: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-lock.json lint: use eslint with a browserslist configuration 2024-01-29 16:44:04 -05:00
package.json chore: bump Leaflet.i18n 2024-03-22 18:08:33 +01:00
pyproject.toml chore: bump ruff from 0.3.3 to 0.3.4 2024-03-25 20:02:12 +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.