umap-project 1.4.4__py3-none-any.whl → 1.5.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of umap-project might be problematic. Click here for more details.

Files changed (132) hide show
  1. umap/__init__.py +1 -1
  2. umap/locale/br/LC_MESSAGES/django.mo +0 -0
  3. umap/locale/br/LC_MESSAGES/django.po +8 -7
  4. umap/locale/cs_CZ/LC_MESSAGES/django.mo +0 -0
  5. umap/locale/cs_CZ/LC_MESSAGES/django.po +35 -35
  6. umap/locale/en/LC_MESSAGES/django.po +28 -28
  7. umap/migrations/0011_alter_map_edit_status_alter_map_share_status.py +24 -0
  8. umap/models.py +10 -2
  9. umap/settings/base.py +2 -0
  10. umap/static/umap/base.css +4 -4
  11. umap/static/umap/img/16-white.svg +18 -3
  12. umap/static/umap/img/logo_small.svg +14 -0
  13. umap/static/umap/img/source/16-white.svg +19 -5
  14. umap/static/umap/js/umap.controls.js +122 -132
  15. umap/static/umap/js/umap.core.js +12 -5
  16. umap/static/umap/js/umap.features.js +40 -14
  17. umap/static/umap/js/umap.forms.js +55 -5
  18. umap/static/umap/js/umap.js +59 -100
  19. umap/static/umap/js/umap.layer.js +69 -26
  20. umap/static/umap/js/umap.permissions.js +5 -0
  21. umap/static/umap/js/umap.popup.js +3 -6
  22. umap/static/umap/js/umap.xhr.js +2 -1
  23. umap/static/umap/locale/am_ET.js +14 -7
  24. umap/static/umap/locale/am_ET.json +14 -7
  25. umap/static/umap/locale/ar.js +14 -7
  26. umap/static/umap/locale/ar.json +14 -7
  27. umap/static/umap/locale/ast.js +14 -7
  28. umap/static/umap/locale/ast.json +14 -7
  29. umap/static/umap/locale/bg.js +14 -7
  30. umap/static/umap/locale/bg.json +14 -7
  31. umap/static/umap/locale/br.js +29 -22
  32. umap/static/umap/locale/br.json +29 -22
  33. umap/static/umap/locale/ca.js +14 -7
  34. umap/static/umap/locale/ca.json +14 -7
  35. umap/static/umap/locale/cs_CZ.js +42 -35
  36. umap/static/umap/locale/cs_CZ.json +42 -35
  37. umap/static/umap/locale/da.js +14 -7
  38. umap/static/umap/locale/da.json +14 -7
  39. umap/static/umap/locale/de.js +14 -7
  40. umap/static/umap/locale/de.json +14 -7
  41. umap/static/umap/locale/el.js +14 -7
  42. umap/static/umap/locale/el.json +14 -7
  43. umap/static/umap/locale/en.js +14 -7
  44. umap/static/umap/locale/en.json +14 -7
  45. umap/static/umap/locale/en_US.json +14 -7
  46. umap/static/umap/locale/es.js +14 -7
  47. umap/static/umap/locale/es.json +14 -7
  48. umap/static/umap/locale/et.js +14 -7
  49. umap/static/umap/locale/et.json +14 -7
  50. umap/static/umap/locale/eu.js +7 -7
  51. umap/static/umap/locale/eu.json +7 -7
  52. umap/static/umap/locale/fa_IR.js +14 -7
  53. umap/static/umap/locale/fa_IR.json +14 -7
  54. umap/static/umap/locale/fi.js +14 -7
  55. umap/static/umap/locale/fi.json +14 -7
  56. umap/static/umap/locale/fr.js +14 -7
  57. umap/static/umap/locale/fr.json +14 -7
  58. umap/static/umap/locale/gl.js +14 -7
  59. umap/static/umap/locale/gl.json +14 -7
  60. umap/static/umap/locale/he.js +14 -7
  61. umap/static/umap/locale/he.json +14 -7
  62. umap/static/umap/locale/hr.js +14 -7
  63. umap/static/umap/locale/hr.json +14 -7
  64. umap/static/umap/locale/hu.js +14 -7
  65. umap/static/umap/locale/hu.json +14 -7
  66. umap/static/umap/locale/id.js +14 -7
  67. umap/static/umap/locale/id.json +14 -7
  68. umap/static/umap/locale/is.js +14 -7
  69. umap/static/umap/locale/is.json +14 -7
  70. umap/static/umap/locale/it.js +14 -7
  71. umap/static/umap/locale/it.json +14 -7
  72. umap/static/umap/locale/ja.js +14 -7
  73. umap/static/umap/locale/ja.json +14 -7
  74. umap/static/umap/locale/ko.js +14 -7
  75. umap/static/umap/locale/ko.json +14 -7
  76. umap/static/umap/locale/lt.js +14 -7
  77. umap/static/umap/locale/lt.json +14 -7
  78. umap/static/umap/locale/ms.js +14 -7
  79. umap/static/umap/locale/ms.json +14 -7
  80. umap/static/umap/locale/nl.js +14 -7
  81. umap/static/umap/locale/nl.json +14 -7
  82. umap/static/umap/locale/no.js +14 -7
  83. umap/static/umap/locale/no.json +14 -7
  84. umap/static/umap/locale/pl.js +14 -7
  85. umap/static/umap/locale/pl.json +14 -7
  86. umap/static/umap/locale/pl_PL.json +14 -7
  87. umap/static/umap/locale/pt.js +14 -7
  88. umap/static/umap/locale/pt.json +14 -7
  89. umap/static/umap/locale/pt_BR.js +14 -7
  90. umap/static/umap/locale/pt_BR.json +14 -7
  91. umap/static/umap/locale/pt_PT.js +14 -7
  92. umap/static/umap/locale/pt_PT.json +14 -7
  93. umap/static/umap/locale/ro.js +14 -7
  94. umap/static/umap/locale/ro.json +14 -7
  95. umap/static/umap/locale/ru.js +14 -7
  96. umap/static/umap/locale/ru.json +14 -7
  97. umap/static/umap/locale/sk_SK.js +14 -7
  98. umap/static/umap/locale/sk_SK.json +14 -7
  99. umap/static/umap/locale/sl.js +14 -7
  100. umap/static/umap/locale/sl.json +14 -7
  101. umap/static/umap/locale/sr.js +14 -7
  102. umap/static/umap/locale/sr.json +14 -7
  103. umap/static/umap/locale/sv.js +38 -31
  104. umap/static/umap/locale/sv.json +38 -31
  105. umap/static/umap/locale/th_TH.js +14 -7
  106. umap/static/umap/locale/th_TH.json +14 -7
  107. umap/static/umap/locale/tr.js +14 -7
  108. umap/static/umap/locale/tr.json +14 -7
  109. umap/static/umap/locale/uk_UA.js +14 -7
  110. umap/static/umap/locale/uk_UA.json +14 -7
  111. umap/static/umap/locale/vi.js +14 -7
  112. umap/static/umap/locale/vi.json +14 -7
  113. umap/static/umap/locale/vi_VN.json +14 -7
  114. umap/static/umap/locale/zh.js +14 -7
  115. umap/static/umap/locale/zh.json +14 -7
  116. umap/static/umap/locale/zh_CN.json +14 -7
  117. umap/static/umap/locale/zh_TW.Big5.json +14 -7
  118. umap/static/umap/locale/zh_TW.js +14 -7
  119. umap/static/umap/locale/zh_TW.json +14 -7
  120. umap/static/umap/map.css +119 -47
  121. umap/static/umap/test/DataLayer.js +32 -6
  122. umap/static/umap/test/Util.js +7 -7
  123. umap/static/umap/vendors/leaflet/leaflet-src.js +7156 -7156
  124. umap/static/umap/vendors/togeojson/togeojson.js +2 -406
  125. umap/tests/test_map.py +16 -0
  126. umap/tests/test_views.py +18 -0
  127. umap/views.py +3 -1
  128. {umap_project-1.4.4.dist-info → umap_project-1.5.0.dist-info}/METADATA +3 -3
  129. {umap_project-1.4.4.dist-info → umap_project-1.5.0.dist-info}/RECORD +132 -130
  130. {umap_project-1.4.4.dist-info → umap_project-1.5.0.dist-info}/WHEEL +0 -0
  131. {umap_project-1.4.4.dist-info → umap_project-1.5.0.dist-info}/entry_points.txt +0 -0
  132. {umap_project-1.4.4.dist-info → umap_project-1.5.0.dist-info}/licenses/LICENSE +0 -0
