umap-project 2.7.0b3__py3-none-any.whl → 2.7.2__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.
- umap/__init__.py +1 -1
- umap/asgi.py +15 -0
- umap/locale/es/LC_MESSAGES/django.mo +0 -0
- umap/locale/es/LC_MESSAGES/django.po +134 -128
- umap/models.py +2 -1
- umap/settings/base.py +1 -1
- umap/static/umap/css/importers.css +4 -0
- umap/static/umap/img/16.svg +1 -184
- umap/static/umap/img/24-white.svg +1 -0
- umap/static/umap/img/24.svg +1 -0
- umap/static/umap/img/importers/cadastrefr.svg +23 -0
- umap/static/umap/img/source/16.svg +753 -200
- umap/static/umap/img/source/24-white.svg +3 -2
- umap/static/umap/img/source/24.svg +3 -2
- umap/static/umap/js/modules/caption.js +10 -4
- umap/static/umap/js/modules/data/layer.js +26 -14
- umap/static/umap/js/modules/formatter.js +5 -1
- umap/static/umap/js/modules/importer.js +3 -0
- umap/static/umap/js/modules/importers/cadastrefr.js +62 -0
- umap/static/umap/js/modules/importers/communesfr.js +2 -2
- umap/static/umap/js/modules/rendering/layers/classified.js +1 -0
- umap/static/umap/js/modules/rendering/ui.js +3 -1
- umap/static/umap/js/modules/share.js +1 -3
- umap/static/umap/js/modules/slideshow.js +1 -1
- umap/static/umap/js/modules/sync/engine.js +14 -8
- umap/static/umap/js/modules/sync/hlc.js +3 -3
- umap/static/umap/js/modules/sync/updaters.js +14 -2
- umap/static/umap/js/modules/ui/panel.js +12 -1
- umap/static/umap/js/modules/utils.js +24 -4
- umap/static/umap/js/umap.controls.js +42 -11
- umap/static/umap/js/umap.core.js +1 -1
- umap/static/umap/js/umap.js +11 -11
- umap/static/umap/locale/ca.js +8 -4
- umap/static/umap/locale/ca.json +8 -4
- umap/static/umap/locale/en.js +2 -1
- umap/static/umap/locale/en.json +2 -1
- umap/static/umap/locale/es.js +330 -319
- umap/static/umap/locale/es.json +330 -319
- umap/static/umap/locale/fr.js +2 -1
- umap/static/umap/locale/fr.json +2 -1
- umap/static/umap/map.css +27 -7
- umap/static/umap/unittests/hlc.js +2 -0
- umap/static/umap/unittests/utils.js +24 -0
- umap/static/umap/vars.css +2 -1
- umap/static/umap/vendors/csv2geojson/csv2geojson.js +13 -8
- umap/tests/integration/test_caption.py +3 -3
- umap/tests/integration/test_edit_map.py +1 -1
- umap/tests/integration/test_import.py +33 -0
- {umap_project-2.7.0b3.dist-info → umap_project-2.7.2.dist-info}/METADATA +9 -6
- {umap_project-2.7.0b3.dist-info → umap_project-2.7.2.dist-info}/RECORD +53 -50
- {umap_project-2.7.0b3.dist-info → umap_project-2.7.2.dist-info}/WHEEL +0 -0
- {umap_project-2.7.0b3.dist-info → umap_project-2.7.2.dist-info}/entry_points.txt +0 -0
- {umap_project-2.7.0b3.dist-info → umap_project-2.7.2.dist-info}/licenses/LICENSE +0 -0
umap/static/umap/js/umap.js
CHANGED
|
@@ -224,8 +224,12 @@ U.Map = L.Map.extend({
|
|
|
224
224
|
},
|
|
225
225
|
|
|
226
226
|
render: function (fields) {
|
|
227
|
-
|
|
227
|
+
if (fields.includes('numberOfConnectedPeers')) {
|
|
228
|
+
this.renderEditToolbar()
|
|
229
|
+
this.propagate()
|
|
230
|
+
}
|
|
228
231
|
|
|
232
|
+
const impacts = U.Utils.getImpactsFromSchema(fields)
|
|
229
233
|
for (const impact of impacts) {
|
|
230
234
|
switch (impact) {
|
|
231
235
|
case 'ui':
|
|
@@ -559,7 +563,7 @@ U.Map = L.Map.extend({
|
|
|
559
563
|
if (this.importer.dialog.visible) {
|
|
560
564
|
this.importer.dialog.close()
|
|
561
565
|
} else if (this.editEnabled && this.editTools.drawing()) {
|
|
562
|
-
this.editTools.
|
|
566
|
+
this.editTools.onEscape()
|
|
563
567
|
} else if (this.measureTools.enabled()) {
|
|
564
568
|
this.measureTools.stopDrawing()
|
|
565
569
|
} else if (this.fullPanel?.isOpen()) {
|
|
@@ -1049,7 +1053,6 @@ U.Map = L.Map.extend({
|
|
|
1049
1053
|
return
|
|
1050
1054
|
}
|
|
1051
1055
|
this.options.user = data.user
|
|
1052
|
-
this.renderEditToolbar()
|
|
1053
1056
|
if (!this.options.umap_id) {
|
|
1054
1057
|
this.options.umap_id = data.id
|
|
1055
1058
|
this.permissions.setOptions(data.permissions)
|
|
@@ -1087,7 +1090,6 @@ U.Map = L.Map.extend({
|
|
|
1087
1090
|
} else {
|
|
1088
1091
|
window.location = data.url
|
|
1089
1092
|
}
|
|
1090
|
-
this.propagate()
|
|
1091
1093
|
return true
|
|
1092
1094
|
},
|
|
1093
1095
|
|
|
@@ -1106,7 +1108,10 @@ U.Map = L.Map.extend({
|
|
|
1106
1108
|
if (datalayer.isDirty) await datalayer.save()
|
|
1107
1109
|
}
|
|
1108
1110
|
this.isDirty = false
|
|
1109
|
-
|
|
1111
|
+
// Do a blind render for now, as we are not sure what could
|
|
1112
|
+
// have changed, we'll be more subtil when we'll remove the
|
|
1113
|
+
// save action
|
|
1114
|
+
this.render(['name', 'user', 'permissions'])
|
|
1110
1115
|
this.fire('saved')
|
|
1111
1116
|
},
|
|
1112
1117
|
|
|
@@ -1594,7 +1599,7 @@ U.Map = L.Map.extend({
|
|
|
1594
1599
|
'umap-caption-bar',
|
|
1595
1600
|
this._controlContainer
|
|
1596
1601
|
)
|
|
1597
|
-
const name = L.DomUtil.create('h3', '', container)
|
|
1602
|
+
const name = L.DomUtil.create('h3', 'map-name', container)
|
|
1598
1603
|
L.DomEvent.disableClickPropagation(container)
|
|
1599
1604
|
this.addAuthorLink('span', container)
|
|
1600
1605
|
if (this.getOption('captionMenus')) {
|
|
@@ -1620,11 +1625,6 @@ U.Map = L.Map.extend({
|
|
|
1620
1625
|
)
|
|
1621
1626
|
}
|
|
1622
1627
|
}
|
|
1623
|
-
const setName = function () {
|
|
1624
|
-
name.textContent = this.getDisplayName()
|
|
1625
|
-
}
|
|
1626
|
-
L.bind(setName, this)()
|
|
1627
|
-
this.on('postsync', L.bind(setName, this))
|
|
1628
1628
|
this.onceDatalayersLoaded(function () {
|
|
1629
1629
|
this.slideshow.renderToolbox(container)
|
|
1630
1630
|
})
|
umap/static/umap/locale/ca.js
CHANGED
|
@@ -102,7 +102,7 @@ const locale = {
|
|
|
102
102
|
"Define link to open in a new window on polygon click.": "Define link to open in a new window on polygon click.",
|
|
103
103
|
"define": "definir",
|
|
104
104
|
"Delay between two transitions when in play mode": "Delay between two transitions when in play mode",
|
|
105
|
-
"Delete layer": "
|
|
105
|
+
"Delete layer": "Suprimeix la capa",
|
|
106
106
|
"Delete this feature": "Suprimeix aquesta característica",
|
|
107
107
|
"Delete this shape": "Delete this shape",
|
|
108
108
|
"Delete this vertex (Alt+Click)": "Delete this vertex (Alt+Click)",
|
|
@@ -456,8 +456,8 @@ const locale = {
|
|
|
456
456
|
"key=value or key!=value": "key=value or key!=value",
|
|
457
457
|
"Are you sure you want to delete this rule?": "Are you sure you want to delete this rule?",
|
|
458
458
|
"empty rule": "empty rule",
|
|
459
|
-
"Conditional style rules": "
|
|
460
|
-
"Add rule": "
|
|
459
|
+
"Conditional style rules": "Regles d'estil condicional",
|
|
460
|
+
"Add rule": "Afegeix una regla",
|
|
461
461
|
"Browser: data": "Navegador: dades",
|
|
462
462
|
"Browser: layers": "Navegador: capes",
|
|
463
463
|
"Browser: filters": "Navegador: filtres",
|
|
@@ -513,7 +513,11 @@ const locale = {
|
|
|
513
513
|
"Type new owner's username": "Type new owner's username",
|
|
514
514
|
"Type editor's username": "Type editor's username",
|
|
515
515
|
"Map": "Map",
|
|
516
|
-
"Manage collaborators": "Manage collaborators"
|
|
516
|
+
"Manage collaborators": "Manage collaborators",
|
|
517
|
+
"show/hide all layers": "show/hide all layers",
|
|
518
|
+
"zoom to data extent": "zoom to data extent",
|
|
519
|
+
"download visible data": "download visible data",
|
|
520
|
+
"{connectedPeers} peer(s) currently connected to this map": "{connectedPeers} peer(s) currently connected to this map"
|
|
517
521
|
}
|
|
518
522
|
L.registerLocale("ca", locale)
|
|
519
523
|
L.setLocale("ca")
|
umap/static/umap/locale/ca.json
CHANGED
|
@@ -102,7 +102,7 @@
|
|
|
102
102
|
"Define link to open in a new window on polygon click.": "Define link to open in a new window on polygon click.",
|
|
103
103
|
"define": "definir",
|
|
104
104
|
"Delay between two transitions when in play mode": "Delay between two transitions when in play mode",
|
|
105
|
-
"Delete layer": "
|
|
105
|
+
"Delete layer": "Suprimeix la capa",
|
|
106
106
|
"Delete this feature": "Suprimeix aquesta característica",
|
|
107
107
|
"Delete this shape": "Delete this shape",
|
|
108
108
|
"Delete this vertex (Alt+Click)": "Delete this vertex (Alt+Click)",
|
|
@@ -456,8 +456,8 @@
|
|
|
456
456
|
"key=value or key!=value": "key=value or key!=value",
|
|
457
457
|
"Are you sure you want to delete this rule?": "Are you sure you want to delete this rule?",
|
|
458
458
|
"empty rule": "empty rule",
|
|
459
|
-
"Conditional style rules": "
|
|
460
|
-
"Add rule": "
|
|
459
|
+
"Conditional style rules": "Regles d'estil condicional",
|
|
460
|
+
"Add rule": "Afegeix una regla",
|
|
461
461
|
"Browser: data": "Navegador: dades",
|
|
462
462
|
"Browser: layers": "Navegador: capes",
|
|
463
463
|
"Browser: filters": "Navegador: filtres",
|
|
@@ -513,5 +513,9 @@
|
|
|
513
513
|
"Type new owner's username": "Type new owner's username",
|
|
514
514
|
"Type editor's username": "Type editor's username",
|
|
515
515
|
"Map": "Map",
|
|
516
|
-
"Manage collaborators": "Manage collaborators"
|
|
516
|
+
"Manage collaborators": "Manage collaborators",
|
|
517
|
+
"show/hide all layers": "show/hide all layers",
|
|
518
|
+
"zoom to data extent": "zoom to data extent",
|
|
519
|
+
"download visible data": "download visible data",
|
|
520
|
+
"{connectedPeers} peer(s) currently connected to this map": "{connectedPeers} peer(s) currently connected to this map"
|
|
517
521
|
}
|
umap/static/umap/locale/en.js
CHANGED
|
@@ -516,7 +516,8 @@ const locale = {
|
|
|
516
516
|
"Manage collaborators": "Manage collaborators",
|
|
517
517
|
"show/hide all layers": "show/hide all layers",
|
|
518
518
|
"zoom to data extent": "zoom to data extent",
|
|
519
|
-
"download visible data": "download visible data"
|
|
519
|
+
"download visible data": "download visible data",
|
|
520
|
+
"{connectedPeers} peer(s) currently connected to this map": "{connectedPeers} peer(s) currently connected to this map"
|
|
520
521
|
}
|
|
521
522
|
L.registerLocale("en", locale)
|
|
522
523
|
L.setLocale("en")
|
umap/static/umap/locale/en.json
CHANGED
|
@@ -516,5 +516,6 @@
|
|
|
516
516
|
"Manage collaborators": "Manage collaborators",
|
|
517
517
|
"show/hide all layers": "show/hide all layers",
|
|
518
518
|
"zoom to data extent": "zoom to data extent",
|
|
519
|
-
"download visible data": "download visible data"
|
|
519
|
+
"download visible data": "download visible data",
|
|
520
|
+
"{connectedPeers} peer(s) currently connected to this map": "{connectedPeers} peer(s) currently connected to this map"
|
|
520
521
|
}
|