Yohan Boniface
bffbeb5230
fix: allow to save/undo/sync drag'n'drop of datalayers ( #2677 )
...
This also:
- introduces a new DataLayerManager
- removes the _umap_options coming from the geojson form the server
- removes all backup related functions (now we have undo/redo)
fix #2674
2025-04-25 15:35:23 +02:00
Yohan Boniface
f01a74f19f
i18n
2025-04-25 11:29:43 +02:00
Yohan Boniface
626b669d89
fixup: fix tests
2025-04-25 07:09:31 +02:00
Yohan Boniface
5af41b4528
fix: allow to save/undo/sync drag'n'drop of datalayers
...
This also:
- introduces a new DataLayerManager
- removes the _umap_options coming from the geojson form the server
- removes all backup related functions (now we have undo/redo)
Co-authored-by: David Larlet <david@larlet.fr>
2025-04-24 18:38:02 +02:00
Yohan Boniface
19d16ac01b
fix: setting center and zoom manually should set dirty status
...
Co-authored-by: David Larlet <david@larlet.fr>
2025-04-23 18:00:48 +02:00
Yohan Boniface
efaa765b82
chore: cleaning core utils and removing DomUtil/DomEvent from modules ( #2671 )
2025-04-23 17:51:45 +02:00
Yohan Boniface
92ca581fb6
fix: allow to save a remote data with unloaded data ( #2657 )
...
When loading remote data fails, the layer is in state "unloaded", and
thus it was not possible to save it.
This "isLoaded" check is made for non remote layer so that we don't save
it by mistake with no data.
Also, let's allow to edit non loaded layers, this check was there when
settings was not on db, so not all loaded at map init, again not to
override with incomplete metadata.
2025-04-23 17:49:12 +02:00
Yohan Boniface
6687cd53ba
feat: add a back button in rules form ( #2673 )
...
To go back in rules list.
fix #2631

2025-04-23 17:43:22 +02:00
Yohan Boniface
4997ee8860
feat: naive support for GeometryCollection as Feature geometry ( #2658 )
...
Currently, we just skip those, but sometimes togeojson produces this
output from a KML.
This will create one feature per geometry, while in an ideal world this
should be a multi, but we lack reliable geometry tools to merge the
geometries without risking to create mistakes.
So let's say it's a first improvement.
2025-04-23 17:43:05 +02:00
Yohan Boniface
a708316604
fix: make rules reordering syncable, savable and undoable ( #2672 )
2025-04-23 17:42:47 +02:00
Yohan Boniface
71d92aa610
fix: show an error message if saving layer failed ( #2670 )
...
This could occur when server is down or there is no network.
2025-04-23 17:40:19 +02:00
Yohan Boniface
41752bd0c6
fix: do not display "saved" message if some request failed ( #2669 )
2025-04-23 17:39:59 +02:00
Yohan Boniface
07363fa5fe
chore: remove unused DomEvent.once
2025-04-23 16:52:55 +02:00
Yohan Boniface
7991d6cdbe
chore: remove DomUtil.after/before
2025-04-23 16:50:13 +02:00
Yohan Boniface
60ac4b35f2
chore: remove most of DomUtil/DomEvent from browser.js
2025-04-23 16:24:15 +02:00
Yohan Boniface
bf2e9dc175
chore: remove call to DomUtil.createIcon in umap.js
2025-04-23 11:33:12 +02:00
Yohan Boniface
67ed6d5b44
feat: add a back button in rules form
...
To go back in rules list.
fix #2631
2025-04-23 10:55:39 +02:00
Yohan Boniface
fad182c5f3
fix: make rules reordering syncable, savable and undoable
2025-04-23 10:19:19 +02:00
Yohan Boniface
3f5d282477
chore: remove DomUtil and DomEvent dependency from rules.js
2025-04-23 10:14:22 +02:00
Yohan Boniface
49496348d2
chore: remove unused L.DomUtil.createLink method
2025-04-23 09:21:35 +02:00
Yohan Boniface
f8b13639aa
fix: show an error message if saving layer failed
...
This could occur when server is down or there is no network.
2025-04-23 09:02:25 +02:00
Yohan Boniface
4c71710641
fix: do not display "saved" message if some request failed
2025-04-23 08:58:17 +02:00
Yohan Boniface
92d5c47844
chore: move pure Leaflet controls to modules
...
pure == inheriting from Leaflet itself, not from some plugin
(which aren't ESM ready…)
2025-04-22 20:14:06 +02:00
David Larlet
78d333c217
chore: more design system elements
2025-04-17 17:29:43 -04:00
Yohan Boniface
b0fe95dbd9
feat: naive support for GeometryCollection as Feature geometry
...
Currently, we just skip those, but sometimes togeojson produces this
output from a KML.
This will create one feature per geometry, while in an ideal world this
should be a multi, but we lack reliable geometry tools to merge the
geometries without risking to create mistakes.
So let's say it's a first improvement.
2025-04-16 18:28:23 +02:00
Yohan Boniface
23b82975f5
chore: bump togeojson
Release Charts / release (push) Has been cancelled
Test & Docs / tests (postgresql, 3.10) (push) Has been cancelled
Test & Docs / tests (postgresql, 3.12) (push) Has been cancelled
Test & Docs / lint (push) Has been cancelled
2025-04-16 17:30:17 +02:00
Yohan Boniface
169be73488
fix: allow to save a remote data with unloaded data
...
When loading remote data fails, the layer is in state "unloaded",
and thus it was not possible to save it.
This "isLoaded" check is made for non remote layer so that we don't
save it by mistake with no data.
Also, let's allow to edit non loaded layers, this check was there
when settings was not on db, so not all loaded at map init, again
not to override with incomplete metadata.
2025-04-16 16:00:26 +02:00
Yohan Boniface
6945a5e867
feat: pass CSRF_TRUSTED_ORIGINS env to settings ( #2656 )
...
Release Charts / release (push) Waiting to run
Test & Docs / tests (postgresql, 3.10) (push) Waiting to run
Test & Docs / tests (postgresql, 3.12) (push) Waiting to run
Test & Docs / lint (push) Waiting to run
Allow to manage djangos CSRF_TRUSTED_ORIGINS by environment variables.
Closes #2655
2025-04-16 12:34:49 +02:00
Oliver Lippert
2ed890202e
code formatting
2025-04-16 12:25:17 +02:00
Oliver Lippert
cc7685ca3f
pass CSRF_TRUSTED_ORIGINS env to settings
...
fixes https://github.com/umap-project/umap/issues/2655
2025-04-16 12:23:09 +02:00
David Larlet
d3c0947fa5
feat: implement a design system for UI consistency
2025-04-14 23:20:55 -04:00
Yohan Boniface
c4614354ae
3.0.4
2025-04-14 17:57:12 +02:00
Yohan Boniface
9ed466ea9b
chore: update colors ( #2647 )
2025-04-14 17:55:19 +02:00
Yohan Boniface
168cc0c996
i18n
2025-04-14 17:49:09 +02:00
Yohan Boniface
ae4e7eb3e2
chore: update colors
...
Co-authored-by: David Larlet <david@larlet.fr>
2025-04-14 17:45:11 +02:00
Yohan Boniface
ada44fc0fc
fix: remove "hide home button" shown twice in map settings ( #2645 )
2025-04-14 17:30:52 +02:00
Yohan Boniface
ac6964c9f4
fix: remove "hide home button" shown twice in map settings
...
Co-authored-by: David Larlet <david@larlet.fr>
2025-04-14 16:30:38 +02:00
Yohan Boniface
d9e983aed4
fix: do not show "back to home" button in iframes
...
Co-authored-by: David Larlet <david@larlet.fr>
2025-04-14 16:12:35 +02:00
Yohan Boniface
071a8c539d
3.0.3
Test & Docs / tests (postgresql, 3.10) (push) Has been cancelled
Test & Docs / tests (postgresql, 3.12) (push) Has been cancelled
Test & Docs / lint (push) Has been cancelled
2025-04-11 18:09:14 +02:00
Yohan Boniface
ec8fa87b41
i18n
2025-04-11 17:33:22 +02:00
Yohan Boniface
ef072f0a8e
feat: allow to hide the back to home button ( #2638 )
2025-04-11 17:30:15 +02:00
David Larlet
324c5cf6bf
feat: allow to hide the back to home button
...
Co-authored-by: Yohan Boniface <yohanboniface@free.fr>
2025-04-11 17:22:09 +02:00
Yohan Boniface
e53cdcb04e
feat: hidden download button in browser when embedControl=false
...
cf #2629
Co-authored-by: David Larlet <david@larlet.fr>
2025-04-11 17:15:39 +02:00
David Larlet
495286c261
feat: allow to hide the layer switcher from bottom bar
2025-04-11 10:44:01 -04:00
Yohan Boniface
15972bab3d
document that nginx needs to be added in Docker stack to serve statics ( #2636 )
2025-04-11 16:19:47 +02:00
Yohan Boniface
bd91934544
fix: do not try to remove a feature not yet added ( #2637 )
...
cf #2625
This happens while drawing a line or polygon and then hitting escape
while the path is not yet valid.
2025-04-11 16:19:29 +02:00
Yohan Boniface
581140e08a
fix: do not try to remove a feature not yet added
...
cf #2625
This happens while drawing a line or polygon and then hitting escape
while the path is not yet valid.
2025-04-11 10:02:31 -04:00
Yohan Boniface
0ec4e74f8f
wip: add nginx in docker-compose.yml
2025-04-11 11:31:54 +02:00
David Larlet
38f4fd5bb3
fix: display search category on list page
2025-04-10 17:13:33 -04:00
Yohan Boniface
7348f0bf4f
fix: display back help button in switch fields
...
cf #2615
2025-04-10 20:24:35 +02:00