umap-project 3.2.0__py3-none-any.whl → 3.3.1__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 (179) hide show
  1. umap/__init__.py +1 -1
  2. umap/locale/el/LC_MESSAGES/django.mo +0 -0
  3. umap/locale/el/LC_MESSAGES/django.po +42 -38
  4. umap/locale/en/LC_MESSAGES/django.mo +0 -0
  5. umap/locale/en/LC_MESSAGES/django.po +15 -15
  6. umap/locale/hu/LC_MESSAGES/django.mo +0 -0
  7. umap/locale/hu/LC_MESSAGES/django.po +39 -35
  8. umap/locale/nl/LC_MESSAGES/django.mo +0 -0
  9. umap/locale/nl/LC_MESSAGES/django.po +31 -27
  10. umap/settings/base.py +2 -0
  11. umap/static/umap/css/contextmenu.css +58 -2
  12. umap/static/umap/css/form.css +175 -45
  13. umap/static/umap/css/icon.css +20 -0
  14. umap/static/umap/img/16-white.svg +21 -40
  15. umap/static/umap/img/16.svg +1 -1
  16. umap/static/umap/img/24-white.svg +9 -9
  17. umap/static/umap/img/24.svg +23 -10
  18. umap/static/umap/img/source/16-white.svg +23 -41
  19. umap/static/umap/img/source/16.svg +1 -1
  20. umap/static/umap/img/source/24-white.svg +11 -11
  21. umap/static/umap/img/source/24.svg +25 -12
  22. umap/static/umap/js/modules/caption.js +8 -0
  23. umap/static/umap/js/modules/data/features.js +318 -174
  24. umap/static/umap/js/modules/data/layer.js +27 -20
  25. umap/static/umap/js/modules/form/builder.js +11 -7
  26. umap/static/umap/js/modules/form/fields.js +10 -7
  27. umap/static/umap/js/modules/formatter.js +42 -20
  28. umap/static/umap/js/modules/importer.js +6 -1
  29. umap/static/umap/js/modules/importers/opendata.js +125 -37
  30. umap/static/umap/js/modules/importers/openrouteservice.js +140 -0
  31. umap/static/umap/js/modules/managers.js +12 -4
  32. umap/static/umap/js/modules/printer.js +107 -0
  33. umap/static/umap/js/modules/rendering/controls.js +78 -2
  34. umap/static/umap/js/modules/rendering/icon.js +113 -82
  35. umap/static/umap/js/modules/rendering/layers/cluster.js +220 -64
  36. umap/static/umap/js/modules/rendering/map.js +5 -1
  37. umap/static/umap/js/modules/rendering/template.js +71 -1
  38. umap/static/umap/js/modules/rendering/ui.js +101 -34
  39. umap/static/umap/js/modules/schema.js +24 -0
  40. umap/static/umap/js/modules/share.js +19 -12
  41. umap/static/umap/js/modules/ui/bar.js +6 -1
  42. umap/static/umap/js/modules/ui/base.js +24 -9
  43. umap/static/umap/js/modules/ui/contextmenu.js +17 -7
  44. umap/static/umap/js/modules/ui/dialog.js +7 -4
  45. umap/static/umap/js/modules/umap.js +68 -62
  46. umap/static/umap/js/umap.controls.js +22 -57
  47. umap/static/umap/locale/am_ET.js +39 -4
  48. umap/static/umap/locale/am_ET.json +39 -4
  49. umap/static/umap/locale/ar.js +39 -4
  50. umap/static/umap/locale/ar.json +39 -4
  51. umap/static/umap/locale/ast.js +39 -4
  52. umap/static/umap/locale/ast.json +39 -4
  53. umap/static/umap/locale/bg.js +39 -4
  54. umap/static/umap/locale/bg.json +39 -4
  55. umap/static/umap/locale/br.js +39 -4
  56. umap/static/umap/locale/br.json +39 -4
  57. umap/static/umap/locale/ca.js +39 -4
  58. umap/static/umap/locale/ca.json +39 -4
  59. umap/static/umap/locale/cs_CZ.js +39 -4
  60. umap/static/umap/locale/cs_CZ.json +39 -4
  61. umap/static/umap/locale/da.js +47 -12
  62. umap/static/umap/locale/da.json +47 -12
  63. umap/static/umap/locale/de.js +39 -4
  64. umap/static/umap/locale/de.json +39 -4
  65. umap/static/umap/locale/el.js +81 -46
  66. umap/static/umap/locale/el.json +81 -46
  67. umap/static/umap/locale/en.js +38 -4
  68. umap/static/umap/locale/en.json +38 -4
  69. umap/static/umap/locale/en_US.json +39 -4
  70. umap/static/umap/locale/es.js +47 -12
  71. umap/static/umap/locale/es.json +47 -12
  72. umap/static/umap/locale/et.js +39 -4
  73. umap/static/umap/locale/et.json +39 -4
  74. umap/static/umap/locale/eu.js +80 -45
  75. umap/static/umap/locale/eu.json +80 -45
  76. umap/static/umap/locale/fa_IR.js +39 -4
  77. umap/static/umap/locale/fa_IR.json +39 -4
  78. umap/static/umap/locale/fi.js +39 -4
  79. umap/static/umap/locale/fi.json +39 -4
  80. umap/static/umap/locale/fr.js +39 -4
  81. umap/static/umap/locale/fr.json +39 -4
  82. umap/static/umap/locale/gl.js +39 -4
  83. umap/static/umap/locale/gl.json +39 -4
  84. umap/static/umap/locale/he.js +39 -4
  85. umap/static/umap/locale/he.json +39 -4
  86. umap/static/umap/locale/hr.js +39 -4
  87. umap/static/umap/locale/hr.json +39 -4
  88. umap/static/umap/locale/hu.js +55 -20
  89. umap/static/umap/locale/hu.json +55 -20
  90. umap/static/umap/locale/id.js +39 -4
  91. umap/static/umap/locale/id.json +39 -4
  92. umap/static/umap/locale/is.js +39 -4
  93. umap/static/umap/locale/is.json +39 -4
  94. umap/static/umap/locale/it.js +39 -4
  95. umap/static/umap/locale/it.json +39 -4
  96. umap/static/umap/locale/ja.js +39 -4
  97. umap/static/umap/locale/ja.json +39 -4
  98. umap/static/umap/locale/ko.js +39 -4
  99. umap/static/umap/locale/ko.json +39 -4
  100. umap/static/umap/locale/lt.js +39 -4
  101. umap/static/umap/locale/lt.json +39 -4
  102. umap/static/umap/locale/ms.js +52 -17
  103. umap/static/umap/locale/ms.json +52 -17
  104. umap/static/umap/locale/nl.js +58 -23
  105. umap/static/umap/locale/nl.json +58 -23
  106. umap/static/umap/locale/no.js +39 -4
  107. umap/static/umap/locale/no.json +39 -4
  108. umap/static/umap/locale/pl.js +39 -4
  109. umap/static/umap/locale/pl.json +39 -4
  110. umap/static/umap/locale/pl_PL.json +39 -4
  111. umap/static/umap/locale/pt.js +39 -4
  112. umap/static/umap/locale/pt.json +39 -4
  113. umap/static/umap/locale/pt_BR.js +39 -4
  114. umap/static/umap/locale/pt_BR.json +39 -4
  115. umap/static/umap/locale/pt_PT.js +39 -4
  116. umap/static/umap/locale/pt_PT.json +39 -4
  117. umap/static/umap/locale/ro.js +39 -4
  118. umap/static/umap/locale/ro.json +39 -4
  119. umap/static/umap/locale/ru.js +39 -4
  120. umap/static/umap/locale/ru.json +39 -4
  121. umap/static/umap/locale/sk_SK.js +39 -4
  122. umap/static/umap/locale/sk_SK.json +39 -4
  123. umap/static/umap/locale/sl.js +39 -4
  124. umap/static/umap/locale/sl.json +39 -4
  125. umap/static/umap/locale/sr.js +39 -4
  126. umap/static/umap/locale/sr.json +39 -4
  127. umap/static/umap/locale/sv.js +39 -4
  128. umap/static/umap/locale/sv.json +39 -4
  129. umap/static/umap/locale/th_TH.js +39 -4
  130. umap/static/umap/locale/th_TH.json +39 -4
  131. umap/static/umap/locale/tr.js +39 -4
  132. umap/static/umap/locale/tr.json +39 -4
  133. umap/static/umap/locale/uk_UA.js +39 -4
  134. umap/static/umap/locale/uk_UA.json +39 -4
  135. umap/static/umap/locale/vi.js +39 -4
  136. umap/static/umap/locale/vi.json +39 -4
  137. umap/static/umap/locale/vi_VN.json +39 -4
  138. umap/static/umap/locale/zh.js +39 -4
  139. umap/static/umap/locale/zh.json +39 -4
  140. umap/static/umap/locale/zh_CN.json +39 -4
  141. umap/static/umap/locale/zh_TW.Big5.json +39 -4
  142. umap/static/umap/locale/zh_TW.js +98 -63
  143. umap/static/umap/locale/zh_TW.json +98 -63
  144. umap/static/umap/map.css +90 -41
  145. umap/static/umap/vars.css +1 -0
  146. umap/static/umap/vendors/editable/Leaflet.Editable.js +3 -1
  147. umap/static/umap/vendors/openrouteservice/ors-js-client.js +521 -0
  148. umap/static/umap/vendors/openrouteservice/ors-js-client.js.map +1 -0
  149. umap/static/umap/vendors/simple-elevation-chart/elevation.js +63 -0
  150. umap/static/umap/vendors/simple-elevation-chart/elevation.svg +8 -0
  151. umap/static/umap/vendors/snapdom/snapdom.min.mjs +3 -0
  152. umap/storage/staticfiles.py +12 -0
  153. umap/templates/umap/css.html +0 -4
  154. umap/templates/umap/js.html +1 -3
  155. umap/tests/integration/test_basics.py +2 -0
  156. umap/tests/integration/test_conditional_rules.py +17 -17
  157. umap/tests/integration/test_datalayer.py +1 -1
  158. umap/tests/integration/test_draw_polygon.py +3 -5
  159. umap/tests/integration/test_draw_polyline.py +4 -6
  160. umap/tests/integration/test_draw_route.py +178 -0
  161. umap/tests/integration/test_edit_map.py +1 -1
  162. umap/tests/integration/test_edit_marker.py +7 -7
  163. umap/tests/integration/test_edit_polygon.py +2 -2
  164. umap/tests/integration/test_export_map.py +74 -10
  165. umap/tests/integration/test_map_preview.py +1 -1
  166. umap/tests/integration/test_share.py +1 -1
  167. umap/tests/integration/test_tableeditor.py +4 -4
  168. umap/tests/integration/test_websocket_sync.py +4 -4
  169. umap/utils.py +5 -1
  170. umap/views.py +2 -0
  171. {umap_project-3.2.0.dist-info → umap_project-3.3.1.dist-info}/METADATA +9 -9
  172. {umap_project-3.2.0.dist-info → umap_project-3.3.1.dist-info}/RECORD +175 -171
  173. umap/static/umap/vendors/markercluster/MarkerCluster.Default.css +0 -60
  174. umap/static/umap/vendors/markercluster/MarkerCluster.css +0 -14
  175. umap/static/umap/vendors/markercluster/leaflet.markercluster.js +0 -2
  176. umap/static/umap/vendors/markercluster/leaflet.markercluster.js.map +0 -1
  177. {umap_project-3.2.0.dist-info → umap_project-3.3.1.dist-info}/WHEEL +0 -0
  178. {umap_project-3.2.0.dist-info → umap_project-3.3.1.dist-info}/entry_points.txt +0 -0
  179. {umap_project-3.2.0.dist-info → umap_project-3.3.1.dist-info}/licenses/LICENSE +0 -0
