umap-project 2.9.0b0__py3-none-any.whl → 2.9.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.
- umap/__init__.py +1 -1
- umap/admin.py +15 -2
- umap/locale/br/LC_MESSAGES/django.mo +0 -0
- umap/locale/br/LC_MESSAGES/django.po +111 -67
- umap/locale/cs_CZ/LC_MESSAGES/django.mo +0 -0
- umap/locale/cs_CZ/LC_MESSAGES/django.po +112 -67
- umap/locale/el/LC_MESSAGES/django.mo +0 -0
- umap/locale/el/LC_MESSAGES/django.po +132 -87
- umap/locale/en/LC_MESSAGES/django.po +11 -10
- umap/locale/es/LC_MESSAGES/django.mo +0 -0
- umap/locale/es/LC_MESSAGES/django.po +117 -71
- umap/locale/fr/LC_MESSAGES/django.mo +0 -0
- umap/locale/fr/LC_MESSAGES/django.po +11 -10
- umap/locale/gl/LC_MESSAGES/django.mo +0 -0
- umap/locale/gl/LC_MESSAGES/django.po +219 -173
- umap/locale/it/LC_MESSAGES/django.mo +0 -0
- umap/locale/it/LC_MESSAGES/django.po +145 -100
- umap/locale/nl/LC_MESSAGES/django.mo +0 -0
- umap/locale/nl/LC_MESSAGES/django.po +198 -152
- umap/locale/pt/LC_MESSAGES/django.mo +0 -0
- umap/locale/pt/LC_MESSAGES/django.po +118 -73
- umap/locale/zh_TW/LC_MESSAGES/django.mo +0 -0
- umap/locale/zh_TW/LC_MESSAGES/django.po +112 -67
- umap/middleware.py +30 -1
- umap/models.py +20 -10
- umap/settings/base.py +2 -1
- umap/static/umap/base.css +4 -1
- umap/static/umap/css/bar.css +32 -0
- umap/static/umap/css/contextmenu.css +14 -2
- umap/static/umap/css/form.css +5 -10
- umap/static/umap/css/icon.css +39 -3
- umap/static/umap/css/panel.css +18 -1
- umap/static/umap/css/popup.css +0 -1
- umap/static/umap/img/16-white.svg +3 -3
- umap/static/umap/img/16.svg +1 -1
- umap/static/umap/img/24-white.svg +17 -16
- umap/static/umap/img/24.svg +29 -18
- umap/static/umap/img/providers/twitter-oauth2.png +0 -0
- umap/static/umap/img/source/16-white.svg +4 -4
- umap/static/umap/img/source/16.svg +1 -1
- umap/static/umap/img/source/24-white.svg +20 -18
- umap/static/umap/img/source/24.svg +30 -19
- umap/static/umap/js/modules/browser.js +2 -2
- umap/static/umap/js/modules/caption.js +4 -4
- umap/static/umap/js/modules/data/features.js +80 -32
- umap/static/umap/js/modules/data/layer.js +37 -50
- umap/static/umap/js/modules/form/builder.js +23 -22
- umap/static/umap/js/modules/form/fields.js +13 -5
- umap/static/umap/js/modules/formatter.js +6 -2
- umap/static/umap/js/modules/help.js +17 -23
- umap/static/umap/js/modules/importer.js +5 -2
- umap/static/umap/js/modules/permissions.js +6 -2
- umap/static/umap/js/modules/rendering/layers/classified.js +1 -1
- umap/static/umap/js/modules/rendering/map.js +1 -21
- umap/static/umap/js/modules/rendering/ui.js +20 -38
- umap/static/umap/js/modules/rules.js +1 -1
- umap/static/umap/js/modules/saving.js +5 -0
- umap/static/umap/js/modules/schema.js +4 -1
- umap/static/umap/js/modules/sync/engine.js +39 -14
- umap/static/umap/js/modules/sync/updaters.js +7 -6
- umap/static/umap/js/modules/sync/websocket.js +48 -40
- umap/static/umap/js/modules/ui/bar.js +84 -0
- umap/static/umap/js/modules/ui/contextmenu.js +9 -2
- umap/static/umap/js/modules/ui/panel.js +5 -1
- umap/static/umap/js/modules/umap.js +85 -44
- umap/static/umap/js/umap.controls.js +11 -341
- umap/static/umap/locale/am_ET.js +17 -5
- umap/static/umap/locale/am_ET.json +17 -5
- umap/static/umap/locale/ar.js +17 -5
- umap/static/umap/locale/ar.json +17 -5
- umap/static/umap/locale/ast.js +17 -5
- umap/static/umap/locale/ast.json +17 -5
- umap/static/umap/locale/bg.js +17 -5
- umap/static/umap/locale/bg.json +17 -5
- umap/static/umap/locale/br.js +20 -15
- umap/static/umap/locale/br.json +20 -15
- umap/static/umap/locale/ca.js +8 -4
- umap/static/umap/locale/ca.json +8 -4
- umap/static/umap/locale/cs_CZ.js +8 -4
- umap/static/umap/locale/cs_CZ.json +8 -4
- umap/static/umap/locale/da.js +17 -5
- umap/static/umap/locale/da.json +17 -5
- umap/static/umap/locale/de.js +8 -4
- umap/static/umap/locale/de.json +8 -4
- umap/static/umap/locale/el.js +54 -50
- umap/static/umap/locale/el.json +54 -50
- umap/static/umap/locale/en.js +9 -4
- umap/static/umap/locale/en.json +9 -4
- umap/static/umap/locale/en_US.json +17 -5
- umap/static/umap/locale/es.js +13 -9
- umap/static/umap/locale/es.json +13 -9
- umap/static/umap/locale/et.js +17 -5
- umap/static/umap/locale/et.json +17 -5
- umap/static/umap/locale/eu.js +8 -4
- umap/static/umap/locale/eu.json +8 -4
- umap/static/umap/locale/fa_IR.js +8 -4
- umap/static/umap/locale/fa_IR.json +8 -4
- umap/static/umap/locale/fi.js +17 -5
- umap/static/umap/locale/fi.json +17 -5
- umap/static/umap/locale/fr.js +9 -4
- umap/static/umap/locale/fr.json +9 -4
- umap/static/umap/locale/gl.js +13 -9
- umap/static/umap/locale/gl.json +13 -9
- umap/static/umap/locale/he.js +17 -5
- umap/static/umap/locale/he.json +17 -5
- umap/static/umap/locale/hr.js +17 -5
- umap/static/umap/locale/hr.json +17 -5
- umap/static/umap/locale/hu.js +8 -4
- umap/static/umap/locale/hu.json +8 -4
- umap/static/umap/locale/id.js +17 -5
- umap/static/umap/locale/id.json +17 -5
- umap/static/umap/locale/is.js +17 -5
- umap/static/umap/locale/is.json +17 -5
- umap/static/umap/locale/it.js +31 -27
- umap/static/umap/locale/it.json +31 -27
- umap/static/umap/locale/ja.js +17 -5
- umap/static/umap/locale/ja.json +17 -5
- umap/static/umap/locale/ko.js +17 -5
- umap/static/umap/locale/ko.json +17 -5
- umap/static/umap/locale/lt.js +17 -5
- umap/static/umap/locale/lt.json +17 -5
- umap/static/umap/locale/ms.js +8 -4
- umap/static/umap/locale/ms.json +8 -4
- umap/static/umap/locale/nl.js +132 -127
- umap/static/umap/locale/nl.json +132 -127
- umap/static/umap/locale/no.js +17 -5
- umap/static/umap/locale/no.json +17 -5
- umap/static/umap/locale/pl.js +8 -4
- umap/static/umap/locale/pl.json +8 -4
- umap/static/umap/locale/pl_PL.json +17 -5
- umap/static/umap/locale/pt.js +38 -33
- umap/static/umap/locale/pt.json +38 -33
- umap/static/umap/locale/pt_BR.js +17 -5
- umap/static/umap/locale/pt_BR.json +17 -5
- umap/static/umap/locale/pt_PT.js +8 -4
- umap/static/umap/locale/pt_PT.json +8 -4
- umap/static/umap/locale/ro.js +17 -5
- umap/static/umap/locale/ro.json +17 -5
- umap/static/umap/locale/ru.js +17 -5
- umap/static/umap/locale/ru.json +17 -5
- umap/static/umap/locale/sk_SK.js +17 -5
- umap/static/umap/locale/sk_SK.json +17 -5
- umap/static/umap/locale/sl.js +17 -5
- umap/static/umap/locale/sl.json +17 -5
- umap/static/umap/locale/sr.js +17 -5
- umap/static/umap/locale/sr.json +17 -5
- umap/static/umap/locale/sv.js +17 -5
- umap/static/umap/locale/sv.json +17 -5
- umap/static/umap/locale/th_TH.js +8 -4
- umap/static/umap/locale/th_TH.json +8 -4
- umap/static/umap/locale/tr.js +17 -5
- umap/static/umap/locale/tr.json +17 -5
- umap/static/umap/locale/uk_UA.js +17 -5
- umap/static/umap/locale/uk_UA.json +17 -5
- umap/static/umap/locale/vi.js +17 -5
- umap/static/umap/locale/vi.json +17 -5
- umap/static/umap/locale/vi_VN.json +17 -5
- umap/static/umap/locale/zh.js +17 -5
- umap/static/umap/locale/zh.json +17 -5
- umap/static/umap/locale/zh_CN.json +17 -5
- umap/static/umap/locale/zh_TW.Big5.json +17 -5
- umap/static/umap/locale/zh_TW.js +14 -10
- umap/static/umap/locale/zh_TW.json +14 -10
- umap/static/umap/map.css +17 -68
- umap/static/umap/nav.css +4 -0
- umap/static/umap/vars.css +1 -0
- umap/static/umap/vendors/dompurify/purify.es.js +138 -354
- umap/static/umap/vendors/dompurify/purify.es.mjs.map +1 -1
- umap/static/umap/vendors/editable/Leaflet.Editable.js +1 -0
- umap/sync/app.py +19 -13
- umap/sync/payloads.py +8 -1
- umap/templates/auth/user_form.html +2 -2
- umap/templates/umap/content_footer.html +1 -1
- umap/templates/umap/css.html +0 -2
- umap/templates/umap/js.html +0 -1
- umap/templates/umap/messages.html +5 -1
- umap/templates/umap/search_bar.html +1 -0
- umap/tests/integration/test_anonymous_owned_map.py +2 -2
- umap/tests/integration/test_basics.py +2 -5
- umap/tests/integration/test_categorized_layer.py +4 -8
- umap/tests/integration/test_choropleth.py +1 -1
- umap/tests/integration/test_conditional_rules.py +3 -3
- umap/tests/integration/test_draw_polygon.py +11 -19
- umap/tests/integration/test_draw_polyline.py +6 -14
- umap/tests/integration/test_edit_datalayer.py +10 -10
- umap/tests/integration/test_edit_map.py +27 -1
- umap/tests/integration/test_edit_marker.py +5 -5
- umap/tests/integration/test_edit_polygon.py +5 -5
- umap/tests/integration/test_features_id_generation.py +2 -6
- umap/tests/integration/test_import.py +93 -29
- umap/tests/integration/test_owned_map.py +1 -1
- umap/tests/integration/test_save.py +2 -2
- umap/tests/integration/test_tableeditor.py +7 -7
- umap/tests/integration/test_view_marker.py +10 -0
- umap/tests/integration/test_websocket_sync.py +128 -32
- umap/utils.py +4 -1
- umap/views.py +0 -9
- {umap_project-2.9.0b0.dist-info → umap_project-2.9.1.dist-info}/METADATA +13 -13
- {umap_project-2.9.0b0.dist-info → umap_project-2.9.1.dist-info}/RECORD +202 -204
- umap/static/umap/vendors/toolbar/leaflet.toolbar.css +0 -1
- umap/static/umap/vendors/toolbar/leaflet.toolbar.js +0 -1
- {umap_project-2.9.0b0.dist-info → umap_project-2.9.1.dist-info}/WHEEL +0 -0
- {umap_project-2.9.0b0.dist-info → umap_project-2.9.1.dist-info}/entry_points.txt +0 -0
- {umap_project-2.9.0b0.dist-info → umap_project-2.9.1.dist-info}/licenses/LICENSE +0 -0
umap/static/umap/map.css
CHANGED
|
@@ -102,12 +102,12 @@ html[dir="rtl"] .leaflet-tooltip-pane > * {
|
|
|
102
102
|
.umap-control-more,
|
|
103
103
|
.umap-control-less {
|
|
104
104
|
background-image: url('./img/24-white.svg');
|
|
105
|
-
background-position: -72px -
|
|
105
|
+
background-position: -72px -402px;
|
|
106
106
|
text-indent: -9999px;
|
|
107
107
|
margin-bottom: 0;
|
|
108
108
|
}
|
|
109
109
|
.umap-control-less {
|
|
110
|
-
background-position: -108px -
|
|
110
|
+
background-position: -108px -402px;
|
|
111
111
|
}
|
|
112
112
|
.umap-more-controls .display-on-more,
|
|
113
113
|
.umap-more-controls .umap-control-less {
|
|
@@ -177,7 +177,6 @@ html[dir="rtl"] .leaflet-tooltip-pane > * {
|
|
|
177
177
|
line-height: var(--control-size);
|
|
178
178
|
display: block;
|
|
179
179
|
}
|
|
180
|
-
.leaflet-control-toolbar .leaflet-toolbar-icon.dark:hover,
|
|
181
180
|
.edit-enable [type="button"]:hover {
|
|
182
181
|
background-color: #4d5759;
|
|
183
182
|
}
|
|
@@ -318,7 +317,6 @@ ul.photon-autocomplete {
|
|
|
318
317
|
.leaflet-editable-drawing {
|
|
319
318
|
cursor: crosshair;
|
|
320
319
|
}
|
|
321
|
-
.leaflet-control-toolbar > li > .leaflet-toolbar-icon,
|
|
322
320
|
.umap-toolbar a,
|
|
323
321
|
.umap-toolbar a:hover {
|
|
324
322
|
height: var(--control-size);
|
|
@@ -332,9 +330,6 @@ ul.photon-autocomplete {
|
|
|
332
330
|
background-image: url('./img/24.svg');
|
|
333
331
|
background-size: auto auto;
|
|
334
332
|
}
|
|
335
|
-
.leaflet-control-toolbar li .leaflet-toolbar-icon.dark {
|
|
336
|
-
background-image: url('./img/24-white.svg');
|
|
337
|
-
}
|
|
338
333
|
.umap-toolbar {
|
|
339
334
|
margin-top: 0;
|
|
340
335
|
}
|
|
@@ -381,11 +376,13 @@ ul.photon-autocomplete {
|
|
|
381
376
|
.umap-toolbar .umap-draw-polygon-multi {
|
|
382
377
|
background-position: 0 -108px;
|
|
383
378
|
}
|
|
384
|
-
.umap-edit-enabled .leaflet-control-toolbar > li > .leaflet-toolbar-icon,
|
|
385
379
|
.umap-edit-enabled .umap-toolbar a {
|
|
386
380
|
display: block;
|
|
387
381
|
}
|
|
388
|
-
|
|
382
|
+
.leaflet-middle-icon,
|
|
383
|
+
.leaflet-vertex-icon {
|
|
384
|
+
border-radius: 50%;
|
|
385
|
+
}
|
|
389
386
|
|
|
390
387
|
/* ********************************* */
|
|
391
388
|
/* Third party plugin override */
|
|
@@ -423,10 +420,10 @@ ul.photon-autocomplete {
|
|
|
423
420
|
width: 16px;
|
|
424
421
|
height: 16px;
|
|
425
422
|
margin-inline-start: 5px;
|
|
426
|
-
background-position:
|
|
423
|
+
background-position: 2px -4px;
|
|
427
424
|
background-repeat: no-repeat;
|
|
428
425
|
background-image: url('./img/16.svg');
|
|
429
|
-
background-color:
|
|
426
|
+
background-color: transparent !important;
|
|
430
427
|
vertical-align: middle;
|
|
431
428
|
text-indent: -9999px;
|
|
432
429
|
min-height: inherit;
|
|
@@ -441,31 +438,8 @@ ul.photon-autocomplete {
|
|
|
441
438
|
border-top: 1px solid #aaa;
|
|
442
439
|
padding-top: 10px;
|
|
443
440
|
}
|
|
444
|
-
.umap-
|
|
445
|
-
|
|
446
|
-
clear: both;
|
|
447
|
-
}
|
|
448
|
-
.umap-edit-actions li {
|
|
449
|
-
height: var(--control-size);
|
|
450
|
-
line-height: var(--control-size);
|
|
451
|
-
cursor: pointer;
|
|
452
|
-
margin-bottom: 5px;
|
|
453
|
-
border-radius: 2px;
|
|
454
|
-
border: 1px solid #222;
|
|
455
|
-
}
|
|
456
|
-
.umap-edit-actions li i {
|
|
457
|
-
background-image: url('./img/24-white.svg');
|
|
458
|
-
background-repeat: no-repeat;
|
|
459
|
-
display: table-cell;
|
|
460
|
-
width: var(--control-size);
|
|
461
|
-
height: var(--control-size);
|
|
462
|
-
}
|
|
463
|
-
.umap-edit-actions li span {
|
|
464
|
-
display: table-cell;
|
|
465
|
-
vertical-align: middle;
|
|
466
|
-
}
|
|
467
|
-
.umap-edit-actions li:hover {
|
|
468
|
-
background-color: #353c3e;
|
|
441
|
+
.umap-getstarted button {
|
|
442
|
+
width: 100%;
|
|
469
443
|
}
|
|
470
444
|
.umap-help {
|
|
471
445
|
font-style: italic;
|
|
@@ -504,9 +478,6 @@ ul.photon-autocomplete {
|
|
|
504
478
|
.layer-edit {
|
|
505
479
|
background-position: -50px -49px;
|
|
506
480
|
}
|
|
507
|
-
.umap-toggle-edit {
|
|
508
|
-
background-position: -44px -48px;
|
|
509
|
-
}
|
|
510
481
|
.readonly .layer-edit,
|
|
511
482
|
.off .layer-edit {
|
|
512
483
|
background-position: -50px -73px;
|
|
@@ -515,28 +486,6 @@ ul.photon-autocomplete {
|
|
|
515
486
|
.off .layer-delete {
|
|
516
487
|
background-position: -122px -121px;
|
|
517
488
|
}
|
|
518
|
-
.umap-new-hole {
|
|
519
|
-
background-position: -71px -94px;
|
|
520
|
-
}
|
|
521
|
-
.umap-delete-one-of-multi {
|
|
522
|
-
background-position: -97px -70px;
|
|
523
|
-
}
|
|
524
|
-
.umap-delete-all,
|
|
525
|
-
.umap-delete-one-of-one {
|
|
526
|
-
background-position: -119px -48px;
|
|
527
|
-
}
|
|
528
|
-
.umap-delete-vertex {
|
|
529
|
-
background-position: -119px -94px;
|
|
530
|
-
}
|
|
531
|
-
.umap-continue-line {
|
|
532
|
-
background-position: -96px 1px;
|
|
533
|
-
}
|
|
534
|
-
.umap-split-line {
|
|
535
|
-
background-position: -119px -22px;
|
|
536
|
-
}
|
|
537
|
-
.umap-extract-shape-from-multi{
|
|
538
|
-
background-position: -119px 2px;
|
|
539
|
-
}
|
|
540
489
|
.umap-browser .feature-title {
|
|
541
490
|
width: inherit;
|
|
542
491
|
cursor: inherit;
|
|
@@ -568,11 +517,11 @@ ul.photon-autocomplete {
|
|
|
568
517
|
/* ********************************* */
|
|
569
518
|
a.umap-control-browse,
|
|
570
519
|
.umap-control-browse [type="button"] {
|
|
571
|
-
background-position: -
|
|
520
|
+
background-position: -144px -180px;
|
|
572
521
|
}
|
|
573
522
|
a.umap-control-caption,
|
|
574
523
|
.umap-control-caption [type="button"] {
|
|
575
|
-
background-position: -
|
|
524
|
+
background-position: -144px -36px;
|
|
576
525
|
}
|
|
577
526
|
.leaflet-inplace-toolbar a {
|
|
578
527
|
background-repeat: no-repeat;
|
|
@@ -717,7 +666,7 @@ a.umap-control-caption,
|
|
|
717
666
|
/* Tilelayer switcher */
|
|
718
667
|
/* ********************************* */
|
|
719
668
|
|
|
720
|
-
.umap-
|
|
669
|
+
.umap-edit-tilelayers li {
|
|
721
670
|
border: 1px solid rgb(116, 116, 116);
|
|
722
671
|
border-radius: 4px 4px 4px 4px;
|
|
723
672
|
margin-bottom: 14px;
|
|
@@ -729,7 +678,7 @@ a.umap-control-caption,
|
|
|
729
678
|
margin-left: auto;
|
|
730
679
|
margin-right: auto;
|
|
731
680
|
}
|
|
732
|
-
.umap-
|
|
681
|
+
.umap-edit-tilelayers li div {
|
|
733
682
|
background-color: rgb(116, 116, 116);
|
|
734
683
|
bottom: 0;
|
|
735
684
|
color: rgb(247, 246, 241);
|
|
@@ -741,8 +690,8 @@ a.umap-control-caption,
|
|
|
741
690
|
width: 100%;
|
|
742
691
|
text-align: center;
|
|
743
692
|
}
|
|
744
|
-
.umap-
|
|
745
|
-
.umap-
|
|
693
|
+
.umap-edit-tilelayers li:hover div:before,
|
|
694
|
+
.umap-edit-tilelayers .selected div:before {
|
|
746
695
|
content: "✓";
|
|
747
696
|
font-size: 1.3em;
|
|
748
697
|
line-height: 56px;
|
|
@@ -750,7 +699,7 @@ a.umap-control-caption,
|
|
|
750
699
|
position: absolute;
|
|
751
700
|
inset-inline-start: 7px;
|
|
752
701
|
}
|
|
753
|
-
.umap-
|
|
702
|
+
.umap-edit-tilelayers li img {
|
|
754
703
|
display: block;
|
|
755
704
|
max-width: 100%;
|
|
756
705
|
}
|
umap/static/umap/nav.css
CHANGED
|
@@ -27,6 +27,10 @@ footer a.branding {
|
|
|
27
27
|
font-weight: bold;
|
|
28
28
|
padding-inline-start: 70px;
|
|
29
29
|
display: inline-block;
|
|
30
|
+
text-decoration: none;
|
|
31
|
+
}
|
|
32
|
+
footer a.branding:hover {
|
|
33
|
+
text-decoration: underline;
|
|
30
34
|
}
|
|
31
35
|
html[dir="rtl"] footer a.branding {
|
|
32
36
|
background-position: right center;
|