Commit graph

3120 commits

Author SHA1 Message Date
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
f196bda25f
Merge pull request #2024 from umap-project/permissions-to-modules
chore: move permissions to modules
2024-07-29 15:53:52 +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
186ad537f3 chore: add docs for using variables 2024-07-23 21:33:55 +02:00
Yohan Boniface
6b67ce26a1 feat: expose marker altitude in variables (as "alt") 2024-07-23 21:33:55 +02:00
David Larlet
a624cd2446
Merge pull request #2011 from umap-project/dependabot/pip/pytest-8.3.1
chore: bump pytest from 8.2.2 to 8.3.1
2024-07-22 13:52:30 -04:00
David Larlet
592a9753f4
Merge pull request #2012 from umap-project/dependabot/pip/ruff-0.5.4
chore: bump ruff from 0.5.2 to 0.5.4
2024-07-22 13:50:37 -04:00
dependabot[bot]
13c7dbcbcb
chore: bump ruff from 0.5.2 to 0.5.4
Bumps [ruff](https://github.com/astral-sh/ruff) from 0.5.2 to 0.5.4.
- [Release notes](https://github.com/astral-sh/ruff/releases)
- [Changelog](https://github.com/astral-sh/ruff/blob/main/CHANGELOG.md)
- [Commits](https://github.com/astral-sh/ruff/compare/0.5.2...0.5.4)

---
updated-dependencies:
- dependency-name: ruff
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-07-22 17:40:15 +00:00
dependabot[bot]
4eabc907d0
chore: bump pytest from 8.2.2 to 8.3.1
Bumps [pytest](https://github.com/pytest-dev/pytest) from 8.2.2 to 8.3.1.
- [Release notes](https://github.com/pytest-dev/pytest/releases)
- [Changelog](https://github.com/pytest-dev/pytest/blob/main/CHANGELOG.rst)
- [Commits](https://github.com/pytest-dev/pytest/compare/8.2.2...8.3.1)

---
updated-dependencies:
- dependency-name: pytest
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-07-22 17:40:05 +00: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
8d39932e94
Merge pull request #2009 from umap-project/fix-sortkey-help
fix: broken sortKey help
2024-07-22 15:57:45 +02: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
852d826dcd
docs-users: add article in French 2024-07-18 13:05:32 -04:00
David Larlet
1cb54613d0
docs-users: typo 2024-07-16 15:15:36 -04:00
David Larlet
6432e47a17
docs-users: add Towards uMap 3 articles (en+fr) 2024-07-16 15:09:32 -04:00
David Larlet
c5e7e91386
Merge pull request #1998 from umap-project/1997-help-zindex
fix: handle the 'auto' value special case for z-index
2024-07-16 08:30:08 -04:00
David Larlet
35be292c81
Merge pull request #2000 from umap-project/dependabot/pip/social-auth-app-django-5.4.2
chore: bump social-auth-app-django from 5.4.1 to 5.4.2
2024-07-15 13:50:26 -04:00
David Larlet
5436b1ee12
Merge pull request #1999 from umap-project/dependabot/pip/ruff-0.5.2
chore: bump ruff from 0.5.1 to 0.5.2
2024-07-15 13:42:16 -04:00
David Larlet
0d74cc21b2
Merge pull request #2001 from umap-project/dependabot/pip/mkdocs-material-9.5.29
chore: bump mkdocs-material from 9.5.28 to 9.5.29
2024-07-15 13:42:04 -04:00
dependabot[bot]
687851dd7f
chore: bump mkdocs-material from 9.5.28 to 9.5.29
Bumps [mkdocs-material](https://github.com/squidfunk/mkdocs-material) from 9.5.28 to 9.5.29.
- [Release notes](https://github.com/squidfunk/mkdocs-material/releases)
- [Changelog](https://github.com/squidfunk/mkdocs-material/blob/master/CHANGELOG)
- [Commits](https://github.com/squidfunk/mkdocs-material/compare/9.5.28...9.5.29)

---
updated-dependencies:
- dependency-name: mkdocs-material
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-07-15 17:40:55 +00:00
dependabot[bot]
7469337ff5
chore: bump social-auth-app-django from 5.4.1 to 5.4.2
Bumps [social-auth-app-django](https://github.com/python-social-auth/social-app-django) from 5.4.1 to 5.4.2.
- [Release notes](https://github.com/python-social-auth/social-app-django/releases)
- [Changelog](https://github.com/python-social-auth/social-app-django/blob/master/CHANGELOG.md)
- [Commits](https://github.com/python-social-auth/social-app-django/compare/5.4.1...5.4.2)

---
updated-dependencies:
- dependency-name: social-auth-app-django
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-07-15 17:40:51 +00:00
dependabot[bot]
2e2cbf5520
chore: bump ruff from 0.5.1 to 0.5.2
Bumps [ruff](https://github.com/astral-sh/ruff) from 0.5.1 to 0.5.2.
- [Release notes](https://github.com/astral-sh/ruff/releases)
- [Changelog](https://github.com/astral-sh/ruff/blob/main/CHANGELOG.md)
- [Commits](https://github.com/astral-sh/ruff/compare/0.5.1...0.5.2)

---
updated-dependencies:
- dependency-name: ruff
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-07-15 17:40:45 +00:00
David Larlet
9609fafe93
fix: handle the 'auto' value special case for z-index
Fix #1997
2024-07-15 13:33:07 -04:00
David Larlet
4d2592992c
Merge pull request #1993 from umap-project/tableeditor-input
fix: remove padding from table editor inputs
2024-07-12 18:11:11 -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
54266c7d34 changelog 2024-07-12 19:02:32 +02:00
Yohan Boniface
764fbb4247 2.5.1 2024-07-12 19:01:42 +02:00
Yohan Boniface
163d24c7d0 fix: correct way to replace imports in collecstatic 2024-07-12 19:00:59 +02:00
Yohan Boniface
472f5578b8 changelog 2024-07-12 18:52:06 +02:00
Yohan Boniface
3226be1bdb 2.5.0 2024-07-12 18:46:45 +02:00
Yohan Boniface
8c58b06ce4 i18n 2024-07-12 18:34:03 +02:00
David Larlet
fd00c894a8
chore: fix markdown markup 2024-07-12 12:19:39 -04: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
75e4679cc9
chore: fix tests 2024-07-12 12:12:29 -04:00
David Larlet
3db6655548
Merge pull request #1918 from umap-project/docs-major-versions
docs: Major version in case of server change(s)
2024-07-12 12:08:05 -04:00
David Larlet
645a8f5827
docs: Major version in case of server change(s) 2024-07-12 12:07:46 -04:00