umap/__init__.py CHANGED
@@ -1 +1 @@
1
- VERSION = "1.4.4"
1
+ VERSION = "1.5.0"
Binary file
@@ -3,15 +3,16 @@
3
3
  # This file is distributed under the same license as the PACKAGE package.
4
4
  #
5
5
  # Translators:
6
- # Dren Ar Frankig <hadrienlouque@gmail.com>, 2023
7
- # Dren Ar Frankig <hadrienlouque@gmail.com>, 2023
6
+ # Dren ar Frankig <hadrienlouque@gmail.com>, 2023
7
+ # Dren ar Frankig <hadrienlouque@gmail.com>, 2023
8
+ # Dren ar Frankig <hadrienlouque@gmail.com>, 2023
8
9
  msgid ""
9
10
  msgstr ""
10
11
  "Project-Id-Version: uMap\n"
11
12
  "Report-Msgid-Bugs-To: \n"
12
13
  "POT-Creation-Date: 2023-07-19 13:43+0000\n"
13
14
  "PO-Revision-Date: 2013-11-22 14:00+0000\n"
14
- "Last-Translator: Dren Ar Frankig <hadrienlouque@gmail.com>, 2023\n"
15
+ "Last-Translator: Dren ar Frankig <hadrienlouque@gmail.com>, 2023\n"
15
16
  "Language-Team: Breton (http://app.transifex.com/openstreetmap/umap/language/br/)\n"
16
17
  "MIME-Version: 1.0\n"
17
18
  "Content-Type: text/plain; charset=UTF-8\n"
@@ -34,7 +35,7 @@ msgstr "N'haller he c'hemmañ nemet gant ul liamm aozañ kuzh"
34
35
 
35
36
  #: middleware.py:14
36
37
  msgid "Site is readonly for maintenance"
37
- msgstr ""
38
+ msgstr "Al lec'hienn zo da lenn hepken rak emeur ouzh he c'hempenn"
38
39
 
39
40
  #: models.py:40
40
41
  msgid "name"
@@ -138,7 +139,7 @@ msgstr "diskwel pa vez karget"
138
139
 
139
140
  #: models.py:300
140
141
  msgid "Display this layer on load."
141
- msgstr ""
142
+ msgstr "Diskwel ar gwiskad-mañ pa vez karget"
142
143
 
143
144
  #: templates/404.html:6
144
145
  msgid "Take me to the home page"
@@ -237,13 +238,13 @@ msgstr "Krouiñ ur gartenn"
237
238
 
238
239
  #: templates/umap/about_summary.html:51
239
240
  msgid "Play with the demo"
240
- msgstr "Amprouiñ an demo!"
241
+ msgstr "Amprouiñ an tañva!"
241
242
 
242
243
  #: templates/umap/content.html:23
243
244
  msgid ""
244
245
  "This instance of uMap is currently in read only mode, no creation/edit is "
245
246
  "allowed."
246
- msgstr ""
247
+ msgstr "uMap zo da lenn hepken evit ar mare, n'haller ket krouiñ/aozañ."
247
248
 
248
249
  #: templates/umap/content.html:31
249
250
  #, python-format
Binary file
@@ -15,9 +15,9 @@ msgid ""
15
15
  msgstr ""
16
16
  "Project-Id-Version: uMap\n"
17
17
  "Report-Msgid-Bugs-To: \n"
18
- "POT-Creation-Date: 2023-07-17 13:14+0000\n"
18
+ "POT-Creation-Date: 2023-07-19 13:43+0000\n"
19
19
  "PO-Revision-Date: 2013-11-22 14:00+0000\n"
