umap-project 3.2.0__py3-none-any.whl → 3.3.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 (173) hide show
  1. umap/__init__.py +1 -1
  2. umap/locale/en/LC_MESSAGES/django.mo +0 -0
  3. umap/locale/en/LC_MESSAGES/django.po +15 -15
  4. umap/settings/base.py +2 -0
  5. umap/static/umap/css/contextmenu.css +58 -2
  6. umap/static/umap/css/form.css +175 -45
  7. umap/static/umap/css/icon.css +20 -0
  8. umap/static/umap/img/16-white.svg +21 -40
  9. umap/static/umap/img/16.svg +1 -1
  10. umap/static/umap/img/24-white.svg +9 -9
  11. umap/static/umap/img/24.svg +23 -10
  12. umap/static/umap/img/source/16-white.svg +23 -41
  13. umap/static/umap/img/source/16.svg +1 -1
  14. umap/static/umap/img/source/24-white.svg +11 -11
  15. umap/static/umap/img/source/24.svg +25 -12
  16. umap/static/umap/js/modules/caption.js +8 -0
  17. umap/static/umap/js/modules/data/features.js +317 -173
  18. umap/static/umap/js/modules/data/layer.js +17 -18
  19. umap/static/umap/js/modules/form/builder.js +11 -7
  20. umap/static/umap/js/modules/form/fields.js +10 -7
  21. umap/static/umap/js/modules/formatter.js +42 -20
  22. umap/static/umap/js/modules/importer.js +6 -1
  23. umap/static/umap/js/modules/importers/opendata.js +125 -37
  24. umap/static/umap/js/modules/importers/openrouteservice.js +140 -0
  25. umap/static/umap/js/modules/managers.js +12 -4
  26. umap/static/umap/js/modules/printer.js +107 -0
  27. umap/static/umap/js/modules/rendering/controls.js +78 -2
  28. umap/static/umap/js/modules/rendering/icon.js +113 -82
  29. umap/static/umap/js/modules/rendering/layers/cluster.js +199 -63
  30. umap/static/umap/js/modules/rendering/map.js +5 -1
  31. umap/static/umap/js/modules/rendering/template.js +71 -1
  32. umap/static/umap/js/modules/rendering/ui.js +98 -34
  33. umap/static/umap/js/modules/schema.js +24 -0
  34. umap/static/umap/js/modules/share.js +19 -12
  35. umap/static/umap/js/modules/ui/bar.js +6 -1
  36. umap/static/umap/js/modules/ui/base.js +24 -9
  37. umap/static/umap/js/modules/ui/contextmenu.js +17 -7
  38. umap/static/umap/js/modules/ui/dialog.js +7 -4
  39. umap/static/umap/js/modules/umap.js +67 -61
  40. umap/static/umap/js/umap.controls.js +22 -57
  41. umap/static/umap/locale/am_ET.js +39 -4
  42. umap/static/umap/locale/am_ET.json +39 -4
  43. umap/static/umap/locale/ar.js +39 -4
  44. umap/static/umap/locale/ar.json +39 -4
  45. umap/static/umap/locale/ast.js +39 -4
  46. umap/static/umap/locale/ast.json +39 -4
  47. umap/static/umap/locale/bg.js +39 -4
  48. umap/static/umap/locale/bg.json +39 -4
  49. umap/static/umap/locale/br.js +39 -4
  50. umap/static/umap/locale/br.json +39 -4
  51. umap/static/umap/locale/ca.js +39 -4
  52. umap/static/umap/locale/ca.json +39 -4
  53. umap/static/umap/locale/cs_CZ.js +39 -4
  54. umap/static/umap/locale/cs_CZ.json +39 -4
  55. umap/static/umap/locale/da.js +47 -12
  56. umap/static/umap/locale/da.json +47 -12
  57. umap/static/umap/locale/de.js +39 -4
  58. umap/static/umap/locale/de.json +39 -4
  59. umap/static/umap/locale/el.js +39 -4
  60. umap/static/umap/locale/el.json +39 -4
  61. umap/static/umap/locale/en.js +39 -4
  62. umap/static/umap/locale/en.json +39 -4
  63. umap/static/umap/locale/en_US.json +39 -4
  64. umap/static/umap/locale/es.js +47 -12
  65. umap/static/umap/locale/es.json +47 -12
  66. umap/static/umap/locale/et.js +39 -4
  67. umap/static/umap/locale/et.json +39 -4
  68. umap/static/umap/locale/eu.js +79 -44
  69. umap/static/umap/locale/eu.json +79 -44
  70. umap/static/umap/locale/fa_IR.js +39 -4
  71. umap/static/umap/locale/fa_IR.json +39 -4
  72. umap/static/umap/locale/fi.js +39 -4
  73. umap/static/umap/locale/fi.json +39 -4
  74. umap/static/umap/locale/fr.js +39 -4
  75. umap/static/umap/locale/fr.json +39 -4
  76. umap/static/umap/locale/gl.js +39 -4
  77. umap/static/umap/locale/gl.json +39 -4
  78. umap/static/umap/locale/he.js +39 -4
  79. umap/static/umap/locale/he.json +39 -4
  80. umap/static/umap/locale/hr.js +39 -4
  81. umap/static/umap/locale/hr.json +39 -4
  82. umap/static/umap/locale/hu.js +39 -4
  83. umap/static/umap/locale/hu.json +39 -4
  84. umap/static/umap/locale/id.js +39 -4
  85. umap/static/umap/locale/id.json +39 -4
  86. umap/static/umap/locale/is.js +39 -4
  87. umap/static/umap/locale/is.json +39 -4
  88. umap/static/umap/locale/it.js +39 -4
  89. umap/static/umap/locale/it.json +39 -4
  90. umap/static/umap/locale/ja.js +39 -4
  91. umap/static/umap/locale/ja.json +39 -4
  92. umap/static/umap/locale/ko.js +39 -4
  93. umap/static/umap/locale/ko.json +39 -4
  94. umap/static/umap/locale/lt.js +39 -4
  95. umap/static/umap/locale/lt.json +39 -4
  96. umap/static/umap/locale/ms.js +39 -4
  97. umap/static/umap/locale/ms.json +39 -4
  98. umap/static/umap/locale/nl.js +39 -4
  99. umap/static/umap/locale/nl.json +39 -4
  100. umap/static/umap/locale/no.js +39 -4
  101. umap/static/umap/locale/no.json +39 -4
  102. umap/static/umap/locale/pl.js +39 -4
  103. umap/static/umap/locale/pl.json +39 -4
  104. umap/static/umap/locale/pl_PL.json +39 -4
  105. umap/static/umap/locale/pt.js +39 -4
  106. umap/static/umap/locale/pt.json +39 -4
  107. umap/static/umap/locale/pt_BR.js +39 -4
  108. umap/static/umap/locale/pt_BR.json +39 -4
  109. umap/static/umap/locale/pt_PT.js +39 -4
  110. umap/static/umap/locale/pt_PT.json +39 -4
  111. umap/static/umap/locale/ro.js +39 -4
  112. umap/static/umap/locale/ro.json +39 -4
  113. umap/static/umap/locale/ru.js +39 -4
  114. umap/static/umap/locale/ru.json +39 -4
  115. umap/static/umap/locale/sk_SK.js +39 -4
  116. umap/static/umap/locale/sk_SK.json +39 -4
  117. umap/static/umap/locale/sl.js +39 -4
  118. umap/static/umap/locale/sl.json +39 -4
  119. umap/static/umap/locale/sr.js +39 -4
  120. umap/static/umap/locale/sr.json +39 -4
  121. umap/static/umap/locale/sv.js +39 -4
  122. umap/static/umap/locale/sv.json +39 -4
  123. umap/static/umap/locale/th_TH.js +39 -4
  124. umap/static/umap/locale/th_TH.json +39 -4
  125. umap/static/umap/locale/tr.js +39 -4
  126. umap/static/umap/locale/tr.json +39 -4
  127. umap/static/umap/locale/uk_UA.js +39 -4
  128. umap/static/umap/locale/uk_UA.json +39 -4
  129. umap/static/umap/locale/vi.js +39 -4
  130. umap/static/umap/locale/vi.json +39 -4
  131. umap/static/umap/locale/vi_VN.json +39 -4
  132. umap/static/umap/locale/zh.js +39 -4
  133. umap/static/umap/locale/zh.json +39 -4
  134. umap/static/umap/locale/zh_CN.json +39 -4
  135. umap/static/umap/locale/zh_TW.Big5.json +39 -4
  136. umap/static/umap/locale/zh_TW.js +98 -63
  137. umap/static/umap/locale/zh_TW.json +98 -63
  138. umap/static/umap/map.css +90 -41
  139. umap/static/umap/vars.css +1 -0
  140. umap/static/umap/vendors/editable/Leaflet.Editable.js +3 -1
  141. umap/static/umap/vendors/openrouteservice/ors-js-client.js +521 -0
  142. umap/static/umap/vendors/openrouteservice/ors-js-client.js.map +1 -0
  143. umap/static/umap/vendors/simple-elevation-chart/elevation.js +63 -0
  144. umap/static/umap/vendors/simple-elevation-chart/elevation.svg +8 -0
  145. umap/static/umap/vendors/snapdom/snapdom.min.mjs +3 -0
  146. umap/storage/staticfiles.py +12 -0
  147. umap/templates/umap/css.html +0 -4
  148. umap/templates/umap/js.html +1 -3
  149. umap/tests/integration/test_basics.py +2 -0
  150. umap/tests/integration/test_conditional_rules.py +17 -17
  151. umap/tests/integration/test_datalayer.py +1 -1
  152. umap/tests/integration/test_draw_polygon.py +3 -5
  153. umap/tests/integration/test_draw_polyline.py +4 -6
  154. umap/tests/integration/test_draw_route.py +178 -0
  155. umap/tests/integration/test_edit_map.py +1 -1
  156. umap/tests/integration/test_edit_marker.py +7 -7
  157. umap/tests/integration/test_edit_polygon.py +2 -2
  158. umap/tests/integration/test_export_map.py +74 -10
  159. umap/tests/integration/test_map_preview.py +1 -1
  160. umap/tests/integration/test_share.py +1 -1
  161. umap/tests/integration/test_tableeditor.py +4 -4
  162. umap/tests/integration/test_websocket_sync.py +4 -4
  163. umap/utils.py +5 -1
  164. umap/views.py +2 -0
  165. {umap_project-3.2.0.dist-info → umap_project-3.3.0.dist-info}/METADATA +8 -8
  166. {umap_project-3.2.0.dist-info → umap_project-3.3.0.dist-info}/RECORD +169 -165
  167. umap/static/umap/vendors/markercluster/MarkerCluster.Default.css +0 -60
  168. umap/static/umap/vendors/markercluster/MarkerCluster.css +0 -14
  169. umap/static/umap/vendors/markercluster/leaflet.markercluster.js +0 -2
  170. umap/static/umap/vendors/markercluster/leaflet.markercluster.js.map +0 -1
  171. {umap_project-3.2.0.dist-info → umap_project-3.3.0.dist-info}/WHEEL +0 -0
  172. {umap_project-3.2.0.dist-info → umap_project-3.3.0.dist-info}/entry_points.txt +0 -0
  173. {umap_project-3.2.0.dist-info → umap_project-3.3.0.dist-info}/licenses/LICENSE +0 -0
