66eb90ffd1
chore(sync): Move the sync flag in the options
...
The goal being for it to be hidden for now.
- Add a `is_owner` method on the map and use it in the view
- Remove duplicated line in `global.js`
- Rename `Datalayer` to `DataLayer` everywhere
- Move the sync flag in the map options (next to slideshow)
2024-06-07 18:21:30 +02:00
ee3dbb85ca
doc: update cookie-related comment
2024-06-07 18:21:30 +02:00
Yohan Boniface
453056cb15
feat: remove Map.description
...
The field was not populated since years, and we already have the
info inside the JSONB `settings`.
2024-04-24 16:39:59 +02:00
Yohan Boniface
62e7e3c01a
Merge pull request #1755 from umap-project/browser-no-control
...
fix: make sure we do not render browser in map fragment
2024-04-17 18:33:54 +02:00
Yohan Boniface
d743ffeea0
fix: increase TileLayer.url_template size
...
fix #255
2024-04-17 11:19:31 +02:00
Yohan Boniface
99d5165fcf
fix: make sure we do not render browser in map fragment
...
There was an edge case when map has "dataLayersControl=expanded":
we only overrided "onLoadPanel", so dataLayersControl was still
considerer. Let's have a more generic stop.
2024-04-17 08:27:58 +02:00
Yohan Boniface
90ced76a11
fix: honour old_id in datalayers= query string parameter
...
fix #1714
2024-03-27 22:10:38 +01:00
Yohan Boniface
99207638d9
fix: make sure to order datalayer versions by time
...
When we changed from id to uuid, we broke the sorting, which
supposed to have a constant id as string prefix from version to
the other.
2024-03-25 20:13:34 +01:00
Yohan Boniface
6396ee5e58
Merge pull request #1661 from umap-project/schema-i18n
...
Add minimal schema module
2024-03-05 17:57:40 +01:00
1b41ff0ddc
chore: Rename datalayer id to old_id
2024-03-05 11:23:12 +01:00
Yohan Boniface
e7bd94a099
wip: do not expose UMAP_SCHEMA for now
2024-03-04 17:43:40 +01:00
Yohan Boniface
a7a854dd74
wip: move default options to schema
...
This commit also introduce a new settings UMAP_SCHEMA, that could
be used to easily override schema default, like the default color, the
default path weigth and so on. I'm not documenting yet, because I'm
not yet totally sure we want this.
2024-03-04 17:43:40 +01:00
ff4870730a
chore: ensure old-format layers' versions are returned
2024-02-26 15:01:19 +01:00
99d7b8a6e1
chore: ruff format
2024-02-26 15:01:19 +01:00
f869d77f2c
chore: update migrations
2024-02-26 15:01:19 +01:00
c46f59e3dd
chore: Use datalayers' UUIDs in the views
2024-02-26 15:01:19 +01:00
6b7efda37a
chore: replace datalayer ids with uuids
2024-02-26 15:01:19 +01:00
David Larlet
5d69d3c22f
Provide a link to delete maps from user’s dashboard
2024-02-07 12:32:00 -05:00
David Larlet
5476cbee0f
Ability to download all maps from user’s dashboard
2024-02-07 12:32:00 -05:00
Yohan Boniface
ab966722f9
wip: rework request error flow
2024-02-05 07:22:53 +01:00
Yohan Boniface
256d6c631c
feat: use svg for default icon (circle)
...
fix #1560
2024-01-29 12:24:16 +01:00
David Larlet
8d11815625
Move _urls_for_js to utils.py (circular imports)
2023-12-27 11:41:08 -05:00
David Larlet
7ff543e1d5
Create the unique_id in the template (vs. model)
2023-12-27 11:41:08 -05:00
David Larlet
c9b4b96c01
Preview map only on click in user’s dashboard
...
Refs #1459
2023-12-27 11:41:07 -05:00
396cbd34b4
build: Update makefile testjs to open the browser
2023-12-18 08:16:17 +00:00
aff0181636
[style] Format the code
2023-11-24 23:31:18 +01:00
Yohan Boniface
8c774fb7b3
Add Pictogram.category and list pictos grouped by category
2023-10-30 21:07:55 +01:00
Yohan Boniface
b6aa201397
Use FileField instead of ImageField for pictogram to allow SVG
2023-10-30 12:45:05 +01:00
Yohan Boniface
495dd6444f
Finally add Map.create_at field
...
This field should have been added at the beginning, but this is
like planting trees, isn't it ?
2023-09-27 11:01:50 +02:00
Yohan Boniface
a04acb828d
Update Map.can_edit docstring
2023-09-22 17:32:19 +02:00
Yohan Boniface
4e54a93ee0
Add DataLayer.INHERIT edit status option
2023-09-22 17:32:19 +02:00
Yohan Boniface
3cbd6cca40
Add back Map.edit_status
...
Revert "Fix existing permissions related tests"
This reverts commit 36d7d87301
.
WIP
2023-09-22 17:32:19 +02:00
Yohan Boniface
24e4aed8d3
Rename allowEdit in editMode
2023-09-22 17:32:17 +02:00
Yohan Boniface
42eb0e6ded
Add more tests for datalayer permissions
2023-09-22 17:30:06 +02:00
Yohan Boniface
89ab029cab
WIP: move edit_status from Map to DataLayer
2023-09-22 17:25:55 +02:00
Yohan Boniface
73d19e849f
Refactor share_status check in datalayers views
2023-09-22 17:24:01 +02:00
Yohan Boniface
b6b9943264
Prune old .gz when saving a datalayer
...
We'll not consume them.
fix #1317
2023-09-21 19:12:07 +02:00
Yohan Boniface
fa090b89df
Store DataLayer's settings in DB
...
This allows to known the full datalayer behaviour without needing
to load all the data, including the zoom from and to (new settings),
but also the color for example.
This will help also understanding datalayers usage and making
stats.
But no data migration is provided, it's retrocompatible (data
migration in OSM FR servers would be huge, so let's see if it's
really needed).
2023-08-20 09:48:01 +02:00
Yohan Boniface
0c3dc02fc1
Allow to configure default share and edit status
...
fix #1244
2023-08-07 08:16:49 +02:00
Yohan Boniface
6021191522
i18n
2023-07-17 15:16:45 +02:00
Yohan Boniface
77cedd3288
Display share status in dashboard
2023-07-17 09:08:59 +02:00
Yohan Boniface
81fcc080d9
Allow to customize user display name and URL slug
2023-06-16 14:59:59 +02:00
Yohan Boniface
eb32dcc9b6
Make that Map.get_anonymous_edit_url returns full URL
2023-05-31 16:30:07 +02:00
David Larlet
0b76ebb259
Apply black to models.py
2023-05-30 20:41:32 -04:00
Yohan Boniface
37b4d05da5
(WIP) Allow to star map and retrieve starred maps
2023-05-15 12:22:26 +02:00
Yohan Boniface
4a3d4ae7a7
Use correct JSONField
2021-09-16 12:17:08 +02:00
Yohan Boniface
1200b82838
First attempt to upgrade to Django 3.X
...
Bloqued by https://github.com/peopledoc/django-agnocomplete/issues/119
2021-05-17 10:51:24 +02:00
Yohan Boniface
5b8a8904cc
Add Map.BLOCKED share status
2019-04-07 11:12:38 +02:00
Yohan Boniface
7e38a08fb8
Switch from DictField to JSONField
2019-04-07 10:40:30 +02:00
Yohan Boniface
e319fa963e
Make sure map name is always read from backend
...
fix #605
2018-08-04 15:26:12 +02:00