@@ -12,7 +12,7 @@ msgid ""
12
12
  msgstr ""
13
13
  "Project-Id-Version: uMap\n"
14
14
  "Report-Msgid-Bugs-To: \n"
15
- "POT-Creation-Date: 2025-06-10 09:19+0000\n"
15
+ "POT-Creation-Date: 2025-08-14 15:22+0000\n"
16
16
  "PO-Revision-Date: 2013-11-22 14:00+0000\n"
17
17
  "Last-Translator: Joost Schouppe <joost.schouppe@gmail.com>, 2025\n"
18
18
  "Language-Team: Dutch (http://app.transifex.com/openstreetmap/umap/language/nl/)\n"
@@ -329,7 +329,7 @@ msgstr "Browse %(current_user)s's Kaarten met ster"
329
329
  msgid "%(current_user)s has no starred maps yet."
330
330
  msgstr "%(current_user)s Heeft nog geen kaarten met ster."
331
331
 
332
- #: templates/base.html:13
332
+ #: templates/base.html:16
333
333
  msgid ""
334
334
  "uMap lets you create maps with OpenStreetMap layers in a minute and embed "
335
335
  "them in your site."
@@ -505,11 +505,11 @@ msgstr "Mijn kaarten"
505
505
  #: templates/umap/dashboard_menu.html:11
