umap/umap
Yohan Boniface 787f22efd4 WIP: rename DataLayer/Map.settings to DataLayer/Map.metadata and more
The main goal is to clarify the use of options/settings/properties…

- `settings` should be reserved to Django
- `options` should be reserved to pure Leaflet context
- `properties` used in the geojson context, for user data

Main changes:
- `DataLayer.settings` is renamed to `DataLayer.metadata`
- `DataLayer.geojson` is renamed to `Datalayer.data`
- `DataLayer.metadata` are not saved anymore in the geojson data file
- `Map.settings` is renamed to `Map.metadata`
- `Map.metadata` is now a flat key/value object, not a geojson Feature anymore
- `Map.zoom` is now populated and reused

Note: U.Map is still inheriting from Leaflet Map, so it mixes
`options` and `metadata`.

This changes is very intrusive, it changes

- the DB schema
- the way we store data in the FS (now without metadata)
- the way we backup map data

fix #1636
prepares #1335
prepares #1635
prepares #175
2024-08-27 11:24:31 +02:00
..
bin [style] Format the code 2023-11-24 23:31:18 +01:00
locale i18n 2024-08-03 07:37:20 +02:00
management refactor(sync): rename ws.py to websocket_server.py 2024-06-07 18:21:30 +02:00
migrations WIP: rename DataLayer/Map.settings to DataLayer/Map.metadata and more 2024-08-27 11:24:31 +02:00
settings fix: catch login_required from map page and add a way to login 2024-07-30 14:41:10 +02:00
static WIP: rename DataLayer/Map.settings to DataLayer/Map.metadata and more 2024-08-27 11:24:31 +02:00
templates WIP: rename DataLayer/Map.settings to DataLayer/Map.metadata and more 2024-08-27 11:24:31 +02:00
templatetags WIP: rename DataLayer/Map.settings to DataLayer/Map.metadata and more 2024-08-27 11:24:31 +02:00
tests WIP: rename DataLayer/Map.settings to DataLayer/Map.metadata and more 2024-08-27 11:24:31 +02:00
__init__.py 2.5.1 2024-07-12 19:01:42 +02:00
admin.py Allow to edit pictogram categories from admin list 2023-12-17 12:20:30 +01:00
apps.py Prepare for Django 4.x 2023-02-22 15:19:38 +01:00
autocomplete.py [style] Format the code 2023-11-24 23:31:18 +01:00
context_processors.py feat: add minimal OpenGraph links 2024-04-17 10:55:07 +02:00
decorators.py wip: refactor login flow 2024-02-05 07:22:53 +01:00
fields.py chore: factorize json.dumps in an util function. 2024-03-05 11:25:37 +01:00
forms.py WIP: rename DataLayer/Map.settings to DataLayer/Map.metadata and more 2024-08-27 11:24:31 +02:00
managers.py [style] Format the code 2023-11-24 23:31:18 +01:00
middleware.py [style] Format the code 2023-11-24 23:31:18 +01:00
models.py WIP: rename DataLayer/Map.settings to DataLayer/Map.metadata and more 2024-08-27 11:24:31 +02:00
storage.py fix: correct way to replace imports in collecstatic 2024-07-12 19:00:59 +02:00
urls.py WIP: rename DataLayer/Map.settings to DataLayer/Map.metadata and more 2024-08-27 11:24:31 +02:00
utils.py chore: factorize json.dumps in an util function. 2024-03-05 11:25:37 +01:00
views.py WIP: rename DataLayer/Map.settings to DataLayer/Map.metadata and more 2024-08-27 11:24:31 +02:00
websocket_server.py tests(sync): Change the way the websocket server is run in the tests 2024-06-07 18:21:30 +02:00
wsgi.py chore: bump ruff 2024-03-05 17:23:49 +01:00