20
- "Last-Translator: Jiří Podhorecký, 2018-2019\n"
20
+ "Last-Translator: Aleš Fiala <f.ales1@seznam.cz>, 2023\n"
21
21
  "Language-Team: Czech (Czech Republic) (http://app.transifex.com/openstreetmap/umap/language/cs_CZ/)\n"
22
22
  "MIME-Version: 1.0\n"
23
23
  "Content-Type: text/plain; charset=UTF-8\n"
@@ -64,27 +64,27 @@ msgstr "Pořadí vrstev při editaci"
64
64
 
65
65
  #: models.py:134
66
66
  msgid "Everyone"
67
- msgstr ""
67
+ msgstr "Kdokoli"
68
68
 
69
69
  #: models.py:135 models.py:141
70
70
  msgid "Editors only"
71
- msgstr ""
71
+ msgstr "Jen přispěvatelé"
72
72
 
73
73
  #: models.py:136
74
74
  msgid "Owner only"
75
- msgstr ""
75
+ msgstr "Jen vlastník"
76
76
 
77
77
  #: models.py:139
78
78
  msgid "Everyone (public)"
79
- msgstr ""
79
+ msgstr "Kdokoli (veřejná)"
80
80
 
81
81
  #: models.py:140
82
82
  msgid "Anyone with link"
83
- msgstr ""
83
+ msgstr "Kdokoli kdo má odkaz"
84
84
 
85
85
  #: models.py:142
86
86
  msgid "Blocked"
87
- msgstr ""
87
+ msgstr "Blokováno"
88
88
 
89
89
  #: models.py:145 models.py:295
90
90
  msgid "description"
@@ -163,18 +163,18 @@ msgstr "%(current_user)s nemá mapy."
163
163
  #: templates/auth/user_stars.html:5
164
164
  #, python-format
165
165
  msgid "Browse %(current_user)s's starred maps"
166
- msgstr ""
166
+ msgstr "Prohlížet mapy označené hvězdičkou uživatele %(current_user)s"
167
167
 
168
168
  #: templates/auth/user_stars.html:12
169
169
  #, python-format
170
170
  msgid "%(current_user)s has no starred maps yet."
171
- msgstr ""
171
+ msgstr "%(current_user)s nemá zatím žádné mapy označené hvězdičkou."
172
172
 
173
173
  #: templates/base.html:12
174
174
  msgid ""
175
175
  "uMap lets you create maps with OpenStreetMap layers in a minute and embed "
176
176
  "them in your site."
177
- msgstr ""
177
+ msgstr "uMap umožňuje vytvářet mapy s vrstvami OpenStreetMap za okamžik a vložit je do svých stránek."
178
178
 
179
179
  #: templates/registration/login.html:3
180
180
  msgid "Please log in with your account"
@@ -249,7 +249,7 @@ msgstr "Vyzkoušejte si to hned"
249
249
  msgid ""
250
250
  "This instance of uMap is currently in read only mode, no creation/edit is "
251
251
  "allowed."
252
- msgstr ""
252
+ msgstr "Tato instance uMap je aktuálně v režimu pouze pro čtení, není povoleno žádné vytváření/úpravy."
253
253
 
254
254
  #: templates/umap/content.html:31
255
255
  #, python-format
@@ -282,39 +282,39 @@ msgstr "Více"
282
282
 
283
283
  #: templates/umap/map_table.html:6
284
284
  msgid "Map"
285
- msgstr ""
285
+ msgstr "Mapa"
286
286
 
287
287
  #: templates/umap/map_table.html:7
288
288
  msgid "Name"
289
- msgstr ""
289
+ msgstr "Název"
290
290
 
291
291
  #: templates/umap/map_table.html:8
292
292
  msgid "Who can see / edit"
293
- msgstr ""
293
+ msgstr "Kdo může zobrazit / upravit"
294
294
 
295
295
  #: templates/umap/map_table.html:9
296
296
  msgid "Last save"
297
- msgstr ""
297
+ msgstr "Poslední uložení"
298
298
 
299
299
  #: templates/umap/map_table.html:10
300
300
  msgid "Owner"
301
- msgstr ""
301
+ msgstr "Vlastník"
302
302
 
303
303
  #: templates/umap/map_table.html:11
304
304
  msgid "Actions"
305
- msgstr ""
305
+ msgstr "Akce"
306
306
 
307
307
  #: templates/umap/map_table.html:28
308
308
  msgid "Share"
309
- msgstr ""
309
+ msgstr "Sdílet"
310
310
 
311
311
  #: templates/umap/map_table.html:29
312
312
  msgid "Edit"
313
- msgstr ""
313
+ msgstr "Upravit"
314
314
 
315
315
  #: templates/umap/map_table.html:30
316
316
  msgid "Download"
317
- msgstr ""
317
+ msgstr "Stažení"
318
318
 
319
319
  #: templates/umap/navigation.html:12
320
320
  msgid "My maps"
@@ -322,7 +322,7 @@ msgstr "Moje mapy"
322
322
 
323
323
  #: templates/umap/navigation.html:15
324
324
  msgid "Starred maps"
325
- msgstr ""
325
+ msgstr "Mapy označené hvězdičkou"
326
326
 
327
327
  #: templates/umap/navigation.html:19
328
328
  msgid "Log in"
@@ -386,18 +386,18 @@ msgstr "Vaše heslo bylo změněno."
386
386
  #, python-format
387
387
  msgid "%(count)s map found:"
388
388
  msgid_plural "%(count)s maps found:"
389
- msgstr[0] ""
390
- msgstr[1] ""
391
- msgstr[2] ""
392
- msgstr[3] ""
389
+ msgstr[0] "%(count)s nalezená mapa:"
390
+ msgstr[1] "%(count)s nalezené mapy:"
391
+ msgstr[2] "%(count)s nalezené mapy:"
392
+ msgstr[3] "%(count)s nalezených map:"
393
393
 
394
394
  #: templates/umap/search.html:18
395
395
  msgid "No map found."
396
- msgstr ""
396
+ msgstr "Mapa nenalezena."
397
397
 
398
398
  #: templates/umap/search.html:21
399
399
  msgid "Latest created maps"