506
506
  #, python-format
507
507
  msgid "My Templates (%(count)s)"
508
- msgstr ""
508
+ msgstr " Mijn Sjablonen (%(count)s) "
509
509
 
510
510
  #: templates/umap/dashboard_menu.html:13 templates/umap/user_templates.html:6
511
511
  msgid "My Templates"
512
- msgstr ""
512
+ msgstr "Mijn Sjablonen"
513
513
 
514
514
  #: templates/umap/dashboard_menu.html:17
515
515
  msgid "My profile"
@@ -535,7 +535,7 @@ msgstr "U bent ingelogd. Ga verder..."
535
535
  msgid "template"
536
536
  msgstr "sjabloon"
537
537
 
538
- #: templates/umap/map_list.html:18 views.py:458
538
+ #: templates/umap/map_list.html:18 views.py:459
539
539
  msgid "by"
540
540
  msgstr "door"
541
541
 
@@ -767,7 +767,7 @@ msgstr "Doorzoek mijn kaarten"
767
767
 
768
768
  #: templates/umap/user_dashboard.html:11
769
769
  msgid "Map’s name"
770
- msgstr ""
770
+ msgstr "Naam van de kaart"
771
771
 
772
772
  #: templates/umap/user_dashboard.html:12
773
773
  #, python-format
