umap-project 3.1.2__py3-none-any.whl → 3.2.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 (151) hide show
  1. umap/__init__.py +1 -1
  2. umap/locale/en/LC_MESSAGES/django.po +21 -17
  3. umap/locale/fr/LC_MESSAGES/django.mo +0 -0
  4. umap/locale/fr/LC_MESSAGES/django.po +21 -17
  5. umap/management/commands/export_pictogram.py +29 -0
  6. umap/management/commands/migrate_to_S3.py +5 -1
  7. umap/management/commands/purge_old_versions.py +8 -6
  8. umap/settings/__init__.py +21 -0
  9. umap/settings/base.py +1 -0
  10. umap/static/umap/content.css +7 -2
  11. umap/static/umap/css/icon.css +77 -3
  12. umap/static/umap/css/panel.css +31 -1
  13. umap/static/umap/js/modules/browser.js +1 -1
  14. umap/static/umap/js/modules/data/features.js +14 -29
  15. umap/static/umap/js/modules/data/layer.js +248 -136
  16. umap/static/umap/js/modules/facets.js +2 -2
  17. umap/static/umap/js/modules/form/fields.js +56 -19
  18. umap/static/umap/js/modules/formatter.js +36 -8
  19. umap/static/umap/js/modules/importers/opendata.js +23 -6
  20. umap/static/umap/js/modules/managers.js +59 -0
  21. umap/static/umap/js/modules/rendering/icon.js +3 -5
  22. umap/static/umap/js/modules/rendering/layers/classified.js +8 -7
  23. umap/static/umap/js/modules/rendering/map.js +1 -1
  24. umap/static/umap/js/modules/rendering/ui.js +13 -0
  25. umap/static/umap/js/modules/rules.js +76 -23
  26. umap/static/umap/js/modules/schema.js +3 -0
  27. umap/static/umap/js/modules/slideshow.js +1 -1
  28. umap/static/umap/js/modules/sync/updaters.js +1 -6
  29. umap/static/umap/js/modules/tableeditor.js +13 -37
  30. umap/static/umap/js/modules/templates.js +7 -6
  31. umap/static/umap/js/modules/ui/panel.js +7 -0
  32. umap/static/umap/js/modules/umap.js +17 -6
  33. umap/static/umap/js/modules/utils.js +8 -7
  34. umap/static/umap/locale/am_ET.js +43 -6
  35. umap/static/umap/locale/am_ET.json +43 -6
  36. umap/static/umap/locale/ar.js +43 -6
  37. umap/static/umap/locale/ar.json +43 -6
  38. umap/static/umap/locale/ast.js +43 -6
  39. umap/static/umap/locale/ast.json +43 -6
  40. umap/static/umap/locale/bg.js +43 -6
  41. umap/static/umap/locale/bg.json +43 -6
  42. umap/static/umap/locale/br.js +30 -26
  43. umap/static/umap/locale/br.json +30 -26
  44. umap/static/umap/locale/ca.js +50 -13
  45. umap/static/umap/locale/ca.json +50 -13
  46. umap/static/umap/locale/cs_CZ.js +43 -6
  47. umap/static/umap/locale/cs_CZ.json +43 -6
  48. umap/static/umap/locale/da.js +10 -6
  49. umap/static/umap/locale/da.json +10 -6
  50. umap/static/umap/locale/de.js +10 -6
  51. umap/static/umap/locale/de.json +10 -6
  52. umap/static/umap/locale/el.js +20 -10
  53. umap/static/umap/locale/el.json +20 -10
  54. umap/static/umap/locale/en.js +10 -6
  55. umap/static/umap/locale/en.json +10 -6
  56. umap/static/umap/locale/en_US.json +43 -6
  57. umap/static/umap/locale/es.js +10 -6
  58. umap/static/umap/locale/es.json +10 -6
  59. umap/static/umap/locale/et.js +43 -6
  60. umap/static/umap/locale/et.json +43 -6
  61. umap/static/umap/locale/eu.js +43 -6
  62. umap/static/umap/locale/eu.json +43 -6
  63. umap/static/umap/locale/fa_IR.js +43 -6
  64. umap/static/umap/locale/fa_IR.json +43 -6
  65. umap/static/umap/locale/fi.js +43 -6
  66. umap/static/umap/locale/fi.json +43 -6
  67. umap/static/umap/locale/fr.js +10 -6
  68. umap/static/umap/locale/fr.json +10 -6
  69. umap/static/umap/locale/gl.js +43 -6
  70. umap/static/umap/locale/gl.json +43 -6
  71. umap/static/umap/locale/he.js +43 -6
  72. umap/static/umap/locale/he.json +43 -6
  73. umap/static/umap/locale/hr.js +43 -6
  74. umap/static/umap/locale/hr.json +43 -6
  75. umap/static/umap/locale/hu.js +34 -24
  76. umap/static/umap/locale/hu.json +34 -24
  77. umap/static/umap/locale/id.js +43 -6
  78. umap/static/umap/locale/id.json +43 -6
  79. umap/static/umap/locale/is.js +43 -6
  80. umap/static/umap/locale/is.json +43 -6
  81. umap/static/umap/locale/it.js +10 -6
  82. umap/static/umap/locale/it.json +10 -6
  83. umap/static/umap/locale/ja.js +43 -6
  84. umap/static/umap/locale/ja.json +43 -6
  85. umap/static/umap/locale/ko.js +43 -6
  86. umap/static/umap/locale/ko.json +43 -6
  87. umap/static/umap/locale/lt.js +43 -6
  88. umap/static/umap/locale/lt.json +43 -6
  89. umap/static/umap/locale/ms.js +43 -6
  90. umap/static/umap/locale/ms.json +43 -6
  91. umap/static/umap/locale/nl.js +10 -6
  92. umap/static/umap/locale/nl.json +10 -6
  93. umap/static/umap/locale/no.js +43 -6
  94. umap/static/umap/locale/no.json +43 -6
  95. umap/static/umap/locale/pl.js +43 -6
  96. umap/static/umap/locale/pl.json +43 -6
  97. umap/static/umap/locale/pl_PL.json +43 -6
  98. umap/static/umap/locale/pt.js +43 -6
  99. umap/static/umap/locale/pt.json +43 -6
  100. umap/static/umap/locale/pt_BR.js +53 -16
  101. umap/static/umap/locale/pt_BR.json +53 -16
  102. umap/static/umap/locale/pt_PT.js +43 -6
  103. umap/static/umap/locale/pt_PT.json +43 -6
  104. umap/static/umap/locale/ro.js +43 -6
  105. umap/static/umap/locale/ro.json +43 -6
  106. umap/static/umap/locale/ru.js +43 -6
  107. umap/static/umap/locale/ru.json +43 -6
  108. umap/static/umap/locale/sk_SK.js +43 -6
  109. umap/static/umap/locale/sk_SK.json +43 -6
  110. umap/static/umap/locale/sl.js +43 -6
  111. umap/static/umap/locale/sl.json +43 -6
  112. umap/static/umap/locale/sr.js +43 -6
  113. umap/static/umap/locale/sr.json +43 -6
  114. umap/static/umap/locale/sv.js +43 -6
  115. umap/static/umap/locale/sv.json +43 -6
  116. umap/static/umap/locale/th_TH.js +43 -6
  117. umap/static/umap/locale/th_TH.json +43 -6
  118. umap/static/umap/locale/tr.js +43 -6
  119. umap/static/umap/locale/tr.json +43 -6
  120. umap/static/umap/locale/uk_UA.js +43 -6
  121. umap/static/umap/locale/uk_UA.json +43 -6
  122. umap/static/umap/locale/vi.js +43 -6
  123. umap/static/umap/locale/vi.json +43 -6
  124. umap/static/umap/locale/vi_VN.json +43 -6
  125. umap/static/umap/locale/zh.js +43 -6
  126. umap/static/umap/locale/zh.json +43 -6
  127. umap/static/umap/locale/zh_CN.json +43 -6
  128. umap/static/umap/locale/zh_TW.Big5.json +43 -6
  129. umap/static/umap/locale/zh_TW.js +43 -6
  130. umap/static/umap/locale/zh_TW.json +43 -6
  131. umap/static/umap/map.css +239 -65
  132. umap/static/umap/vendors/betterknown/betterknown.mjs +287 -0
  133. umap/storage/fs.py +3 -2
  134. umap/templates/base.html +4 -1
  135. umap/tests/base.py +9 -1
  136. umap/tests/integration/test_basics.py +1 -1
  137. umap/tests/integration/test_conditional_rules.py +62 -20
  138. umap/tests/integration/test_edit_datalayer.py +1 -1
  139. umap/tests/integration/test_edit_marker.py +1 -1
  140. umap/tests/integration/test_export_map.py +10 -0
  141. umap/tests/integration/test_import.py +140 -0
  142. umap/tests/integration/test_optimistic_merge.py +72 -12
  143. umap/tests/integration/test_tableeditor.py +6 -3
  144. umap/utils.py +33 -0
  145. umap/views.py +16 -2
  146. umap_project-3.2.0.dist-info/METADATA +76 -0
  147. {umap_project-3.1.2.dist-info → umap_project-3.2.0.dist-info}/RECORD +150 -148
  148. umap_project-3.1.2.dist-info/METADATA +0 -68
  149. {umap_project-3.1.2.dist-info → umap_project-3.2.0.dist-info}/WHEEL +0 -0
  150. {umap_project-3.1.2.dist-info → umap_project-3.2.0.dist-info}/entry_points.txt +0 -0
  151. {umap_project-3.1.2.dist-info → umap_project-3.2.0.dist-info}/licenses/LICENSE +0 -0