400
- msgstr ""
400
+ msgstr "Nedávno vytvořené mapy"
401
401
 
402
402
  #: templates/umap/search_bar.html:3
403
403
  msgid "Search maps"
@@ -409,15 +409,15 @@ msgstr "Hledej"
409
409
 
410
410
  #: templates/umap/user_dashboard.html:4 templates/umap/user_dashboard.html:9
411
411
  msgid "My dashboard"
412
- msgstr ""
412
+ msgstr "Můj ovládací panel"
413
413
 
414
414
  #: templates/umap/user_dashboard.html:7
415
415
  msgid "Search my maps"
416
- msgstr ""
416
+ msgstr "Prohledávat moje mapy"
417
417
 
418
418
  #: templates/umap/user_dashboard.html:18
419
419
  msgid "You have no map yet."
420
- msgstr ""
420
+ msgstr "Zatím nemáte žádnou mapu."
421
421
 
422
422
  #: views.py:286
423
423
  msgid "View the map"
@@ -434,17 +434,17 @@ msgstr "Seznam přispěvovatelů byl úspěšně upraven!"
434
434
  #: views.py:670
435
435
  #, python-format
436
436
  msgid "The uMap edit link for your map: %(map_name)s"
437
- msgstr ""
437
+ msgstr "Odkaz na úpravu uMap pro vaši mapu: %(map_name)s"
438
438
 
439
439
  #: views.py:673
440
440
  #, python-format
441
441
  msgid "Here is your secret edit link: %(link)s"
442
- msgstr ""
442
+ msgstr "Zde je váš tajný odkaz na úpravu: %(link)s"
443
443
 
444
444
  #: views.py:679
445
445
  #, python-format
446
446
  msgid "Email sent to %(email)s"
447
- msgstr ""
447
+ msgstr "E-mail odeslán na %(email)s"
448
448
 
449
449
  #: views.py:690
450
450
  msgid "Only its owner can delete the map."
@@ -461,6 +461,6 @@ msgstr "Byla vytvořena kopie mapy! Pokud chcete upravovat tuto mapu z jiného p
461
461
  msgid "Congratulations, your map has been cloned!"
462
462
  msgstr "Gratulujeme, byla vytvořena kopie mapy!"
463
463
 
464
- #: views.py:884
464
+ #: views.py:897
465
465
  msgid "Layer successfully deleted."
466
466
  msgstr "Vrstva úspěšně vymazána."
@@ -8,7 +8,7 @@ msgid ""
8
8
  msgstr ""
9
9
  "Project-Id-Version: PACKAGE VERSION\n"
10
10
  "Report-Msgid-Bugs-To: \n"
11
- "POT-Creation-Date: 2023-07-19 13:43+0000\n"
11
+ "POT-Creation-Date: 2023-08-15 14:42+0000\n"
12
12
  "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
13
13
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
14
14
  "Language-Team: LANGUAGE <LL@li.org>\n"
@@ -34,107 +34,107 @@ msgstr ""
34
34
  msgid "Site is readonly for maintenance"
35
35
  msgstr ""
36
36
 
37
- #: models.py:40
37
+ #: models.py:48
38
38
  msgid "name"
39
39
  msgstr ""
40
40
 
41
- #: models.py:71
41
+ #: models.py:79
42
42
  msgid "details"
43
43
  msgstr ""
44
44
 
45
- #: models.py:72
45
+ #: models.py:80
46
46
  msgid "Link to a page where the licence is detailed."
47
47
  msgstr ""
48
48
 
49
- #: models.py:82
49
+ #: models.py:90
50
50
  msgid "URL template using OSM tile format"
51
51
  msgstr ""
52
52
 
53
- #: models.py:88
53
+ #: models.py:96
54
54
  msgid "Order of the tilelayers in the edit box"
55
55
  msgstr ""
56
56
 
57
- #: models.py:134
57
+ #: models.py:142
58
58
  msgid "Everyone"
59
59
  msgstr ""
60
60
 
61
- #: models.py:135 models.py:141
61
+ #: models.py:143 models.py:149
62
62
  msgid "Editors only"
63
63
  msgstr ""
64
64
 
65
- #: models.py:136
65
+ #: models.py:144
66
66
  msgid "Owner only"
67
67
  msgstr ""
68
68
 
69
- #: models.py:139
69
+ #: models.py:147
70
70
  msgid "Everyone (public)"
71
71
  msgstr ""
72
72
 
73
- #: models.py:140
73
+ #: models.py:148
74
74
  msgid "Anyone with link"
75
75
  msgstr ""
76
76
 
77
- #: models.py:142
77
+ #: models.py:150
78
78
  msgid "Blocked"
79
79
  msgstr ""
80
80
 
81
- #: models.py:145 models.py:295
81
+ #: models.py:153 models.py:303
82
82
  msgid "description"
83
83
  msgstr ""
84
84
 
85
- #: models.py:146
85
+ #: models.py:154
86
86
  msgid "center"
87
87
  msgstr ""
88
88
 
89
- #: models.py:147
89
+ #: models.py:155
90
90
  msgid "zoom"
91
91
  msgstr ""
92
92
 
93
- #: models.py:149
93
+ #: models.py:157
94
94
  msgid "locate"
95
95
  msgstr ""
96
96
 
97
- #: models.py:149
97
+ #: models.py:157
98
98
  msgid "Locate user on load?"
99
99
  msgstr ""
100
100
 
101
- #: models.py:153
101
+ #: models.py:161
102
102
  msgid "Choose the map licence."
103
103
  msgstr ""
104
104
 
105
- #: models.py:154
105
+ #: models.py:162
106
106
  msgid "licence"
107
107
  msgstr ""
108
108
 
109
- #: models.py:164
109
+ #: models.py:172
110
110
  msgid "owner"
111
111
  msgstr ""
112
112
 
113
- #: models.py:168
113
+ #: models.py:176
114
114
  msgid "editors"
115
115
  msgstr ""
116
116
 
117
- #: models.py:171
117
+ #: models.py:179
118
118
  msgid "edit status"
119
119
  msgstr ""
120
120
 