umap/__init__.py CHANGED
@@ -1 +1 @@
1
- VERSION = "3.2.0"
1
+ VERSION = "3.3.0"
Binary file
@@ -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: 2025-07-10 14:12+0000\n"
11
+ "POT-Creation-Date: 2025-08-14 15:22+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"
@@ -324,7 +324,7 @@ msgstr ""
324
324
  msgid "%(current_user)s has no starred maps yet."
325
325
  msgstr ""
326
326
 
327
- #: templates/base.html:13
327
+ #: templates/base.html:16
328
328
  msgid ""
329
329
  "uMap lets you create maps with OpenStreetMap layers in a minute and embed "
330
330
  "them in your site."
@@ -822,61 +822,61 @@ msgstr ""
822
822
  msgid "View the map"
823
823
  msgstr ""
824
824
 
825
- #: views.py:865
825
+ #: views.py:867
826
826
  msgid "See full screen"
827
827
  msgstr ""
828
828
 
829
- #: views.py:1008
829
+ #: views.py:1010
830
830
  msgid "Map editors updated with success!"
831
831
  msgstr ""
832
832
 
833
- #: views.py:1044
833
+ #: views.py:1046
834
834
  #, python-format
835
835
  msgid "The uMap edit link for your map: %(map_name)s"
836
836
  msgstr ""