@@ -792,93 +792,97 @@ msgstr "Nieuw Team"
792
792
 
793
793
  #: templates/umap/user_templates.html:10
794
794
  msgid "Search my templates"
795
- msgstr ""
795
+ msgstr "Doorzoek mijn sjablonen"
796
796
 
797
797
  #: templates/umap/user_templates.html:11
798
798
  msgid "Template’s name"
799
- msgstr ""
799
+ msgstr "Naam van het sjabloon"
800
800
 
801
801
  #: templates/umap/user_templates.html:12
802
802
  #, python-format
803
803
  msgid "Download %(count)s templates"
804
- msgstr ""
804
+ msgstr "Download %(count)s sjablonen"
805
805
 
806
806
  #: templates/umap/user_templates.html:15
807
807
  msgid "You have no template yet."
808
- msgstr ""
808
+ msgstr "Je hebt nog geen sjablonen"
809
809
 
810
810
  #: templates/umap/user_templates.html:16
811
811
  msgid "Create a template"
812
- msgstr ""
812
+ msgstr "Maak een sjabloon"
813
813
 
814
814
  #: templates/umap/user_templates.html:17
815
815
  msgid "No template found."
816
- msgstr ""
816
+ msgstr "Geen sjabloon gevonden."
817
817
 
818
- #: views.py:233
818
+ #: views.py:235
819
819
  msgid "Cannot delete a team with more than one member"