121
- #: models.py:174
121
+ #: models.py:182
122
122
  msgid "share status"
123
123
  msgstr ""
124
124
 
125
- #: models.py:177
125
+ #: models.py:185
126
126
  msgid "settings"
127
127
  msgstr ""
128
128
 
129
- #: models.py:250
129
+ #: models.py:258
130
130
  msgid "Clone of"
131
131
  msgstr ""
132
132
 
133
- #: models.py:299
133
+ #: models.py:307
134
134
  msgid "display on load"
135
135
  msgstr ""
136
136
 
137
- #: models.py:300
137
+ #: models.py:308
138
138
  msgid "Display this layer on load."
139
139
  msgstr ""
140
140
 
@@ -451,6 +451,6 @@ msgstr ""
451
451
  msgid "Congratulations, your map has been cloned!"
452
452
  msgstr ""
453
453
 
454
- #: views.py:897
454
+ #: views.py:901
455
455
  msgid "Layer successfully deleted."
456
456
  msgstr ""
@@ -0,0 +1,24 @@
1
+ # Generated by Django 4.2.2 on 2023-08-07 06:07
2
+
3
+ from django.db import migrations, models
4
+ import umap.models
5
+
6
+
7
+ class Migration(migrations.Migration):
8
+
9
+ dependencies = [
10
+ ('umap', '0010_alter_map_edit_status_alter_map_share_status'),
11
+ ]
12
+
13
+ operations = [
14
+ migrations.AlterField(
15
+ model_name='map',
16
+ name='edit_status',
17
+ field=models.SmallIntegerField(choices=[(1, 'Everyone'), (2, 'Editors only'), (3, 'Owner only')], default=umap.models.get_default_edit_status, verbose_name='edit status'),
18
+ ),
19
+ migrations.AlterField(
20
+ model_name='map',
21
+ name='share_status',
22
+ field=models.SmallIntegerField(choices=[(1, 'Everyone (public)'), (2, 'Anyone with link'), (3, 'Editors only'), (9, 'Blocked')], default=umap.models.get_default_share_status, verbose_name='share status'),
23
+ ),
24
+ ]
umap/models.py CHANGED
@@ -36,6 +36,14 @@ User.add_to_class("get_url", get_user_url)
36
36
  User.add_to_class("get_stars_url", get_user_stars_url)
37
37
 
38
38
 
39
+ def get_default_share_status():
40
+ return settings.UMAP_DEFAULT_SHARE_STATUS or Map.PUBLIC
41
+
42
+
43
+ def get_default_edit_status():
44
+ return settings.UMAP_DEFAULT_EDIT_STATUS or Map.OWNER
45
+
46
+
39
47
  class NamedModel(models.Model):
40
48
  name = models.CharField(max_length=200, verbose_name=_("name"))
41
49
 
@@ -168,10 +176,10 @@ class Map(NamedModel):
168
176
  settings.AUTH_USER_MODEL, blank=True, verbose_name=_("editors")
169
177
  )
170
178
  edit_status = models.SmallIntegerField(
171
- choices=EDIT_STATUS, default=OWNER, verbose_name=_("edit status")
179
+ choices=EDIT_STATUS, default=get_default_edit_status, verbose_name=_("edit status")
172
180
  )
173
181
  share_status = models.SmallIntegerField(
174
- choices=SHARE_STATUS, default=PUBLIC, verbose_name=_("share status")
182
+ choices=SHARE_STATUS, default=get_default_share_status, verbose_name=_("share status")
175
183
  )
