Yohan Boniface
31371cc38c
Merge pull request #2101 from umap-project/datalayers-control-expanded-with-onloadpanel
...
fix: make sure datalayersControl=expanded does not override onLoadPanel
2024-09-04 15:55:27 +02:00
Yohan Boniface
71ceb87fe2
fix: make sure datalayersControl=expanded does not override onLoadPanel
...
This value of datalayersControl exists for retrocompat only (it's now
replaced by onLoadPanel=browser)
2024-09-04 15:00:14 +02:00
Yohan Boniface
4f9b4a80c3
fix: do not fail when trying to edit a circlemarker
...
And for now open the properties panel (geometry/position may be
edited later, when Leaflet.Editable knows about CircleMarker)
2024-09-04 14:36:03 +02:00
Yohan Boniface
c976a86982
fix: make sure to compare comparable values in ternary operators
...
Comparing `"null"` (in the HTML) and `null` (in the JS) was returning
false.
2024-09-04 11:32:14 +02:00
Yohan Boniface
ee7439a0f9
fix: tilelayer plus icon where never displayed
...
We were testing the length of the `_layers` property, which where
sliced to `maxShown` before…
2024-09-04 11:23:20 +02:00
Yohan Boniface
c33adcf0e7
Merge pull request #2096 from umap-project/fix-more-button-icon
...
fix: correct position for more button icon
2024-09-03 15:44:12 +02:00
Yohan Boniface
f986ebf3b3
fix: correct position for more button icon
2024-09-03 15:43:19 +02:00
Yohan Boniface
c321a9e70d
Merge pull request #2095 from umap-project/fix-tilelayer-plus-button
...
fix: only show + button in tilelayer switcher when more available
2024-09-03 15:35:08 +02:00
Yohan Boniface
ca75955ca9
fix: only show + button in tilelayer switcher when more available
2024-09-03 15:34:15 +02:00
Yohan Boniface
e9b17ea9f2
feat: make boundary persistent in overpass importer
2024-09-03 15:29:40 +02:00
Yohan Boniface
f3f61f5d98
feat: add more context in overpass importer autocomplete results
2024-09-02 17:01:04 +02:00
Yohan Boniface
661c57ebc8
i18n
2024-08-30 20:29:27 +02:00
David Larlet
aeee58b42a
Merge pull request #2062 from umap-project/user-groups
...
feat: add teams
2024-08-30 13:05:02 -04:00
David Larlet
426780af2c
chore: clean up CSS for buttons in content pages
2024-08-30 11:03:00 -04:00
Yohan Boniface
b895013709
fix: do not redraw remote layer if not dynamic
2024-08-30 16:03:14 +02:00
Yohan Boniface
13735a5739
chore: use our own Team model
...
We suppose we'll quickly want more than a name, like a description
or a logo_url, and maybe a access_status or permissions…
2024-08-30 15:53:18 +02:00
Yohan Boniface
a45f6ddbe5
i18n
2024-08-30 15:44:56 +02:00
Yohan Boniface
360014901c
Merge pull request #2076 from umap-project/table-input-position
...
fix: remove position fixed for input and textarea in tableeditor
2024-08-30 15:38:47 +02:00
Yohan Boniface
6b6be017bb
wip: use autocomplete to add users in groups
2024-08-29 20:12:24 +02:00
Yohan Boniface
a3e972bf5d
wip: add group maps page and display group as author when defined
2024-08-29 20:12:22 +02:00
Yohan Boniface
dce0ee5f73
wip: use auth.models.Group and manage permissions
2024-08-29 20:11:19 +02:00
Yohan Boniface
061edd3198
Merge pull request #2081 from umap-project/fix-white-space-panel
...
fix: white space was broken since using loadTemplate
2024-08-29 20:08:51 +02:00
Yohan Boniface
d208b19ddb
fix: use position fixed for input and textarea in tableeditor
...
Otherwise when scrolling the table, the input will not appear at
the expected position, and may even appear outside of the view when
the table is bigger than the viewport.
Drawback: the table will resize its columns when the input/textarea
is created (as position: sticky is in the flow). So I've also removed
the width reset.
fix #2071
2024-08-29 20:07:28 +02:00
Yohan Boniface
f236e7e3b6
Merge pull request #2077 from umap-project/fix-continue-backward-measure
...
fix: correctly add drawn latlng when continuing line backward
2024-08-29 20:01:01 +02:00
Yohan Boniface
f96f2e1405
Merge pull request #2079 from umap-project/delete-button-tiled
...
chore: use tiled icon css for big delete buttons
2024-08-29 19:59:44 +02:00
Yohan Boniface
9894c6a669
chore: use tiled icon css for big delete buttons
...
That's a bit of an experiment, so to see what needs to be done:
- move the icon in the 24px svg normal and white to it's on the same
place as in the 16px
- replace the JS code (which used a :before class) to use a <i> element
- remove the old CSS class
I've a concern that the way we create elements using the loadTemplate is
more verbose and not DRY, let's discuss this :)
2024-08-29 19:52:29 +02:00
Yohan Boniface
5bbbf6a988
fix: white space was broken since using loadTemplate
...
Since a2ca3a1436
, the panel/popup
template uses loadTemplate, which used to remove all white spaces
from the inner html. We had to do this to workaround white space
breaking the slideshow toolbox buttons.
So this commits fixes this problem in another way: do not remove
white space (usefull for text content in popup/panels), but use
a display: flex instead of inline-block.
2024-08-29 12:21:51 +02:00
Yohan Boniface
a72691e390
feat: display contact infos in the footer
...
This adds a new settings: UMAP_HOST_INFOS
Also, renames UMAP_FEEDBACK_LINK in UMAP_HELP_URL.
cf #2004
2024-08-29 11:41:11 +02:00
Yohan Boniface
5314fcc13b
chore: better icon css default so to work in RTL too
2024-08-28 22:40:44 +02:00
Yohan Boniface
7a7553c52f
chore: use imports instead of globals in share.js
2024-08-28 22:40:44 +02:00
Yohan Boniface
d0c1a55b2f
chore: make icon.css more logical and working in rtl
2024-08-28 22:40:44 +02:00
fim100
ca86721b89
revert MarkerCluster.Default.css
2024-08-28 22:39:48 +02:00
fim100
431cd91d4c
revert leaflet.css
2024-08-28 22:39:48 +02:00
fim100
f9ba7f3c50
Update map.css
2024-08-28 22:39:48 +02:00
fim100
e74ca192d6
fix placement of navigation links in dashboard
...
My Map and My Profile
2024-08-28 22:39:48 +02:00
fim100
80a842bd32
fix icon position in dashboard
2024-08-28 22:39:48 +02:00
fim100
c52207ee0f
make map.css rtl-friendly
2024-08-28 22:39:48 +02:00
fim100
c554427fa8
make alert.css rtl-friendly
2024-08-28 22:39:48 +02:00
fim100
ed2a91330f
make nav.css rtl-friendly
2024-08-28 22:39:48 +02:00
fim100
3d7ca9c6f9
make importers.css rtl-friendly
2024-08-28 22:39:48 +02:00
fim100
b886dbac3c
make content.css rtl-friendly
2024-08-28 22:39:48 +02:00
fim100
26b1369a3c
make base.css rtl-friendly
2024-08-28 22:39:48 +02:00
fim100
a39d89295c
making slideshow.css rtl-friendly
2024-08-28 22:39:48 +02:00
fim100
1671a0bef1
making Update icon.css rtl-friendly
2024-08-28 22:39:48 +02:00
fim100
d65c48a88a
making Update leaflet.css rtl-friendly
2024-08-28 22:39:48 +02:00
fim100
ec790ad296
making MarkerCluster.Default.css rtl-friendly
2024-08-28 22:39:48 +02:00
Yohan Boniface
ca4df94e7f
fix: correctly add drawn latlng when continuing line backward
...
Otherwise the measure if wrong.
fix #2069
2024-08-28 15:01:43 +02:00
Yohan Boniface
ab8bce985e
Merge pull request #2053 from umap-project/bubble-layer
...
Add "Proportional Circles" layer type
2024-08-15 11:04:47 +02:00
Yohan Boniface
f05590e605
Merge pull request #2025 from umap-project/login-from-map
...
fix: catch login_required from map page and add a way to login
2024-08-15 10:57:10 +02:00
Yohan Boniface
e42ed4373f
wip: do not fail when setting "Circles" layer with non markers data
2024-08-15 10:36:54 +02:00
Yohan Boniface
b0c37671a8
Merge pull request #2060 from umap-project/georss-link-title
...
fix: do not append HTML element as title in GeoRSSLink popup
2024-08-15 10:25:21 +02:00
Yohan Boniface
bc34851def
fix: do not append HTML element as title in GeoRSSLink popup
2024-08-15 10:17:43 +02:00
Yohan Boniface
0847dc1ba6
fix: import GPX desc as description
2024-08-14 11:01:31 +02:00
Yohan Boniface
930463032b
wip: add minimal legend for circles layer
2024-08-13 12:30:39 +02:00
Yohan Boniface
cbb022f804
wip: use sqrt for computing circles radius to smooth the sizes
...
The theory is that the circles surface should be proportional, not
the radius.
2024-08-13 11:11:24 +02:00
Yohan Boniface
6b60b0de64
wip: add "Proportional Circles" layer
2024-08-13 11:11:24 +02:00
Yohan Boniface
5a33709cc9
Merge pull request #2057 from umap-project/icon-to-modules
...
chore: move icon.js to modules
2024-08-13 11:10:32 +02:00
Yohan Boniface
a04accf16c
Merge pull request #1994 from umap-project/more-tilelayers-button
...
feat: add a "+" button in the tilelayer switcher
2024-08-13 11:05:02 +02:00
Yohan Boniface
f9484c3336
chore: move icon.js to modules
2024-08-13 11:00:17 +02:00
Yohan Boniface
f08e9cadb5
Merge pull request #2041 from umap-project/mask-polygon
...
feat: allow to display a polygon "negative"
2024-08-13 10:57:37 +02:00
Yohan Boniface
327c1603f5
Revert "chore: switch to an UI class getter"
...
This reverts commit 6b793758c5d7d85a2120a5376134f485ea0807bc.
2024-08-13 10:20:46 +02:00
David Larlet
7863cebc32
chore: switch to an UI class getter
2024-08-13 10:20:46 +02:00
Yohan Boniface
00c384bf25
feat: allow to display a polygon "negative"
...
fix #1125
2024-08-13 10:20:44 +02:00
Yohan Boniface
a0ec0de6f7
feat: align celllayer and cellayerplus border
2024-08-07 09:12:46 +02:00
Yohan Boniface
facccc1c70
feat: add a "+" button in the tilelayer switcher
2024-08-06 13:38:39 +02:00
Yohan Boniface
91c9088082
i18n
2024-08-03 07:37:20 +02:00
David Larlet
29c07755b5
fix: reposition convert to polyline icon
2024-08-02 15:03:40 -04:00
David Larlet
a73134cdb0
Merge pull request #2042 from umap-project/vendors-included
...
chore: include vendorized static dependencies
2024-08-02 11:19:35 -04:00
Yohan Boniface
5d0abe7dc1
Merge pull request #2033 from umap-project/nocontrol-no-loading
...
fix: deactivate loader on map fragments
2024-08-02 17:18:02 +02:00
Yohan Boniface
9f5361f2c0
Merge pull request #2034 from umap-project/popup-to-modules
...
chore: move popups to modules
2024-08-02 17:15:26 +02:00
David Larlet
c6b2dbd04c
fix: avoid vendorizing lealfet useless files
2024-08-02 10:13:55 -04:00
David Larlet
5c7624a08e
fix: avoid vendorizing markercluster sources
2024-08-02 10:06:27 -04:00
David Larlet
cf00069017
fix: avoid vendorizing leaflet.toolbar sources
2024-08-02 10:01:57 -04:00
David Larlet
4125bd1be0
chore: include vendorized static dependencies
2024-08-02 09:54:54 -04:00
Yohan Boniface
5a0b75fd33
Merge pull request #2027 from umap-project/tableditor-direct-import
...
chore: import TableEditor directly from layer
2024-07-31 22:53:19 +02:00
Yohan Boniface
144c757e0f
chore: remove old TableEditor.js tests file
2024-07-31 22:42:23 +02:00
Yohan Boniface
222e69fbf4
chore: import TableEditor directly from layer
2024-07-31 22:42:22 +02:00
Yohan Boniface
6de5dabcc6
fix: fix georss import
2024-07-31 22:31:43 +02:00
Yohan Boniface
5145404dc4
fix: show delete button for owner and anonymous owner
2024-07-31 22:29:29 +02:00
Yohan Boniface
a2ca3a1436
chore: move popups to modules
2024-07-30 16:59:44 +02:00
Yohan Boniface
3bdd5bedf1
fix: catch login_required from map page and add a way to login
2024-07-30 14:41:10 +02:00
Yohan Boniface
084c674847
fix: deactivate loader on map fragments
...
Since 8ddc570e23
we lost the link
request <=> map, so the "dataloading" and "dataload" events are
global to the DOM, so when loading a list of maps, all instances
react to all dataloading events, which makes the list a mess.
I'd prefer to keep this loading indicator per map, but it's much
easier to just hide it, so let's go that way.
2024-07-30 14:28:41 +02:00
Yohan Boniface
cd439bb7d0
wip: remove umap.features.js
2024-07-29 16:24:59 +02:00
Yohan Boniface
65c5cb5ab5
wip: refactor isolateShape
2024-07-29 16:24:59 +02:00
Yohan Boniface
cd30f49773
wip: move back click handler to Leaflet Marker/Path
...
We tried to have only one listened at map level, but we get into
troubles with bindTooltip({permanent: false} and MarkerClusterGroup
stoping the event to each the map.
Let's go back to previous behaviour, and try later to clean this
event management.
2024-07-29 16:24:59 +02:00
Yohan Boniface
1bbdaa4c90
wip: do not try to redraw cluserized marker
2024-07-29 16:24:59 +02:00
Yohan Boniface
565f6d87b6
wip: fix editing Point coordinates by hand
...
For now we edit ui._latlng, but in an ideal world, we should edit
Point coordinates and then sync to the ui Marker.
2024-07-29 16:24:59 +02:00
Yohan Boniface
25d12420b2
wip: fix popup position for markers
...
Not sure what changed during the refactor, but now all popups
where opening at click position (plus the popupAnchor for markers).
2024-07-29 16:24:59 +02:00
Yohan Boniface
f80d471203
wip: do not sync twice on commit
2024-07-29 16:24:59 +02:00
Yohan Boniface
a022619625
wip: refactor DataLayer.geojsonToFeatures and fix sync tests
2024-07-29 16:24:59 +02:00
Yohan Boniface
081323dc8a
wip: (almost) fix tests
2024-07-29 16:24:59 +02:00
Yohan Boniface
7aa07709b3
wip: first step in moving features to modules (work in progress)
2024-07-29 16:24:56 +02:00
Yohan Boniface
e2d8201321
chore: move permissions to modules
2024-07-29 15:18:25 +02:00
Yohan Boniface
aae75d86e9
Merge pull request #2008 from umap-project/layer-var-in-popup
...
feat: add {layer} as popup variable (aka extended properties)
2024-07-23 21:49:04 +02:00
Yohan Boniface
ab34765c30
Merge pull request #1989 from umap-project/layer-to-modules
...
chore: move layers to modules/
2024-07-23 21:42:22 +02:00
Yohan Boniface
6b67ce26a1
feat: expose marker altitude in variables (as "alt")
2024-07-23 21:33:55 +02:00
Yohan Boniface
ef4e33a6ec
Merge pull request #2010 from umap-project/var-null
...
Fix variable pointing to null value displayed instead of the fallback
2024-07-22 17:58:15 +02:00
David Larlet
a8468cb4fa
chore: modern JS
2024-07-22 09:58:17 -04:00
Yohan Boniface
6b4b6ce53b
fix: do not consider null as value in greedyTemplate
...
cf #820#issuecomment-2227821746
2024-07-22 11:56:10 +02:00
Yohan Boniface
da8e206cd0
chore: pass biome on utils unittests
2024-07-22 11:55:35 +02:00
Yohan Boniface
67ec77fd8a
fix: broken sortKey help
...
And move properties to shema.js. Given those keys does not have
a "guessable" handler, let's have a "customHandlers" prop to deal
with those (instead of keeping them outside of the schema…)
fix #2006
2024-07-22 11:09:25 +02:00
Yohan Boniface
d54843bbe2
feat: add {layer} as popup variable (aka extended properties)
...
fix #2007
2024-07-22 10:41:46 +02:00
David Larlet
9609fafe93
fix: handle the 'auto' value special case for z-index
...
Fix #1997
2024-07-15 13:33:07 -04:00
Yohan Boniface
abbd0e4803
chore: move layers to modules/
...
This is a small step in the direction of spliting the data part
and the rendering part.
Basically in modules/data relies the data part, and in modules/rendering
the rendering part, which at some point in the history should be
the only place where we use and inherit from Leaflet, including utils
and such.
2024-07-12 23:21:41 +02:00
David Larlet
f5fd0eb6e9
fix: remove padding from table editor inputs
...
Also, decrease line-height of header cells
2024-07-12 14:23:54 -04:00
Yohan Boniface
8c58b06ce4
i18n
2024-07-12 18:34:03 +02:00
David Larlet
f40387d5fc
Merge pull request #1968 from umap-project/filter-layer-3
...
Refactor the table editor including mass actions and filters
2024-07-12 12:18:47 -04:00
David Larlet
f8cb195336
chore: back to this.properties for TableEditor
2024-07-12 12:02:28 -04:00
David Larlet
b63a0f7f2d
chore: better errors on name validation
2024-07-12 11:53:12 -04:00
David Larlet
85a4fda0ed
chore: use datalayer._propertiesIndex directly
2024-07-12 11:51:04 -04:00
David Larlet
238798acc3
chore: clean table editor CSS
2024-07-12 11:41:14 -04:00
David Larlet
7ce5646c54
chore: move computePosition to Positioned base class
2024-07-12 11:37:03 -04:00
Yohan Boniface
b4d13304f0
fix: add back slideshow.setOptions method, called from U.Map
2024-07-12 15:18:52 +02:00
Yohan Boniface
a51cc8102f
fix: fix race condition when slideshow is in autostart mode
...
Given `setViewFromQueryString` is now async, the slideshow may start
before it is run and thus it has called `initCaptionBar`, so let's
call it directly (and it's not linked to query string, so…)
2024-07-12 15:16:42 +02: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