837
837
 
838
- #: views.py:1047
838
+ #: views.py:1049
839
839
  #, python-format
840
840
  msgid "Here is your secret edit link: %(link)s"
841
841
  msgstr ""
842
842
 
843
- #: views.py:1054
843
+ #: views.py:1056
844
844
  #, python-format
845
845
  msgid "Can't send email to %(email)s"
846
846
  msgstr ""
847
847
 
848
- #: views.py:1057
848
+ #: views.py:1059
849
849
  #, python-format
850
850
  msgid "Email sent to %(email)s"
851
851
  msgstr ""
852
852
 
853
- #: views.py:1068
853
+ #: views.py:1070
854
854
  msgid "Only its owner can delete the map."
855
855
  msgstr ""
856
856
 
857
- #: views.py:1074
857
+ #: views.py:1076
858
858
  msgid "Map successfully deleted."
859
859
  msgstr ""
860
860
 
861
- #: views.py:1100
861
+ #: views.py:1102
862
862
  #, python-format
863
863
  msgid ""
864
864
  "Your map has been cloned! If you want to edit this map from another "
865
865
  "computer, please use this link: %(anonymous_url)s"
866
866
  msgstr ""
867
867
 
868
- #: views.py:1105
868
+ #: views.py:1107
869
869
  msgid "Congratulations, your map has been cloned!"
870
870
  msgstr ""
871
871
 
872
- #: views.py:1359
872
+ #: views.py:1361
873
873
  msgid "Layer successfully deleted."
874
874
  msgstr ""
875
875
 
876
- #: views.py:1381
876
+ #: views.py:1383
877
877
  msgid "Permissions updated with success!"
878
878
  msgstr ""
879
879
 
880
- #: views.py:1398
880
+ #: views.py:1400
881
881
  msgid "Generic"
882
882
  msgstr ""
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
+ }