176
184
  settings = models.JSONField(
177
185
  blank=True, null=True, verbose_name=_("settings"), default=dict
umap/settings/base.py CHANGED
@@ -244,6 +244,8 @@ USER_MAPS_URL = 'user_maps'
244
244
  DATABASES = {
245
245
  'default': env.db(default='postgis://localhost:5432/umap')
246
246
  }
247
+ UMAP_DEFAULT_SHARE_STATUS = None
248
+ UMAP_DEFAULT_EDIT_STATUS = None
247
249
 
248
250
  UMAP_READONLY = env('UMAP_READONLY', default=False)
249
251
  UMAP_GZIP = True
umap/static/umap/base.css CHANGED
@@ -460,7 +460,7 @@ i.info {
460
460
  background-position: -120px -48px;
461
461
  }
462
462
  .umap-clone:before {
463
- background-position: -160px -88px;
463
+ background-position: -150px -78px;
464
464
  }
465
465
  .umap-delete:before {
466
466
  background-position: -40px -8px;
@@ -469,10 +469,10 @@ i.info {
469
469
  background-position: -6px -6px;
470
470
  }
471
471
  .umap-empty:before {
472
- background-position: -160px -126px;
472
+ background-position: -110px -78px;
473
473
  }
474
474
  .umap-download:before {
475
- background-position: -88px -168px;
475
+ background-position: -77px -78px;
476
476
  }
477
477
  .permissions-panel,
478
478
  .umap-upload,
@@ -481,7 +481,7 @@ i.info {
481
481
  .umap-datalayer-container,
482
482
  .umap-layer-properties-container,
483
483
  .umap-browse-data,
484
- .umap-filter-data,
484
+ .umap-facet-search,
485
485
  .umap-browse-datalayers {
486
486
  padding: 0 10px;
487
487
  }
@@ -1,4 +1,9 @@
1
1
  <svg id="svg2" width="144" height="144" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:cc="http://creativecommons.org/ns#" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
2
+ <defs id="defs4">
3
+ <clipPath id="clip0_241_10857">
4
+ <rect id="rect586" width="18.05" height="19.01" fill="#fff"/>
5
+ </clipPath>
6
+ </defs>
2
7
  <metadata id="metadata7">
3
8
  <rdf:RDF>
4
9
  <cc:Work rdf:about="">
@@ -31,14 +36,12 @@
31
36
  <g id="text4356" transform="translate(-4 -172)" fill="#4d4d4d">
32
37
  <path id="path4384" d="m35.742 999.44 3.0762-3.0762-3.0664-3.0664 1.1914-1.1914 3.0664 3.0664 3.0566-3.0566 1.1719 1.1816-3.0469 3.0566 3.0664 3.0664-1.1914 1.1914-3.0664-3.0664-3.0762 3.0762-1.1816-1.1816" fill="#f2f2f2" stroke="#999" stroke-width=".25"/>
33
38
  </g>
34
- <path id="path4384-3" d="m11.192 853.36 2e-6 -4.1999-4.1923 1e-5 -3e-6 -1.6267h4.1923v-4.1733l1.6088 7e-3 0.0067 4.1666h4.1923l-3.9e-5 1.6266-4.1922 4e-5 -1.5e-5 4.1999h-1.6155" fill="#4d4d4d"/>
35
39
  <path id="path3684" d="m63.714 866.36-1.1428 1.1429 2.2857 2.2857 1.1428-1.1429zm-1.7143 1.7143-6.2857 6.2857 2.2857 2.2857 6.2857-6.2857zm-6.2857 6.2857-1.7143 4 4-1.7143z" fill="#f2f2f2" stroke="#999" stroke-width=".25"/>
36
40
  <text id="text4457-6" x="41.647079" y="916.79706" fill="#000000" font-family="sans-serif" letter-spacing="0px" word-spacing="0px" style="line-height:0%" xml:space="preserve"><tspan id="tspan4459-6" x="41.647079" y="916.79706" font-family="sans-serif" font-size="30.476px" style="line-height:1.25"> </tspan></text>
37
41
  <g id="text4356-2" transform="translate(44 -124)" fill="#fff">
38
42
  <path id="path4384-2" d="m35.742 999.44 3.0762-3.0762-3.0664-3.0664 1.1914-1.1914 3.0664 3.0664 3.0566-3.0566 1.1719 1.1816-3.0469 3.0566 3.0664 3.0664-1.1914 1.1914-3.0664-3.0664-3.0762 3.0762-1.1816-1.1816" fill="#f2f2f2"/>
39
43
  </g>
40
44
  <path id="path3684-2" d="m63.714 890.36-1.1428 1.1428 2.2857 2.2858 1.1428-1.1429zm-1.7143 1.7143-6.2857 6.2857 2.2857 2.2857 6.2857-6.2857zm-6.2857 6.2857-1.7143 4 4-1.7143z" fill="#b3b3b3"/>
41
- <path id="table-5-8-8-6" d="m30 914.36v1h1v-1zm2 0v1h10v-1zm-2 2v1h1v-1zm2 0v1h10v-1zm-2 2v1h1v-1zm2 0v1h10v-1zm-2 2v1h1v-1zm2 0v1h10v-1zm-2 2v1h1v-1zm2 0v1h10v-1zm-2 2v1h1v-1zm2 0v1h10v-1z" fill="#464646"/>
42
45
  <path id="table-5-8-8-6-1" d="m54 914.36v1h1v-1zm2 0v1h10v-1zm-2 2v1h1v-1zm2 0v1h10v-1zm-2 2v1h1v-1zm2 0v1h10v-1zm-2 2v1h1v-1zm2 0v1h10v-1zm-2 2v1h1v-1zm2 0v1h10v-1zm-2 2v1h1v-1zm2 0v1h10v-1z" fill="#f2f2f2"/>
43
46
  <circle id="path3764" cx="108" cy="844.36" r="1.5" fill="#f2f2f2" stroke="#999" stroke-width=".25"/>
44
47
  <path id="rect4274" d="m107 847.36h2v6h-2z" fill="#f2f2f2" stroke="#999" stroke-width=".25"/>
@@ -131,6 +134,18 @@
131
134
  <rect id="rect4241-8-2" x="85" y="901.36" width="2" height="2" fill="#f2f2f2"/>
132
135
  <rect id="rect4243-2-5" x="89" y="901.36" width="2" height="2" fill="#f2f2f2"/>
133
136
  <path id="delete-30-7" d="m131 937.36v1c-1.4286 0-3.2857 0.5999-4 2v1h10v-1c-0.71429-1.4001-2.5714-2-4-2v-1zm-4 5 2 9h6l2-9z" fill="#b3b3b3" stroke="#999" stroke-width=".25"/>
134
- <path id="path349" d="m60.059 945.66c1.5887 0 3.1118 0.6337 4.2352 1.7571 1.1234 1.1232 1.7553 2.6464 1.7571 4.2352 0 0.238-0.12691 0.4577-0.3329 0.5766-0.20598 0.1189-0.45982 0.1189-0.66579 0-0.20598-0.1189-0.33291-0.3386-0.33291-0.5766 0-1.6651-0.88828-3.2037-2.3303-4.0363-1.442-0.8324-3.2186-0.8324-4.6606 0-1.442 0.8326-2.3303 2.3712-2.3303 4.0363 0 0.238-0.12692 0.4577-0.3329 0.5766s-0.45982 0.1189-0.6658 0c-0.20598-0.1189-0.3329-0.3386-0.3329-0.5766 0.0018-1.5887 0.63368-3.1118 1.7571-4.2352 1.1232-1.1234 2.6464-1.7553 4.2352-1.7571zm0-0.6658c-0.88292 0-1.7296-0.3507-2.3539-0.9751-0.62432-0.6243-0.97507-1.471-0.97507-2.3539s0.35073-1.7296 0.97507-2.3539c0.62433-0.6244 1.471-0.9751 2.3539-0.9751 0.88292 0 1.7296 0.3507 2.3539 0.9751 0.62432 0.6243 0.97506 1.471 0.97506 2.3539-8.2e-4 0.8826-0.35206 1.7288-0.97624 2.3528-0.62402 0.6241-1.4701 0.9752-2.3527 0.9762zm0-1.3316c0.52982 0 1.0378-0.2105 1.4124-0.5849 0.37451-0.3747 0.58494-0.8827 0.58494-1.4125s-0.21043-1.0377-0.58494-1.4124c-0.37466-0.3745-0.88262-0.585-1.4124-0.585-0.52982 0-1.0378 0.2105-1.4124 0.585-0.37451 0.3747-0.58495 0.8826-0.58495 1.4124s0.21044 1.0378 0.58495 1.4125c0.37466 0.3744 0.88262 0.5849 1.4124 0.5849z" fill="#f2f2f2" stroke="#999" stroke-width=".178"/>
137
+ <path id="path437" d="m113.29 943.47 0.9072 0.5491c0.1786 0.10817 0.2366 0.34196 0.1294 0.52223-0.0319 0.0535-0.0764 0.0983-0.1294 0.13055l-7.0072 4.2412-7.0071-4.2412c-0.17869-0.10817-0.23664-0.34196-0.12942-0.52222 0.0319-0.0536 0.0763-0.0984 0.12942-0.13056l0.90714-0.5491 6.0999 3.6922zm0 3.578 0.9072 0.5491c0.1786 0.1081 0.2366 0.3419 0.1294 0.5222-0.0319 0.0535-0.0764 0.0983-0.1294 0.1306l-6.6189 4.0061c-0.239 0.1447-0.53753 0.1447-0.77652 0l-6.6188-4.0061c-0.17869-0.1082-0.23664-0.342-0.12942-0.5223 0.0319-0.0536 0.0763-0.0984 0.12942-0.1305l0.90714-0.5491 6.0999 3.6921zm-5.7117-10.575 6.6189 4.0062c0.1786 0.10815 0.2366 0.34196 0.1294 0.52222-0.0319 0.0536-0.0764 0.0984-0.1294 0.13056l-7.0072 4.2412-7.0071-4.2412c-0.17869-0.10815-0.23664-0.34196-0.12942-0.52222 0.0319-0.0536 0.0763-0.0984 0.12942-0.13056l6.6188-4.0062c0.23899-0.14465 0.53752-0.14465 0.77652 0z" fill="#f2f2f2" stroke="#999" stroke-width=".178"/>
138
+ <path id="linestring" d="m7 937.36v2h1.8828l6.1172 3.0586v0.23438l-6.707 6.707h-1.293v2h2v-1.293l6.707-6.707h1.293v-2h-1.8828l-6.1172-3.0586v-0.94141z" color="#000000" fill="#f2f2f2" fill-rule="evenodd" stroke="#999" stroke-width=".2"/>
139
+ <path id="polygon" d="m29 936.36v2h0.92773l-0.85547 12h-1.0723v2h2v-1.1992l8-1.6016v0.80078h2v-2h-0.77734l1.5547-7h1.2227v-2h-2v0.72656l-9-2.4531v-1.2734h-2z" fill="#f2f2f2" fill-rule="evenodd" stroke="#999" stroke-width=".2"/>
140
+ <path id="marker" d="m84 936.36c-2.625 0-5.25 1.7022-6 5.1064 0 2.0426 1.5 6.1277 6 10.894 4.5-4.7659 6-8.851 6-10.894-0.75-3.4042-3.375-5.1064-6-5.1064zm0 2.383c1.6569 0 3 1.2193 3 2.7234s-1.3431 2.7234-3 2.7234c-1.6568 0-3-1.2194-3-2.7234s1.3432-2.7234 3-2.7234z" fill="#f2f2f2" stroke="#999" stroke-width=".25"/>
141
+ <g id="settings" class="sprite" transform="matrix(.16295 0 0 .16296 27.835 912.23)" fill="#f2f2f2" stroke="#999" stroke-width="1.4974">
142
+ <path id="path27812" d="m98.762 43.652c-0.186-1.386-1.481-2.582-2.876-2.659l-6.172-0.337c-1.395-0.076-2.899-1.224-3.341-2.55l-2.28-5.518c-0.629-1.249-0.379-3.121 0.553-4.161l4.122-4.6c0.933-1.042 0.962-2.77 0.066-3.842l-8.813-8.813c-1.073-0.897-2.803-0.867-3.845 0.065l-4.598 4.122c-1.039 0.934-2.915 1.182-4.161 0.551l-5.521-2.279c-1.324-0.442-2.472-1.945-2.549-3.34l-0.337-6.17c-0.077-1.396-1.272-2.691-2.659-2.878 0 0-3.252-0.44-6.248-0.44-2.991 0-6.243 0.44-6.243 0.44-1.386 0.188-2.582 1.483-2.658 2.878l-0.338 6.17c-0.076 1.396-1.224 2.898-2.551 3.34l-5.517 2.279c-1.249 0.631-3.122 0.382-4.161-0.551l-4.601-4.122c-1.042-0.932-2.769-0.962-3.842-0.065l-8.813 8.813c-0.897 1.073-0.867 2.801 0.066 3.842l4.122 4.6c0.933 1.041 1.182 2.913 0.551 4.161l-2.279 5.518c-0.442 1.326-1.946 2.474-3.34 2.55l-6.17 0.337c-1.396 0.077-2.691 1.272-2.879 2.659 0 0-0.439 3.253-0.439 6.243s0.44 6.24 0.44 6.24c0.188 1.389 1.483 2.582 2.879 2.659l6.169 0.339c1.396 0.075 2.898 1.225 3.341 2.549l2.278 5.517c0.631 1.248 0.381 3.122-0.551 4.163l-4.122 4.598c-0.933 1.042-0.963 2.771-0.066 3.845l8.814 8.813c1.073 0.896 2.801 0.866 3.842-0.066l4.6-4.122c1.041-0.932 2.913-1.182 4.161-0.553l5.517 2.28c1.327 0.441 2.475 1.946 2.55 3.343l0.338 6.168c0.076 1.395 1.272 2.692 2.658 2.88 0 0 3.252 0.439 6.244 0.439 2.996 0 6.25-0.439 6.25-0.439 1.385-0.188 2.58-1.485 2.657-2.88l0.337-6.168c0.077-1.396 1.225-2.901 2.551-3.343l5.517-2.28c1.248-0.629 3.122-0.379 4.163 0.553l4.598 4.122c1.042 0.933 2.771 0.964 3.843 0.067l8.815-8.814c0.896-1.073 0.866-2.803-0.066-3.845l-4.122-4.598c-0.932-1.041-1.182-2.915-0.553-4.163l2.28-5.517c0.441-1.324 1.946-2.474 3.341-2.549l6.172-0.339c1.395-0.077 2.692-1.271 2.876-2.659 0 0 0.441-3.25 0.441-6.24s-0.441-6.243-0.441-6.243zm-48.658 18.709c-6.886 0-12.468-5.585-12.468-12.467 0-6.885 5.582-12.467 12.468-12.467 6.89 0 12.475 5.582 12.475 12.467-1e-3 6.882-5.586 12.467-12.475 12.467z" fill="#f2f2f2" stroke="#999" stroke-width="1.4974"/>
143
+ </g>
144
+ <g id="undo" transform="matrix(.71301 0 0 .66261 53.494 938.13)" clip-path="url(#clip0_241_10857)" fill="none" stroke="#f2f2f2" stroke-miterlimit="10" stroke-width="1.4549">
145
+ <path id="path580" d="m1.07 4.41h9.42c0.9234-0.0066 1.8391 0.16957 2.6941 0.5184 0.8551 0.34883 1.6327 0.8634 2.288 1.5141s1.1754 1.4246 1.5303 2.2771c0.3549 0.85256 0.5376 1.767 0.5376 2.6904 0.0067 0.9277-0.1712 1.8474-0.5231 2.7058-0.3519 0.8583-0.871 1.6382-1.527 2.2941-0.656 0.656-1.4358 1.1751-2.2941 1.527-0.8584 0.352-1.7781 0.5298-2.7058 0.5231h-9.42"/>
146
+ <path id="path582" d="m4.75 8.45-4.04-4.05 4.04-4.05"/>
147
+ </g>
148
+ <path id="path438" d="m9 849.94v4.05c0 0.20708 0.1679 0.375 0.375 0.375h5.25c0.20708 0 0.375-0.16792 0.375-0.375v-4.05c0-0.20708-0.16792-0.375-0.375-0.375h-5.25c-0.2071 0-0.375 0.16792-0.375 0.375z" fill="none" stroke="#f2f2f2"/>
149
+ <path id="save" d="m15.213 842.36h-8.8376c-0.2071 0-0.375 0.1679-0.375 0.37499v11.25c0 0.20708 0.1679 0.375 0.375 0.375h11.25c0.20708 0 0.375-0.16792 0.375-0.375v-8.6766c0-0.0953-0.0363-0.18697-0.1014-0.25648l-2.4124-2.5733c-0.07095-0.0756-0.16995-0.11853-0.2736-0.11853z" fill="none" stroke="#f2f2f2"/>
135
150
  </g>
136
151
  </svg>
@@ -0,0 +1,14 @@
1
+ <?xml version="1.0" encoding="UTF-8" standalone="no"?>
2
+ <svg width="35" height="35" viewBox="0 0 35 35" fill="none" version="1.1" id="svg15" sodipodi:docname="logo_small.svg" inkscape:version="1.2.2 (b0a8486541, 2022-12-01)" xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" xmlns="http://www.w3.org/2000/svg" xmlns:svg="http://www.w3.org/2000/svg">
3
+ <sodipodi:namedview id="namedview17" pagecolor="#ffffff" bordercolor="#666666" borderopacity="1.0" inkscape:showpageshadow="2" inkscape:pageopacity="0.0" inkscape:pagecheckerboard="0" inkscape:deskcolor="#d1d1d1" showgrid="false" inkscape:zoom="22.25" inkscape:cx="12.94382" inkscape:cy="17.325843" inkscape:window-width="1920" inkscape:window-height="1019" inkscape:window-x="0" inkscape:window-y="0" inkscape:window-maximized="1" inkscape:current-layer="svg15" />
4
+ <rect x="0" y="0" width="35" height="35" rx="17.5" fill="#f2f2f2" stroke="#F2F2F2" stroke-width="0.5" id="rect2" style="stroke:none" />
5
+ <g clip-path="url(#clip0_217_11335)" id="g8" transform="translate(0.09990314,-0.7800653)">
6
+ <path d="m 12.2438,6.86133 c -2.46004,1.16961 -4.44899,3.14137 -5.63988,5.59127 -1.19088,2.4498 -1.51282,5.232 -0.9129,7.8891 0.59991,2.6571 2.08599,5.031 4.21394,6.7315 2.12794,1.7005 4.77114,2.6265 7.49514,2.6256 -9.28126,-8.6625 -11.41876,-19.35 -5.1563,-22.83747 z m 5.1563,22.83747 c 2.724,9e-4 5.3672,-0.9251 7.4951,-2.6256 2.128,-1.7005 3.6141,-4.0744 4.214,-6.7315 0.5999,-2.6571 0.2779,-5.4393 -0.9129,-7.8891 -1.1909,-2.4499 -3.1799,-4.42166 -5.64,-5.59127 6.2625,3.48747 4.125,14.17497 -5.1562,22.83747 z" fill="#323e56" id="path4" />
7
+ <path d="m 21.8439,12.0365 c 0,0.5836 -0.1149,1.1614 -0.3382,1.7006 -0.2234,0.5391 -0.5507,1.029 -0.9633,1.4416 -0.4127,0.4127 -0.9025,0.74 -1.4417,0.9633 -0.5391,0.2233 -1.117,0.3383 -1.7005,0.3383 -0.5836,0 -1.1614,-0.115 -1.7006,-0.3383 -0.5391,-0.2233 -1.029,-0.5506 -1.4416,-0.9633 -0.4127,-0.4126 -0.74,-0.9025 -0.9633,-1.4416 -0.2233,-0.5392 -0.3383,-1.117 -0.3383,-1.7006 0,-1.1785 0.4682,-2.30882 1.3016,-3.14218 0.8333,-0.83337 1.9636,-1.30155 3.1422,-1.30155 1.1785,0 2.3088,0.46818 3.1422,1.30155 0.8333,0.83336 1.3015,1.96368 1.3015,3.14218 z" fill="#323e56" id="path6" />
8
+ </g>
9
+ <defs id="defs13">
10
+ <clipPath id="clip0_217_11335">
11
+ <rect x="5.4001498" y="5.6992202" width="24" height="24" rx="12" fill="#ffffff" id="rect10" />
12
+ </clipPath>
13
+ </defs>
14
+ </svg>