820
820
  msgstr "Kan een team met meer dan één lid niet verwijderen"
821
821
 
822
- #: views.py:237
822
+ #: views.py:239
823
823
  #, python-format
824
824
  msgid "Team “%(name)s” has been deleted"
825
825
  msgstr "Team “%(name)s” is verwijderd"
826
826
 
827
- #: views.py:463
827
+ #: views.py:464
828
828
  msgid "View the map"
829
829
  msgstr "Bekijk de kaart"
830
830
 
831
- #: views.py:864
831
+ #: views.py:867
832
832
  msgid "See full screen"
833
833
  msgstr "Volledig scherm weergeven"
834
834
 
835
- #: views.py:1007
835
+ #: views.py:1010
836
836
  msgid "Map editors updated with success!"
837
837
  msgstr "Kaarteditors met succes bijgewerkt!"
838
838
 
839
- #: views.py:1043
839
+ #: views.py:1046
840
840
  #, python-format
841
841
  msgid "The uMap edit link for your map: %(map_name)s"
842
842
  msgstr "De uMap-bewerkingslink voor uw kaart: %(map_name)s"
843
843
 
844
- #: views.py:1046
844
+ #: views.py:1049
845
845
  #, python-format
846
846
  msgid "Here is your secret edit link: %(link)s"
847
847
  msgstr "Hier is je geheime bewerkingslink: %(link)s"
848
848
 
849
- #: views.py:1053
849
+ #: views.py:1056
850
850
  #, python-format
851
851
  msgid "Can't send email to %(email)s"
852
852
  msgstr "Kan geen e-mail verzenden naar %(email)s"
853
853
 
854
- #: views.py:1056
854
+ #: views.py:1059
855
855
  #, python-format
856
856
  msgid "Email sent to %(email)s"
857
857
  msgstr "E-mail verzonden naar %(email)s"
858
858
 
859
- #: views.py:1067
859
+ #: views.py:1070
860
860
  msgid "Only its owner can delete the map."
861
861
  msgstr "Kaart kan alleen door eigenaar worden verwijderd."
862
862
 
863
- #: views.py:1073
863
+ #: views.py:1076
864
864
  msgid "Map successfully deleted."
865
865
  msgstr "Kaart succesvol verwijderd."
866
866
 
867
- #: views.py:1099
867
+ #: views.py:1102
868
868
  #, python-format
869
869
  msgid ""
870
870
  "Your map has been cloned! If you want to edit this map from another "
871
871
  "computer, please use this link: %(anonymous_url)s"
872
872
  msgstr "Uw kaart is gekopieerd! Als u deze kaart wilt wijzigen vanaf een andere computer, gebruik dan deze link: %(anonymous_url)s"
873
873
 
874
- #: views.py:1104
874
+ #: views.py:1107
875
875
  msgid "Congratulations, your map has been cloned!"
876
876
  msgstr "Gefeliciteerd, uw kaart is gekopieerd!"
877
877
 
878
- #: views.py:1358
878
+ #: views.py:1361
879
879
  msgid "Layer successfully deleted."
880
880
  msgstr "Laag is verwijderd."
881
881
 
882
- #: views.py:1380
882
+ #: views.py:1383
883
883
  msgid "Permissions updated with success!"
884
884
  msgstr "Machtigingen met succes bijgewerkt!"