umap/static/umap/map.css CHANGED
@@ -5,16 +5,21 @@
5
5
  html[dir="rtl"] .leaflet-inplace-toolbar {
6
6
  direction: ltr;
7
7
  }
8
- html[dir="rtl"] .leaflet-inplace-toolbar > * {
8
+
9
+ html[dir="rtl"] .leaflet-inplace-toolbar>* {
9
10
  direction: rtl;
10
11
  }
12
+
11
13
  html[dir="rtl"] .leaflet-tooltip-pane {
12
14
  direction: ltr;
13
15
  }
14
- html[dir="rtl"] .leaflet-tooltip-pane > * {
16
+
17
+ html[dir="rtl"] .leaflet-tooltip-pane>* {
15
18
  direction: rtl;
16
19
  }
17
- .marker-cluster div { /* fix cluster icon for rtl */
20
+
21
+ .marker-cluster div {
22
+ /* fix cluster icon for rtl */
18
23
  margin-left: unset;
19
24
  margin-inline-start: 5px;
20
25
  }
@@ -44,9 +49,11 @@ html[dir="rtl"] .leaflet-tooltip-pane > * {
44
49
  .umap-edit-enabled {
45
50
  --current-header-height: var(--header-height);
46
51
  }
52
+
47
53
  .leaflet-top {
48
54
  top: var(--current-header-height);
49
55
  }
56
+
50
57
  .leaflet-bottom {
51
58
  bottom: var(--current-footer-height);
52
59
  }
@@ -62,24 +69,29 @@ html[dir="rtl"] .leaflet-tooltip-pane > * {
62
69
  border-radius: 4px;
63
70
  border: 1px solid #bbb;
64
71
  }
72
+
65
73
  .umap-control a:hover {
66
74
  background-color: #f4f4f4;
67
75
  }
76
+
68
77
  .leaflet-control-fullscreen a:hover,
69
78
  .leaflet-control-fullscreen a {
70
79
  height: var(--control-size);
71
80
  width: var(--control-size);
72
81
  background-size: 36px 68px;
73
82
  }
83
+
74
84
  .leaflet-touch .leaflet-control-fullscreen a {
75
85
  height: var(--control-size);
76
86
  width: var(--control-size);
77
87
  background-position: 0px 0px;
78
88
  }
89
+
79
90
  .leaflet-touch.leaflet-fullscreen-on .leaflet-control-fullscreen a,
80
91
  .leaflet-fullscreen-on .leaflet-control-fullscreen a {
81
92
  background-position: 0 -32px;
82
93
  }
94
+
83
95
  .leaflet-measure-control a,
84
96
  .leaflet-control-locate a,
85
97
  .umap-control a,
@@ -96,45 +108,56 @@ html[dir="rtl"] .leaflet-tooltip-pane > * {
96
108
  background-color: white;
97
109
  min-height: initial;
98
110
  }
111
+
99
112
  .leaflet-control.display-on-more {
100
113
  display: none;
101
114
  }
115
+
102
116
  .umap-control-more {
103
117
  background-image: url('./img/24-white.svg');
104
118
  background-position: -72px -402px;
105
119
  margin-bottom: 0;
106
120
  }
121
+
107
122
  .umap-more-controls .umap-control-more {
108
123
  background-position: -108px -402px;
109
124
  }
125
+
110
126
  .umap-more-controls .display-on-more {
111
127
  display: block;
112
128
  }
129
+
113
130
  .leaflet-control-embed [type="button"] {
114
131
  background-position: 0 -180px;
115
132
  }
133
+
116
134
  .leaflet-control-tilelayers [type="button"] {
117
135
  background-position: -72px 0;
118
136
  }
137
+
119
138
  .leaflet-control-home [type="button"] {
120
139
  background-position: -122px -82px;
121
140
  }
141
+
122
142
  .leaflet-control-locate a {
123
143
  background-position: 0 -108px;
124
144
  }
145
+
125
146
  .leaflet-control-locate.active a,
126
- .leaflet-control-locate.requesting a
127
- {
147
+ .leaflet-control-locate.requesting a {
128
148
  background-position: -72px -144px;
129
149
  box-shadow: 0 0 4px 0 black inset;
130
150
  }
151
+
131
152
  .leaflet-control-search [type="button"] {
132
153
  background-position: -36px -108px;
133
154
  display: block;
134
155
  }
156
+
135
157
  .leaflet-control-search [type="button"].loading {
136
158
  background-image: url('./img/search.gif');
137
159
  }
160
+
138
161
  .umap-control-text {
139
162
  border: 1px solid #666;
140
163
  border-radius: 2px;
@@ -143,6 +166,7 @@ html[dir="rtl"] .leaflet-tooltip-pane > * {
143
166
  text-align: center;
144
167
  font-size: 0.8em;
145
168
  }
169
+
146
170
  .umap-control-text [type="button"] {
147
171
  float: inline-end;
148
172
  background-color: #666;
@@ -151,18 +175,22 @@ html[dir="rtl"] .leaflet-tooltip-pane > * {
151
175
  min-height: 23px;
152
176
  height: 23px;
153
177
  }
178
+
154
179
  .umap-permanent-credits-container {
155
180
  max-width: 20rem;
156
- margin-inline-start: 5px!important;
157
- margin-bottom: 5px!important;
181
+ margin-inline-start: 5px !important;
182
+ margin-bottom: 5px !important;
158
183
  padding: 0.5rem;
159
184
  }
185
+
160
186
  .credits-container h5 {
161
187
  margin-bottom: 5px;
162
188
  }
189
+
163
190
  .credits-container p {
164
191
  margin-top: 5px;
165
192
  }
193
+
166
194
  .attribution-toggle {
167
195
  display: none;
168
196
  width: 24px;
@@ -171,6 +199,7 @@ html[dir="rtl"] .leaflet-tooltip-pane > * {
171
199
  background-image: url('./img/16.svg');
172
200
  background-position: 0px 0px;
173
201
  }
202
+
174
203
  .leaflet-iconLayers-layer {
175
204
  width: 38px;
176
205
  height: 38px;
@@ -178,6 +207,7 @@ html[dir="rtl"] .leaflet-tooltip-pane > * {
178
207
  border: 1px solid var(--color-lightGray);
179
208
  border-radius: 4px;
180
209
  }
210
+
181
211
  .leaflet-iconLayers-layerTitleContainer {
182
212
  display: none;
183
213
  inset-inline-start: 0;
@@ -185,20 +215,25 @@ html[dir="rtl"] .leaflet-tooltip-pane > * {
185
215
  min-height: 1.5rem;
186
216
  height: 1.5rem;
187
217
  }
218
+
188
219
  .leaflet-iconLayers-layerTitle {
189
220
  text-align: center;
190
221
  display: inline-block;
191
222
  }
223
+
192
224
  .leaflet-iconLayers:hover .leaflet-iconLayers-layer {
193
225
  width: 80px;
194
226
  height: 80px;
195
227
  }
228
+
196
229
  .leaflet-iconLayers:hover .leaflet-iconLayers-layerTitleContainer {
197
230
  display: initial;
198
231
  }
232
+
199
233
  .leaflet-iconLayers-layerCell:hover .leaflet-iconLayers-layerTitleContainer {
200
234
  height: initial;
201
235
  }
236
+
202
237
  .leaflet-iconLayers-layerCell-plus {
203
238
  width: 80px;
204
239
  height: 80px;
@@ -212,12 +247,15 @@ html[dir="rtl"] .leaflet-tooltip-pane > * {
212
247
  margin-bottom: 0;
213
248
  border: 1px solid var(--color-lightGray);
214
249
  }
250
+
215
251
  .leaflet-iconLayers-layerCell-plus:hover {
216
252
  background-color: var(--color-lightGray);
217
253
  }
254
+
218
255
  .leaflet-iconLayers:hover .leaflet-iconLayers-layerCell-plus {
219
256
  display: block;
220
257
  }
258
+
221
259
  .home-button {
222
260
  cursor: pointer;
223
261
  line-height: 0;
@@ -225,9 +263,11 @@ html[dir="rtl"] .leaflet-tooltip-pane > * {
225
263
  border-radius: 50%;
226
264
  background-color: var(--background-color);
227
265
  }
266
+
228
267
  .home-button:hover {
229
268
  background-color: var(--color-lighterGray);
230
269
  }
270
+
231
271
  .umap-edit-enabled .home-button {
232
272
  display: none;
233
273
  }
@@ -243,6 +283,7 @@ ul.photon-autocomplete {
243
283
  z-index: var(--zindex-autocomplete);
244
284
  display: none;
245
285
  }
286
+
246
287
  .photon-autocomplete li {
247
288
  min-height: 40px;
248
289
  line-height: 1em;
@@ -252,31 +293,38 @@ ul.photon-autocomplete {
252
293
  font-size: 1em;
253
294
  border-inline-start: 4px solid var(--color-lightGray);
254
295
  }
296
+
255
297
  .photon-autocomplete li strong {
256
298
  display: block;
257
299
  margin-top: 5px;
258
300
  }
301
+
259
302
  .photon-autocomplete button {
260
303
  margin: 0;
261
304
  }
305
+
262
306
  .photon-autocomplete button:hover {
263
307
  background-color: var(--color-darkCyan);
264
308
  }
309
+
265
310
  .photon-autocomplete button:hover i {
266
311
  /* TODO deal with this in icon.css */
267
312
  background-image: url('./img/16-white.svg');
268
313
  }
314
+
269
315
  .photon-autocomplete li.on {
270
316
  border-inline-start: 4px solid var(--color-darkCyan);
271
317
  cursor: pointer;
272
318
  background-color: var(--color-lightCyan);
273
319
  }
320
+
274
321
  .photon-autocomplete li.photon-no-result {
275
322
  text-align: center;
276
323
  color: #666;
277
324
  font-size: 0.9em;
278
325
  line-height: 40px;
279
326
  }
327
+
280
328
  .photon-autocomplete .photon-feedback {
281
329
  display: block;
282
330
  text-align: end;
@@ -285,14 +333,17 @@ ul.photon-autocomplete {
285
333
  color: #999;
286
334
  border-top: 1px solid #eee;
287
335
  }
336
+
288
337
  .search-result-tools {
289
338
  float: inline-end;
290
339
  display: none;
291
340
  }
341
+
292
342
  .search-result-tools button {
293
343
  padding: 8px;
294
344
  background-color: var(--background-color);
295
345
  }
346
+
296
347
  .umap-edit-enabled .photon-autocomplete li.on .search-result-tools {
297
348
  display: flex;
298
349
  position: relative;
@@ -309,6 +360,7 @@ ul.photon-autocomplete {
309
360
  text-align: start;
310
361
  vertical-align: bottom;
311
362
  }
363
+
312
364
  .vspace {
313
365
  height: 32px;
314
366
  }
@@ -320,6 +372,7 @@ ul.photon-autocomplete {
320
372
  .leaflet-editable-drawing {
321
373
  cursor: crosshair;
322
374
  }
375
+
323
376
  .umap-toolbar a,
324
377
  .umap-toolbar a:hover {
325
378
  height: var(--control-size);
@@ -333,55 +386,69 @@ ul.photon-autocomplete {
333
386
  background-image: url('./img/24.svg');
334
387
  background-size: auto auto;
335
388
  }
389
+
336
390
  .umap-toolbar {
337
391
  margin-top: 0;
338
392
  }
393
+
339
394
  .update-map-extent,
340
395
  .leaflet-container .umap-toolbar .update-map-extent {
341
396
  background-position: 0 -36px;
342
397
  }
398
+
343
399
  .umap-toolbar .update-map-tilelayers,
344
400
  .update-map-tilelayers {
345
401
  background-position: -72px 0;
346
402
  }
403
+
347
404
  .manage-datalayers {
348
405
  background-position: -36px -72px;
349
406
  }
407
+
350
408
  .umap-toolbar .update-map-permissions,
351
409
  .update-map-permissions {
352
410
  background-position: -36px -36px;
353
411
  }
412
+
354
413
  .umap-toolbar .upload-data,
355
414
  .upload-data {
356
415
  background-position: -144px 0;
357
416
  }
417
+
358
418
  .umap-toolbar .update-map-settings,
359
419
  .update-map-settings {
360
420
  background-position: -108px 0;
361
421
  }
422
+
362
423
  .umap-draw-marker,
363
424
  .umap-toolbar .umap-draw-marker {
364
425
  background-position: -144px -36px;
365
426
  }
427
+
366
428
  .umap-draw-polyline,
367
429
  .umap-toolbar .umap-draw-polyline {
368
430
  background-position: -108px -36px;
369
431
  }
432
+
370
433
  .umap-draw-polyline-multi,
371
434
  .umap-toolbar .umap-draw-polyline-multi {
372
435
  background-position: -36px -106px;
373
436
  }
437
+
374
438
  .umap-draw-polygon,
375
439
  .umap-toolbar .umap-draw-polygon {
376
440
  background-position: -72px -36px;
377
441
  }
442
+
378
443
  .umap-draw-polygon-multi,
379
444
  .umap-toolbar .umap-draw-polygon-multi {
380
445
  background-position: 0 -108px;
381
446
  }
447
+
382
448
  .umap-edit-enabled .umap-toolbar a {
383
449
  display: block;
384
450
  }
451
+
385
452
  .leaflet-middle-icon,
386
453
  .leaflet-vertex-icon {
387
454
  border-radius: 50%;
@@ -395,6 +462,7 @@ ul.photon-autocomplete {
395
462
  background-image: url('img/24.svg');
396
463
  background-position: -108px -108px;
397
464
  }
465
+
398
466
  .leaflet-measure-control,
399
467
  .leaflet-control-edit-in-osm {
400
468
  border: 1px solid #bbb;
@@ -402,15 +470,18 @@ ul.photon-autocomplete {
402
470
  box-shadow: none;
403
471
  background-color: white;
404
472
  }
473
+
405
474
  .leaflet-measure-control a {
406
475
  background-position: 0 -72px;
407
476
  }
477
+
408
478
  .leaflet-control .leaflet-measure-toggle {
409
479
  display: inline-block;
410
480
  vertical-align: middle;
411
481
  }
482
+
412
483
  .leaflet-control-locate-location circle {
413
- animation: none;
484
+ animation: none;
414
485
  }
415
486
 
416
487
 
@@ -433,21 +504,26 @@ ul.photon-autocomplete {
433
504
  padding-top: 5px;
434
505
  border: none !important;
435
506
  }
507
+
436
508
  .dark .umap-help-button {
437
509
  background-image: url('./img/16-white.svg');
438
- }
439
- .umap-help-entry + .umap-help-entry {
510
+ }
511
+
512
+ .umap-help-entry+.umap-help-entry {
440
513
  margin-top: 10px;
441
514
  border-top: 1px solid #aaa;
442
515
  padding-top: 10px;
443
516
  }
517
+
444
518
  .umap-getstarted button {
445
519
  width: 100%;
446
520
  margin-bottom: var(--text-margin);
447
521
  }
522
+
448
523
  .umap-help-links li {
449
524
  margin-bottom: var(--text-margin);
450
525
  }
526
+
451
527
  .umap-help {
452
528
  font-style: italic;
453
529
  }
@@ -455,51 +531,64 @@ ul.photon-autocomplete {
455
531
  .leaflet-toolbar-tip {
456
532
  background-color: var(--color-darkGray);
457
533
  }
534
+
458
535
  .layer-toggle {
459
536
  background-position: -49px -31px;
460
537
  }
538
+
461
539
  .off .layer-toggle {
462
540
  background-position: -73px -31px;
463
541
  }
542
+
464
543
  .feature-delete,
465
544
  .layer-delete {
466
545
  background-position: -122px -49px;
467
546
  }
547
+
468
548
  .feature-edit,
469
549
  .layer-edit {
470
550
  background-position: -50px -49px;
471
551
  }
552
+
472
553
  .readonly .layer-edit,
473
554
  .off .layer-edit {
474
555
  background-position: -50px -73px;
475
556
  }
557
+
476
558
  .readonly .layer-delete,
477
559
  .off .layer-delete {
478
560
  background-position: -122px -121px;
479
561
  }
562
+
480
563
  .umap-browser .feature-title {
481
564
  width: inherit;
482
565
  cursor: inherit;
483
566
  padding-inline-start: 6px;
484
567
  }
568
+
485
569
  .umap-browser .feature-title {
486
570
  font-size: 12px;
487
571
  cursor: pointer;
488
572
  }
573
+
489
574
  .show-on-edit {
490
- display: none!important;
575
+ display: none !important;
491
576
  }
577
+
492
578
  .umap-edit-enabled .show-on-edit {
493
- display: inline-block!important;
579
+ display: inline-block !important;
494
580
  }
581
+
495
582
  .umap-edit-enabled .show-on-edit.inline {
496
- display: inline!important;
583
+ display: inline !important;
497
584
  }
585
+
498
586
  .umap-edit-enabled .show-on-edit.block {
499
- display: block!important;
587
+ display: block !important;
500
588
  }
589
+
501
590
  .umap-edit-enabled .hide-on-edit {
502
- display: none!important;
591
+ display: none !important;
503
592
  }
504
593
 
505
594
 
@@ -510,10 +599,12 @@ a.umap-control-browse,
510
599
  .umap-control-browse [type="button"] {
511
600
  background-position: -144px -180px;
512
601
  }
602
+
513
603
  a.umap-control-caption,
514
604
  .umap-control-caption [type="button"] {
515
605
  background-position: -144px -36px;
516
606
  }
607
+
517
608
  .leaflet-inplace-toolbar a {
518
609
  background-repeat: no-repeat;
519
610
  background-image: url('./img/16.svg');
@@ -524,6 +615,7 @@ a.umap-control-caption,
524
615
  line-height: 24px;
525
616
  vertical-align: middle;
526
617
  }
618
+
527
619
  .umap-browser .datalayer i {
528
620
  cursor: pointer;
529
621
  }
@@ -531,16 +623,20 @@ a.umap-control-caption,
531
623
  .umap-browser .off .feature {
532
624
  display: none;
533
625
  }
626
+
534
627
  .umap-browser .datalayer {
535
628
  margin-bottom: 2px;
536
629
  border-radius: 2px;
537
630
  }
631
+
538
632
  .umap-browser .datalayer ul {
539
633
  border: 1px solid #d3d3d3;
540
634
  }
635
+
541
636
  .umap-browser.dark .datalayer ul {
542
637
  border: 1px solid #232729;
543
638
  }
639
+
544
640
  .umap-browser .datalayer summary {
545
641
  margin-bottom: 0;
546
642
  overflow: hidden;
@@ -549,6 +645,7 @@ a.umap-control-caption,
549
645
  background-color: var(--color-lightGray);
550
646
  font-weight: bold;
551
647
  }
648
+
552
649
  .umap-browser .off summary {
553
650
  color: #b3b3b3;
554
651
  }
@@ -559,17 +656,20 @@ a.umap-control-caption,
559
656
  overflow: hidden;
560
657
  text-overflow: ellipsis;
561
658
  }
659
+
562
660
  .umap-browser .datalayer li:nth-child(even) {
563
661
  background-color: #efefef;
564
662
  }
663
+
565
664
  .umap-browser.dark .datalayer li:nth-child(even) {
566
665
  background-color: #2c3233;
567
666
  }
667
+
568
668
  .umap-browser .datalayer .feature-color {
569
669
  box-shadow: 0 0 2px 0 black inset;
570
670
  cursor: inherit;
571
- -moz-box-sizing:border-box;
572
- -webkit-box-sizing:border-box;
671
+ -moz-box-sizing: border-box;
672
+ -webkit-box-sizing: border-box;
573
673
  box-sizing: border-box;
574
674
  display: inline-block;
575
675
  padding: 0;
@@ -577,24 +677,30 @@ a.umap-control-caption,
577
677
  text-align: center;
578
678
  margin-inline-start: 5px;
579
679
  }
680
+
580
681
  .umap-browser .marker .feature-color {
581
682
  background: none;
582
683
  }
684
+
583
685
  .umap-browser.dark .datalayer .feature-color {
584
686
  box-shadow: 0 0 2px 0 #999 inset;
585
687
  }
688
+
586
689
  .umap-browser .datalayer .feature-color img {
587
690
  width: 24px;
588
691
  }
692
+
589
693
  .umap-browser .datalayer .feature-color span {
590
694
  font-style: normal;
591
695
  font-weight: bold;
592
696
  }
697
+
593
698
  .umap-browser .datalayer-toggle-list {
594
699
  float: inline-end;
595
700
  margin-inline-end: 5px;
596
701
  background-position: -145px -70px;
597
702
  }
703
+
598
704
  .umap-browser .filters summary {
599
705
  background: none;
600
706
  border: 1px solid var(--color-lightGray);
@@ -602,37 +708,47 @@ a.umap-control-caption,
602
708
  padding: 0 10px;
603
709
  margin-bottom: var(--block-margin);
604
710
  }
711
+
605
712
  .umap-browser .filters summary {
606
713
  list-style: none;
607
714
  display: inline-block;
608
715
  }
716
+
609
717
  .umap-browser details[open].filters summary {
610
718
  margin-bottom: -1px;
611
719
  border-bottom: 1px solid var(--background-color);
612
720
  }
721
+
613
722
  .datalayer-name {
614
723
  cursor: pointer;
615
724
  }
725
+
616
726
  .umap-caption .dates {
617
727
  color: var(--color-mediumGray);
618
728
  }
729
+
619
730
  .umap-caption .header {
620
731
  display: flex;
621
732
  }
733
+
622
734
  .umap-caption .header i.icon {
623
735
  flex-shrink: 0;
624
736
  }
737
+
625
738
  .umap-caption button {
626
739
  background-color: var(--background-color);
627
740
  color: var(--text-color);
628
741
  }
742
+
629
743
  .umap-browser .main-toolbox {
630
- padding-left: 1.3rem; /* Align with toolbox below */
744
+ padding-left: 1.3rem;
745
+ /* Align with toolbox below */
631
746
  border-top: 1px solid var(--color-mediumGray);
632
747
  margin-top: var(--box-margin);
633
748
  padding-top: 3px;
634
749
  padding-bottom: 3px;
635
750
  }
751
+
636
752
  .umap-browser .main-toolbox i {
637
753
  cursor: pointer;
638
754
  }
@@ -654,6 +770,7 @@ a.umap-control-caption,
654
770
  margin-left: auto;
655
771
  margin-right: auto;
656
772
  }
773
+
657
774
  .umap-edit-tilelayers li div {
658
775
  background-color: rgb(116, 116, 116);
659
776
  bottom: 0;
@@ -666,6 +783,7 @@ a.umap-control-caption,
666
783
  width: 100%;
667
784
  text-align: center;
668
785
  }
786
+
669
787
  .umap-edit-tilelayers li:hover div:before,
670
788
  .umap-edit-tilelayers .selected div:before {
671
789
  content: "✓";
@@ -675,6 +793,7 @@ a.umap-control-caption,
675
793
  position: absolute;
676
794
  inset-inline-start: 7px;
677
795
  }
796
+
678
797
  .umap-edit-tilelayers li img {
679
798
  display: block;
680
799
  max-width: 100%;
@@ -696,29 +815,39 @@ a.umap-control-caption,
696
815
  .caption-item {
697
816
  color: #555;
698
817
  padding: 6px 8px;
699
- box-shadow: 0 0 3px rgba(0,0,0,0.2);
818
+ box-shadow: 0 0 3px rgba(0, 0, 0, 0.2);
700
819
  border-radius: 1px;
701
820
  }
821
+
702
822
  .caption-item ul {
703
823
  list-style-type: none;
704
824
  padding: 0;
705
825
  margin: 0;
706
826
  }
827
+
707
828
  .caption-item .circles-layer-legend {
708
829
  padding: var(--box-padding);
709
830
  }
831
+
710
832
  .circles-layer-legend li {
711
833
  display: flex;
712
834
  align-items: center;
713
835
  justify-content: space-between;
714
836
  }
837
+
715
838
  .circles-layer-legend li .circle {
716
839
  border-radius: 50%;
717
840
  display: inline-block;
718
841
  text-align: center;
719
842
  }
720
843
 
721
-
844
+ .rules-caption .color-box {
845
+ width: 24px;
846
+ height: 24px;
847
+ display: inline-block;
848
+ margin-right: var(--text-margin);
849
+ vertical-align: middle;
850
+ }
722
851
 
723
852
  /* ************* */
724
853
  /* Marker's Icon */
@@ -734,6 +863,7 @@ a.umap-control-caption,
734
863
  text-align: center;
735
864
  line-height: 32px;
736
865
  }
866
+
737
867
  .umap-div-icon.umap-icon-active .icon_container {
738
868
  border-radius: 5px;
739
869
  box-shadow: 7px 10px 10px -1px black;
@@ -741,14 +871,17 @@ a.umap-control-caption,
741
871
  line-height: 36px;
742
872
  margin-inline-start: -2px;
743
873
  margin-top: -4px;
744
- opacity: 1.0!important;
874
+ opacity: 1.0 !important;
745
875
  width: 36px;
746
876
  }
877
+
747
878
  .umap-div-icon .icon_container img {
748
879
  vertical-align: middle;
749
- max-width: 24px!important; /* leaflet.css has !important, so... */
750
- max-height: 24px!important;
880
+ max-width: 24px !important;
881
+ /* leaflet.css has !important, so... */
882
+ max-height: 24px !important;
751
883
  }
884
+
752
885
  .umap-div-icon .icon_arrow {
753
886
  border-left: 8px solid transparent;
754
887
  border-right: 8px solid transparent;
@@ -759,9 +892,11 @@ a.umap-control-caption,
759
892
  width: 0;
760
893
  opacity: 0.9;
761
894
  }
895
+
762
896
  .umap-div-icon.umap-icon-active .icon_arrow {
763
- opacity: 1.0!important;
897
+ opacity: 1.0 !important;
764
898
  }
899
+
765
900
  .umap-drop-icon .icon_arrow {
766
901
  border-left: 10px solid transparent;
767
902
  border-right: 10px solid transparent;
@@ -772,13 +907,15 @@ a.umap-control-caption,
772
907
  top: -4px;
773
908
  width: 0;
774
909
  }
910
+
775
911
  .umap-drop-icon.umap-icon-active .icon_arrow {
776
912
  border-left-width: 12px;
777
913
  border-right-width: 12px;
778
914
  border-top-width: 18px;
779
915
  inset-inline-start: 4px;
780
- opacity: 1.0!important;
916
+ opacity: 1.0 !important;
781
917
  }
918
+
782
919
  .umap-drop-icon .icon_container {
783
920
  background-color: #2470B5;
784
921
  border-radius: 16px 16px 16px 16px;
@@ -789,6 +926,7 @@ a.umap-control-caption,
789
926
  text-align: center;
790
927
  width: 32px;
791
928
  }
929
+
792
930
  .umap-drop-icon.umap-icon-active .icon_container {
793
931
  box-shadow: 4px 11px 10px -2px black;
794
932
  border-radius: 18px 18px 18px 18px;
@@ -796,19 +934,22 @@ a.umap-control-caption,
796
934
  line-height: 36px;
797
935
  margin-inline-start: -2px;
798
936
  margin-top: -6px;
799
- opacity: 1.0!important;
937
+ opacity: 1.0 !important;
800
938
  width: 36px;
801
939
  }
940
+
802
941
  .umap-drop-icon .icon_container img {
803
942
  vertical-align: middle;
804
943
  max-width: 24px !important;
805
- max-height: 24px!important;
944
+ max-height: 24px !important;
806
945
  }
946
+
807
947
  .umap-div-icon .icon_container span,
808
948
  .umap-drop-icon .icon_container span {
809
949
  vertical-align: middle;
810
950
  font-weight: bold;
811
951
  }
952
+
812
953
  .umap-circle-icon {
813
954
  border: 1px solid white;
814
955
  border-radius: 10px 10px 10px 10px;
@@ -817,16 +958,18 @@ a.umap-control-caption,
817
958
  height: 12px;
818
959
  width: 12px;
819
960
  }
961
+
820
962
  .umap-circle-icon.umap-icon-active {
821
963
  height: 16px;
822
964
  margin-inline-start: -8px;
823
965
  margin-top: -8px;
824
- opacity: 1.0!important;
966
+ opacity: 1.0 !important;
825
967
  width: 16px;
826
968
  }
969
+
827
970
  .umap-ball-icon .icon_container {
828
971
  background-color: darkblue;
829
- background: radial-gradient(circle at 6px 38% , white -4px, darkblue 8px) repeat scroll 0 0 transparent;
972
+ background: radial-gradient(circle at 6px 38%, white -4px, darkblue 8px) repeat scroll 0 0 transparent;
830
973
  border-radius: 8px 8px 8px 8px;
831
974
  box-shadow: 1px 21px 6px -3px black;
832
975
  height: 16px;
@@ -834,15 +977,17 @@ a.umap-control-caption,
834
977
  text-align: center;
835
978
  width: 16px;
836
979
  }
980
+
837
981
  .umap-ball-icon.umap-icon-active .icon_container {
838
982
  border-radius: 10px 10px 10px 10px;
839
983
  box-shadow: 1px 23px 7px -1px black;
840
984
  margin-inline-start: -2px;
841
985
  margin-top: -4px;
842
986
  height: 20px;
843
- opacity: 1.0!important;
987
+ opacity: 1.0 !important;
844
988
  width: 20px;
845
989
  }
990
+
846
991
  .umap-ball-icon .icon_arrow {
847
992
  background-color: black;
848
993
  height: 16px;
@@ -852,16 +997,20 @@ a.umap-control-caption,
852
997
  top: -1px;
853
998
  width: 2px;
854
999
  }
1000
+
855
1001
  .umap-icon-active {
856
- opacity: 1.0!important;
1002
+ opacity: 1.0 !important;
857
1003
  }
1004
+
858
1005
  .umap-edit-enabled .readonly {
859
1006
  cursor: not-allowed;
860
1007
  }
1008
+
861
1009
  .leaflet-container .umap-raw-icon img {
862
1010
  max-height: 48px !important;
863
1011
  max-width: 48px !important;
864
1012
  }
1013
+
865
1014
  .umap-raw-icon {
866
1015
  display: flex;
867
1016
  flex-direction: column;
@@ -870,6 +1019,7 @@ a.umap-control-caption,
870
1019
  align-content: center;
871
1020
  overflow: hidden;
872
1021
  }
1022
+
873
1023
  .umap-raw-icon.umap-icon-active {
874
1024
  box-shadow: var(--block-shadow);
875
1025
  }
@@ -878,80 +1028,95 @@ a.umap-control-caption,
878
1028
  /* Ajax loader */
879
1029
  /* ********************************* */
880
1030
  .umap-loader {
881
- width: 100%;
882
- height: 6px;
883
- display: inline-block;
884
- position: absolute;
885
- background: var(--color-brightCyan);
886
- overflow: hidden;
887
- display: none;
888
- top: 0;
889
- left: 0;
890
- right: 0;
891
- height: 4px;
892
- z-index: var(--zindex-loader);
1031
+ width: 100%;
1032
+ height: 6px;
1033
+ display: inline-block;
1034
+ position: absolute;
1035
+ background: var(--color-brightCyan);
1036
+ overflow: hidden;
1037
+ display: none;
1038
+ top: 0;
1039
+ left: 0;
1040
+ right: 0;
1041
+ height: 4px;
1042
+ z-index: var(--zindex-loader);
893
1043
  }
1044
+
894
1045
  .umap-loader::after {
895
- content: '';
896
- box-sizing: border-box;
897
- width: 0;
898
- height: 4.8px;
899
- background: var(--color-darkerGray);
900
- position: absolute;
901
- top: 0;
902
- left: 0;
903
- animation: animFw 10s linear infinite;
1046
+ content: '';
1047
+ box-sizing: border-box;
1048
+ width: 0;
1049
+ height: 4.8px;
1050
+ background: var(--color-darkerGray);
1051
+ position: absolute;
1052
+ top: 0;
1053
+ left: 0;
1054
+ animation: animFw 10s linear infinite;
904
1055
  }
905
1056
 
906
1057
  @keyframes animFw {
907
- 0% {
908
- width: 0;
909
- }
910
- 100% {
911
- width: 100%;
912
- }
1058
+ 0% {
1059
+ width: 0;
1060
+ }
1061
+
1062
+ 100% {
1063
+ width: 100%;
1064
+ }
913
1065
  }
1066
+
914
1067
  .umap-loading .umap-loader {
915
- display: block;
1068
+ display: block;
916
1069
  }
917
1070
 
918
1071
  /* *************************** */
919
1072
  /* Overriding leaflet defaults */
920
1073
  /* *************************** */
921
1074
 
922
- .leaflet-control-zoom a, .leaflet-control-zoom a:hover {
1075
+ .leaflet-control-zoom a,
1076
+ .leaflet-control-zoom a:hover {
923
1077
  height: var(--control-size);
924
1078
  width: var(--control-size);
925
1079
  line-height: var(--control-size);
926
1080
  }
1081
+
927
1082
  .leaflet-container .leaflet-control-zoom {
928
1083
  margin-inline-start: 10px;
929
1084
  }
930
- .leaflet-top, .leaflet-bottom {
1085
+
1086
+ .leaflet-top,
1087
+ .leaflet-bottom {
931
1088
  z-index: var(--zindex-controls);
932
1089
  }
1090
+
933
1091
  .leaflet-inplace-toolbar {
934
- z-index: var(--zindex-toolbar)!important;
1092
+ z-index: var(--zindex-toolbar) !important;
935
1093
  }
1094
+
936
1095
  .leaflet-inplace-toolbar a {
937
1096
  background-image: url('./img/16-white.svg');
938
- background-color: var(--color-darkGray)!important;
1097
+ background-color: var(--color-darkGray) !important;
939
1098
  }
1099
+
940
1100
  .leaflet-inplace-toolbar a:hover {
941
- background-color: #353c3e!important;
1101
+ background-color: #353c3e !important;
942
1102
  }
943
- .leaflet-touch .leaflet-control-layers, .leaflet-touch .leaflet-bar {
1103
+
1104
+ .leaflet-touch .leaflet-control-layers,
1105
+ .leaflet-touch .leaflet-bar {
944
1106
  border-width: 1px;
945
1107
  }
1108
+
946
1109
  .leaflet-touch .leaflet-bar a {
947
1110
  width: var(--control-size);
948
1111
  height: var(--control-size);
949
1112
  line-height: var(--control-size);
950
1113
  }
1114
+
951
1115
  /* Links are dark cyan by default */
952
1116
  .leaflet-container a {
953
1117
  color: var(--color-veryDarkCyan);
954
1118
  }
1119
+
955
1120
  /* But not in controls */
956
1121
  .leaflet-bar a {
957
1122
  color: black;
@@ -969,13 +1134,16 @@ a.umap-control-caption,
969
1134
  .leaflet-container .edit-cancel span {
970
1135
  display: none;
971
1136
  }
1137
+
972
1138
  .umap-main-edit-toolbox .umap-help-button {
973
1139
  display: none;
974
1140
  }
1141
+
975
1142
  .umap-main-edit-toolbox .umap-user {
976
1143
  margin-inline-end: 10px;
977
1144
  }
978
1145
  }
1146
+
979
1147
  @media all and (max-width: 640px) {
980
1148
  .umap-main-edit-toolbox .umap-user {
981
1149
  display: none;
@@ -985,6 +1153,7 @@ a.umap-control-caption,
985
1153
  max-width: 150px;
986
1154
  }
987
1155
  }
1156
+
988
1157
  @media all and (max-width: 480px) {
989
1158
 
990
1159
  .umap-main-edit-toolbox .share-status {
@@ -999,9 +1168,11 @@ a.umap-control-caption,
999
1168
  display: inline-block;
1000
1169
  margin-inline-end: 10px;
1001
1170
  }
1171
+
1002
1172
  .leaflet-control-layers-expanded {
1003
1173
  margin-inline-start: 10px;
1004
1174
  }
1175
+
1005
1176
  .umap-permanent-credits-container {
1006
1177
  max-width: 100%;
1007
1178
  }
@@ -1009,14 +1180,17 @@ a.umap-control-caption,
1009
1180
  .attribution-toggle {
1010
1181
  display: inline-block;
1011
1182
  }
1183
+
1012
1184
  .attribution-container {
1013
1185
  display: none;
1014
1186
  }
1187
+
1015
1188
  .leaflet-control-attribution:active .attribution-container,
1016
1189
  .leaflet-control-attribution:hover .attribution-container {
1017
1190
  display: inline;
1018
1191
  background-color: #fff;
1019
1192
  }
1193
+
1020
1194
  .leaflet-control-attribution:hover .attribution-toggle {
1021
1195
  display: none;
1022
1196
  }