No description
Find a file
Yohan Boniface c334f7554e feat: add experimental "map preview"
This is the same as "map new", but it is not in edit mode. This
allow to click on the elements and see the popups instead of editing
it when using a `dataUrl` query string.
This way of using uMap is not documented, but it's used by some
partners (Deveco recently, data.gouv.fr historicaly).

In the same time, this PR adds two things:
- possibility to pass data direclty in querystring (instead of an URL):
  in the case of Deveco, they have pages where only point is shown (for
  each company)
- possibility to pass style options directly from query string: may
  allow for example to control the `popupTemplate`, eg. to use a table
  one that will display all properties of the clicked feature

Note: dataUrl and such also works in normal "map new" view. There are
two use cases around those parameters, from external sites:
- see this data on uMap (should point on map preview)
- create a map with those data (should point on map new)
2024-02-07 13:57:20 +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 Update uwsgi.ini to prevent buffers errors with NGINX reverse proxies 2023-10-02 17:39:00 -04:00
docs chore: bump mkdocs-material from 9.4.14 to 9.5.7 2024-02-05 17:52:13 +00:00
scripts Use minified versions + sourcemaps of vendor statics 2024-01-21 14:02:16 -05:00
umap feat: add experimental "map preview" 2024-02-07 13:57:20 +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 Replace wait_for_database with depends_on and healthcheck. 2023-09-16 11:12:50 -04:00
Dockerfile Add umap command in Docker PATH 2023-06-29 15:19:39 +02:00
LICENSE Fixed typo 2013-06-23 22:43:29 -05:00
Makefile Merge branch 'master' into dependabot/pip/django-5.0.1 2024-01-30 14:01:55 -05: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 tests: fix 90% of the javascript tests 2024-02-05 07:23:15 +01:00
pyproject.toml chore: bump hatch from 1.9.1 to 1.9.3 2024-02-05 19:49:09 +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.