885
+
886
+ #: views.py:1400
887
+ msgid "Generic"
888
+ msgstr "Generiek"
umap/settings/base.py CHANGED
@@ -389,3 +389,5 @@ LOGGING = {
389
389
  REALTIME_ENABLED = env.bool("REALTIME_ENABLED", default=False)
390
390
 
391
391
  REDIS_URL = env("REDIS_URL", default="redis://localhost:6379")
392
+
393
+ OPENROUTESERVICE_APIKEY = env("OPENROUTESERVICE_APIKEY", default=None)
@@ -1,6 +1,5 @@
1
1
  .umap-contextmenu {
2
2
  background-color: var(--background-color);
3
- padding: calc(var(--box-padding) / 2) calc(var(--box-padding) / 2);
4
3
  position: fixed;
5
4
  z-index: var(--zindex-contextmenu);
6
5
  border-radius: var(--border-radius);
@@ -8,13 +7,34 @@
8
7
  display: flex;
9
8
  flex-direction: column;
10
9
  }
10
+
11
+ .umap-contextmenu>li {
12
+ background-color: var(--background-color);
13
+ padding-left: calc(var(--box-padding) / 2);
14
+ padding-right: calc(var(--box-padding) / 2);
15
+ }
16
+
17
+ .umap-contextmenu>li:last-of-type {
18
+ padding-bottom: calc(var(--box-padding) / 2);
19
+ border-radius: 0 0 var(--border-radius) var(--border-radius);
20
+ }
21
+
22
+ .umap-contextmenu>li:first-of-type {
23
+ border-radius: var(--border-radius) var(--border-radius) 0 0;
24
+ }
25
+
26
+ .umap-contextmenu>li:first-of-type:not(.dark) {
27
+ padding-top: calc(var(--box-padding) / 2);
28
+ }
29
+
11
30
  .umap-contextmenu-rows {
12
31
  flex-direction: row;
13
32
  align-items: center;
14
33
  justify-content: center;
15
34
  align-content: center;
16
35
  }
17
- .umap-contextmenu:not(.umap-contextmenu-rows) li + li {
36
+
37
+ .umap-contextmenu:not(.umap-contextmenu-rows)>li+li {
18
38
  margin-top: var(--text-margin);
19
39
  }
20
40
 
@@ -23,6 +43,42 @@
23
43
  margin-bottom: var(--text-margin);
24
44
  }
25
45
 
46
+ .umap-contextmenu .dark li button .icon:hover,
26
47
  .dark.umap-contextmenu li button .icon:hover {
27
48
  background-color: var(--color-mediumGray);
28
49
  }
50
+
51
+ .umap-contextmenu .icon-bar {
52
+ display: flex;
53
+ flex-direction: row;
54
+ }
55
+
56
+ .umap-contextmenu .icon-bar button {
57
+ padding: 2px;
58
+ }
59
+
60
+ .umap-contextmenu .icon-bar hr {
61
+ transform: rotate(90deg);
62
+ width: 16px;
63
+ margin: auto 0px;
64
+ }
65
+
66
+ .umap-contextmenu.tooltip-bottom-left,
67
+ .umap-contextmenu.tooltip-bottom-left>li:last-of-type {
68
+ border-bottom-left-radius: unset;
69
+ }
70
+
71
+ .umap-contextmenu.tooltip-bottom-right,
72
+ .umap-contextmenu.tooltip-bottom-right>li:last-of-type {
73
+ border-bottom-right-radius: unset;
74
+ }
75
+
76
+ .umap-contextmenu.tooltip-top-left,
77
+ .umap-contextmenu.tooltip-top-left>li:first-of-type {
78
+ border-top-left-radius: unset;
79
+ }
80
+
81
+ .umap-contextmenu.tooltip-top-right,
82
+ .umap-contextmenu.tooltip-top-right>li:first-of-type {
83
+ border-top-right-radius: unset;
84
+ }