David Larlet
7ce5646c54
chore: move computePosition to Positioned base class
2024-07-12 11:37:03 -04:00
Yohan Boniface
a101309e03
wip: use Input not BlurInput in tableeditor
...
BlurInput adds a "check" button we don't want here.
2024-07-12 12:31:50 +02:00
Yohan Boniface
96c9bf9413
wip: set contextmenu x/y according to position in window
2024-07-12 12:21:30 +02:00
Yohan Boniface
4a6b271bbe
wip: deal with escape in tableeditor input/textarea
2024-07-11 20:39:05 +02:00
Yohan Boniface
9f04f56c7c
wip: use position: fixed for input/textarea in tableeditor
...
so it does not increase the cell width and does not change all
the table size.
Actually, there is still a small size change as we remove the cell
content before adding the input/textarea, but more subtle than before
2024-07-11 20:39:05 +02:00
Yohan Boniface
3fb7be28ec
wip: remove old tableeditor class
2024-07-11 20:39:05 +02:00
Yohan Boniface
2f8cda83b6
wip: do not try to read map.fullPanel blindly
...
It is only defined when user has write permissions.
2024-07-11 20:39:05 +02:00
Yohan Boniface
f1c34f9d27
wip: minimal keyboard navigation in table editor
2024-07-11 20:39:05 +02:00
Yohan Boniface
f62f3b4ab9
wip: make outline appears on click on table editor
2024-07-11 20:39:05 +02:00
Yohan Boniface
1ef416a622
wip: allow to open table "editor" (readonly) for remote data layers
2024-07-11 20:39:05 +02:00
Yohan Boniface
5909630e0e
wip: fix bugs and add tests for table editor
2024-07-11 20:39:05 +02:00
Yohan Boniface
9ac3de2b33
wip: (huge) table editor refactor
2024-07-11 20:39:05 +02:00
Yohan Boniface
ae9659620a
wip: another attemp to massiverly delete features from a condition
2024-07-11 20:39:05 +02:00
Yohan Boniface
3fa478abac
Merge pull request #1981 from umap-project/autocomplete-datalist
...
feat: add AutocompleteDatalist and use it for conditional rules
2024-07-10 11:36:59 +02:00
Yohan Boniface
7baa70d1b6
feat: add AutocompleteDatalist and use it for conditional rules
2024-07-10 10:10:53 +02:00
Yohan Boniface
76fbb306fc
Merge pull request #1982 from umap-project/categorized-color
...
fix: use correct color for categorized/choropleth layers in browser
2024-07-09 15:16:19 +02:00
Yohan Boniface
ed6f0fcdf1
Merge pull request #1979 from umap-project/fix-blurinput
...
fix: BlurInput was not updating the object in some situations
2024-07-09 15:15:26 +02:00
Yohan Boniface
e3f59850a7
fix: fix preview color for polygons
...
Use usually set the `color` property, but we want to use the
fillColor if it sets.
2024-07-09 12:47:10 +02:00
Yohan Boniface
00483882a1
fix: use correct color for categorized/choropleth layers in browser
2024-07-09 11:58:29 +02:00
Yohan Boniface
dd9c3ba194
chore: biome
2024-07-09 11:47:34 +02:00
Yohan Boniface
3be274929a
fix: BlurInput was not updating the object in some situations
...
Steps to reproduce:
- click in any BlurInput
- change to any value
- click outside the input => the value will be set to the object
- click again in the input
- change value to the initial
- click outside => the value will not be set
This is because the BlurInput in sync on blur, and it was comparing
the current field value with an "initial" one, only set at build.
This check is made because we don't want to trigger an edit when a
user click in a blurinput and click outside without changing the value.
2024-07-09 10:46:22 +02:00
Yohan Boniface
36b4510e46
fix: make sure panels are above controls
...
fix #1954
2024-07-05 18:59:13 +02:00
Yohan Boniface
4ae47de8a9
Merge pull request #1958 from umap-project/broken-help
...
fix: main help button from edit toolbar was broken
2024-07-05 18:51:14 +02:00
Yohan Boniface
207860ecf5
chore: refactor help.button arguments
2024-07-05 18:27:53 +02:00
Yohan Boniface
ec5f8d7b3c
Update umap/static/umap/js/modules/help.js
...
Co-authored-by: David Larlet <3556+davidbgk@users.noreply.github.com>
2024-07-05 18:19:00 +02:00
Yohan Boniface
257d205690
Merge pull request #1953 from umap-project/categorized-layer
...
feat: add new type of layer Categorized
2024-07-05 18:18:36 +02:00
Yohan Boniface
1b8b130805
wip: no need for await here
2024-07-05 17:52:35 +02:00
Yohan Boniface
cc6ae95371
wip: make Map.initialize async
...
We want to be able to await function there.
Specifically, we want to await the data creation when it comes from
the `data` url param, so when we also consume the `feature` url param,
that feature is already on the map so we can open it
2024-07-05 17:52:35 +02:00
Yohan Boniface
49db1f9aaa
chore: move share to modules
2024-07-05 17:52:33 +02:00
Yohan Boniface
741fc70a17
wip: simpler syntax for dynamic import in formatters
2024-07-05 17:51:53 +02:00
Yohan Boniface
ca0f771947
wip: move formatters to a module
...
This mainly allows to dynamically load the third party libraries.
In the same process, those libs have changed:
- tokml => switch to placemarkio fork, more up to date and available
as ESM
- togpx => switch to geojson-to-gpx, more up to date and available as
ESM (note: this lib does not export polygons, because they do not
make sense in GPX world, while the previous was converting them as
lines before)
2024-07-05 17:51:53 +02:00
Yohan Boniface
f293f9c929
chore: move slideshow to a module
2024-07-05 17:35:08 +02:00
Yohan Boniface
6aa74060ad
chore: make explicit that the "show get started dialog" is a special case
2024-07-05 09:52:39 +02:00
David Larlet
8b62aecd31
chore: create a WithTemplate base class
...
Allows to load a string/template and bind all `data-ref` references to `this.elements`.
2024-07-04 20:11:38 -04:00
Yohan Boniface
6976fd1f63
Merge pull request #1963 from umap-project/overpass-departement
...
fix: allow to search a French departement in Overpass importer
2024-07-02 22:51:40 +02:00
Yohan Boniface
6cbda1f373
Merge pull request #1964 from umap-project/throttle-search
...
fix: add throttle in autocomplete
2024-07-02 22:51:09 +02:00
Yohan Boniface
4c1ea8b97f
wip: make sure dialog polyfill works
2024-07-02 20:49:14 +02:00
Yohan Boniface
abbd0eef62
fix: add throttle in autocomplete
2024-07-02 19:06:11 +02:00
Yohan Boniface
91badcdb5e
wip: rework dialog class
2024-07-02 18:11:22 +02:00
Yohan Boniface
23396ad4df
fix: allow to search a French departement in Overpass importer
...
And make it configurable in the same time.
2024-07-02 10:45:05 +02:00
Yohan Boniface
759dd34ef3
fix: main help button from edit toolbar was broken
2024-07-01 18:58:01 +02:00
Yohan Boniface
186025e0f0
chore: add custom prompt
2024-07-01 18:54:06 +02:00
Yohan Boniface
ce3439f6b5
feat: add new type of layer Categorized
...
This is like Choropleth, but with categories instead of graduated.
fix #1433
2024-07-01 12:48:46 +02:00
Yohan Boniface
3a10b0c4e0
i18n
2024-06-26 23:18:30 +02:00
David Larlet
3805d7f308
fix: better line-height for importers’ names
2024-06-26 15:43:46 -04:00
David Larlet
b01a194469
Merge pull request #1943 from umap-project/multiple-dataurl-onload
...
feat: handle multiple dataUrl parameters on map load
2024-06-26 14:22:11 -04:00
David Larlet
84e7f7a0a8
Merge pull request #1944 from umap-project/apply-biome-unsafe-2
...
chore: apply Biome unsafe changes
2024-06-26 13:21:56 -04:00
David Larlet
31d1c36a48
chore: explicit comment for global isNaN usage
2024-06-26 13:05:24 -04:00
7a7977c5cd
fix(sync): do not send messages when loading data from the server
...
This introduces a `sync=true/false` parameter that can be passed along
when loading data from our own server, in which case we don't want to
send "operation" messages.
2024-06-26 18:59:20 +02:00
0dcedeb525
fix(sync): sync feature layer changes
...
This commits adds a way to differenciate "end of edit" events that are
triggered rightfully and the one which are triggered during the deletion
of a feature.
Also, directly call the `sync.upsert()` method after the move happened.
2024-06-26 18:59:20 +02:00