umap-project 2.0.0a3__py3-none-any.whl → 2.0.3__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/locale/en/LC_MESSAGES/django.po +33 -28
- umap/locale/fr/LC_MESSAGES/django.mo +0 -0
- umap/locale/fr/LC_MESSAGES/django.po +33 -28
- umap/locale/hu/LC_MESSAGES/django.mo +0 -0
- umap/locale/hu/LC_MESSAGES/django.po +48 -43
- umap/locale/it/LC_MESSAGES/django.mo +0 -0
- umap/locale/it/LC_MESSAGES/django.po +20 -20
- umap/locale/ms/LC_MESSAGES/django.mo +0 -0
- umap/locale/ms/LC_MESSAGES/django.po +20 -20
- umap/locale/zh_TW/LC_MESSAGES/django.mo +0 -0
- umap/locale/zh_TW/LC_MESSAGES/django.po +12 -12
- umap/management/commands/import_pictograms.py +1 -1
- umap/settings/base.py +2 -2
- umap/static/umap/base.css +6 -6
- umap/static/umap/content.css +14 -14
- umap/static/umap/js/umap.forms.js +2 -2
- umap/static/umap/js/umap.js +18 -27
- umap/static/umap/js/umap.popup.js +1 -1
- umap/static/umap/js/umap.share.js +2 -0
- umap/static/umap/locale/hu.js +8 -1
- umap/static/umap/locale/hu.json +8 -1
- umap/static/umap/locale/it.js +37 -30
- umap/static/umap/locale/it.json +37 -30
- umap/static/umap/locale/ms.js +28 -21
- umap/static/umap/locale/ms.json +28 -21
- umap/static/umap/locale/zh_TW.js +8 -1
- umap/static/umap/locale/zh_TW.json +8 -1
- umap/static/umap/map.css +9 -9
- umap/static/umap/nav.css +1 -1
- umap/static/umap/test/index.html +16 -13
- umap/static/umap/vars.css +13 -0
- umap/storage.py +3 -2
- umap/templates/registration/login.html +40 -40
- umap/templates/umap/css.html +1 -1
- umap/templates/umap/js.html +26 -15
- umap/templates/umap/map_detail.html +5 -7
- umap/templates/umap/map_fragment.html +1 -1
- umap/templates/umap/map_init.html +10 -3
- umap/templates/umap/map_table.html +18 -17
- umap/templates/umap/user_dashboard.html +8 -9
- umap/tests/conftest.py +0 -2
- umap/tests/integration/test_anonymous_owned_map.py +50 -1
- umap/tests/integration/test_collaborative_editing.py +57 -1
- umap/tests/integration/test_dashboard.py +13 -0
- umap/tests/integration/test_map_preview.py +8 -0
- umap/tests/integration/test_querystring.py +14 -0
- umap/tests/integration/test_share.py +19 -1
- umap/tests/integration/test_star.py +27 -0
- umap/tests/integration/test_statics.py +6 -3
- umap/tests/settings.py +1 -1
- umap/tests/test_map_views.py +3 -3
- umap/urls.py +1 -1
- umap/views.py +16 -10
- {umap_project-2.0.0a3.dist-info → umap_project-2.0.3.dist-info}/METADATA +4 -4
- {umap_project-2.0.0a3.dist-info → umap_project-2.0.3.dist-info}/RECORD +59 -58
- umap/templates/umap/map_messages.html +0 -12
- {umap_project-2.0.0a3.dist-info → umap_project-2.0.3.dist-info}/WHEEL +0 -0
- {umap_project-2.0.0a3.dist-info → umap_project-2.0.3.dist-info}/entry_points.txt +0 -0
- {umap_project-2.0.0a3.dist-info → umap_project-2.0.3.dist-info}/licenses/LICENSE +0 -0
umap/static/umap/locale/hu.js
CHANGED
|
@@ -431,7 +431,14 @@ const locale = {
|
|
|
431
431
|
"Type a place name or coordinates": "Helynév vagy koordináták megadása",
|
|
432
432
|
"copy": "másolás",
|
|
433
433
|
"full backup": "teljes biztonsági másolat",
|
|
434
|
-
"settings": "beállítások"
|
|
434
|
+
"settings": "beállítások",
|
|
435
|
+
"Action not allowed :(": "Nem engedélyezett művelet :(",
|
|
436
|
+
"Bring feature to center": "Objektum középre hozása",
|
|
437
|
+
"Current map view": "Jelenlegi térképnézet",
|
|
438
|
+
"Features in this layer: {count}": "Objektumok ezen a rétegen: {count}",
|
|
439
|
+
"Filter": "Szűrő",
|
|
440
|
+
"Problem in the response": "Hiba a válaszban",
|
|
441
|
+
"Recent": "Legutóbbi"
|
|
435
442
|
}
|
|
436
443
|
L.registerLocale("hu", locale)
|
|
437
444
|
L.setLocale("hu")
|
umap/static/umap/locale/hu.json
CHANGED
|
@@ -431,5 +431,12 @@
|
|
|
431
431
|
"Type a place name or coordinates": "Helynév vagy koordináták megadása",
|
|
432
432
|
"copy": "másolás",
|
|
433
433
|
"full backup": "teljes biztonsági másolat",
|
|
434
|
-
"settings": "beállítások"
|
|
434
|
+
"settings": "beállítások",
|
|
435
|
+
"Action not allowed :(": "Nem engedélyezett művelet :(",
|
|
436
|
+
"Bring feature to center": "Objektum középre hozása",
|
|
437
|
+
"Current map view": "Jelenlegi térképnézet",
|
|
438
|
+
"Features in this layer: {count}": "Objektumok ezen a rétegen: {count}",
|
|
439
|
+
"Filter": "Szűrő",
|
|
440
|
+
"Problem in the response": "Hiba a válaszban",
|
|
441
|
+
"Recent": "Legutóbbi"
|
|
435
442
|
}
|
umap/static/umap/locale/it.js
CHANGED
|
@@ -399,39 +399,46 @@ const locale = {
|
|
|
399
399
|
"Number of desired classes (default 5)": "Numero di classi desiderate (default 5)",
|
|
400
400
|
"Quantiles": "Quantili",
|
|
401
401
|
"Show this layer in the caption": "Mostra questo livello nella didascalia",
|
|
402
|
-
"Back to preview": "
|
|
403
|
-
"Drawing": "
|
|
404
|
-
"Edit the title of the map": "
|
|
405
|
-
"Go to the homepage": "
|
|
406
|
-
"Switch to edit mode": "
|
|
407
|
-
"Update who can see and edit the map": "
|
|
408
|
-
"View": "
|
|
409
|
-
"Add image URL": "
|
|
410
|
-
"Emoji & Character": "Emoji &
|
|
411
|
-
"Generic": "
|
|
412
|
-
"Symbol": "
|
|
413
|
-
"Type char or paste emoji": "
|
|
402
|
+
"Back to preview": "Torna all’anteprima",
|
|
403
|
+
"Drawing": "Disegno",
|
|
404
|
+
"Edit the title of the map": "Modifica il titolo della mappa",
|
|
405
|
+
"Go to the homepage": "Vai all’homepage",
|
|
406
|
+
"Switch to edit mode": "Passa alla modalità modifica",
|
|
407
|
+
"Update who can see and edit the map": "Cambia chi può vedere e modificare la mappa",
|
|
408
|
+
"View": "Vedi",
|
|
409
|
+
"Add image URL": "Aggiungi URL immagine",
|
|
410
|
+
"Emoji & Character": "Emoji & caratteri",
|
|
411
|
+
"Generic": "Generico",
|
|
412
|
+
"Symbol": "Simbolo",
|
|
413
|
+
"Type char or paste emoji": "Inserisci carattere o incolla emoji",
|
|
414
414
|
"URL": "URL",
|
|
415
|
-
"If false, the polygon or line will act as a part of the underlying map.": "
|
|
416
|
-
"Save map": "
|
|
417
|
-
"Toggle edit mode": "
|
|
418
|
-
"All data and settings of the map": "
|
|
419
|
-
"Embed and link options": "
|
|
420
|
-
"Go to \"{coords}\"": "
|
|
421
|
-
"Link to view the map": "
|
|
415
|
+
"If false, the polygon or line will act as a part of the underlying map.": "Se falso, il poligono o la linea si comporterà come parte della mappa sottostante.",
|
|
416
|
+
"Save map": "Salva mappa",
|
|
417
|
+
"Toggle edit mode": "Commuta modalità di modifica",
|
|
418
|
+
"All data and settings of the map": "Tutti i dati e le impostazioni della mappa",
|
|
419
|
+
"Embed and link options": "Opzioni di inclusione e collegamento",
|
|
420
|
+
"Go to \"{coords}\"": "Vai a “{coords}”",
|
|
421
|
+
"Link to view the map": "Collega per vedere la mappa",
|
|
422
422
|
"No.": "No.",
|
|
423
|
-
"Only visible layers' data": "
|
|
424
|
-
"Open share & download panel": "
|
|
423
|
+
"Only visible layers' data": "Solo i dati dei livelli visibili",
|
|
424
|
+
"Open share & download panel": "Apri pannello di condivisione & scarico",
|
|
425
425
|
"OpenStreetMap": "OpenStreetMap",
|
|
426
|
-
"See on OpenStreetMap": "
|
|
427
|
-
"Share and download": "
|
|
428
|
-
"Share this link to open a customized map view": "
|
|
429
|
-
"Short link": "
|
|
430
|
-
"Street": "
|
|
431
|
-
"Type a place name or coordinates": "
|
|
432
|
-
"copy": "
|
|
433
|
-
"full backup": "
|
|
434
|
-
"settings": "
|
|
426
|
+
"See on OpenStreetMap": "Vedi su OpenStreetMap",
|
|
427
|
+
"Share and download": "Condividi e scarica",
|
|
428
|
+
"Share this link to open a customized map view": "Condividi questo link per aprire una vista personalizzata della mappa",
|
|
429
|
+
"Short link": "Collegamento corto",
|
|
430
|
+
"Street": "Strada",
|
|
431
|
+
"Type a place name or coordinates": "Inserisci il nome di un luogo o delle coordinate",
|
|
432
|
+
"copy": "copia",
|
|
433
|
+
"full backup": "backup completo",
|
|
434
|
+
"settings": "impostazioni",
|
|
435
|
+
"Action not allowed :(": "Azione non permessa :(",
|
|
436
|
+
"Bring feature to center": "Sposta l’oggetto al centro",
|
|
437
|
+
"Current map view": "Vista della mappa corrente",
|
|
438
|
+
"Features in this layer: {count}": "Oggetti in questo livello: {count}",
|
|
439
|
+
"Filter": "Filtro",
|
|
440
|
+
"Problem in the response": "Problema nella risposta",
|
|
441
|
+
"Recent": "Recente"
|
|
435
442
|
}
|
|
436
443
|
L.registerLocale("it", locale)
|
|
437
444
|
L.setLocale("it")
|
umap/static/umap/locale/it.json
CHANGED
|
@@ -399,37 +399,44 @@
|
|
|
399
399
|
"Number of desired classes (default 5)": "Numero di classi desiderate (default 5)",
|
|
400
400
|
"Quantiles": "Quantili",
|
|
401
401
|
"Show this layer in the caption": "Mostra questo livello nella didascalia",
|
|
402
|
-
"Back to preview": "
|
|
403
|
-
"Drawing": "
|
|
404
|
-
"Edit the title of the map": "
|
|
405
|
-
"Go to the homepage": "
|
|
406
|
-
"Switch to edit mode": "
|
|
407
|
-
"Update who can see and edit the map": "
|
|
408
|
-
"View": "
|
|
409
|
-
"Add image URL": "
|
|
410
|
-
"Emoji & Character": "Emoji &
|
|
411
|
-
"Generic": "
|
|
412
|
-
"Symbol": "
|
|
413
|
-
"Type char or paste emoji": "
|
|
402
|
+
"Back to preview": "Torna all’anteprima",
|
|
403
|
+
"Drawing": "Disegno",
|
|
404
|
+
"Edit the title of the map": "Modifica il titolo della mappa",
|
|
405
|
+
"Go to the homepage": "Vai all’homepage",
|
|
406
|
+
"Switch to edit mode": "Passa alla modalità modifica",
|
|
407
|
+
"Update who can see and edit the map": "Cambia chi può vedere e modificare la mappa",
|
|
408
|
+
"View": "Vedi",
|
|
409
|
+
"Add image URL": "Aggiungi URL immagine",
|
|
410
|
+
"Emoji & Character": "Emoji & caratteri",
|
|
411
|
+
"Generic": "Generico",
|
|
412
|
+
"Symbol": "Simbolo",
|
|
413
|
+
"Type char or paste emoji": "Inserisci carattere o incolla emoji",
|
|
414
414
|
"URL": "URL",
|
|
415
|
-
"If false, the polygon or line will act as a part of the underlying map.": "
|
|
416
|
-
"Save map": "
|
|
417
|
-
"Toggle edit mode": "
|
|
418
|
-
"All data and settings of the map": "
|
|
419
|
-
"Embed and link options": "
|
|
420
|
-
"Go to \"{coords}\"": "
|
|
421
|
-
"Link to view the map": "
|
|
415
|
+
"If false, the polygon or line will act as a part of the underlying map.": "Se falso, il poligono o la linea si comporterà come parte della mappa sottostante.",
|
|
416
|
+
"Save map": "Salva mappa",
|
|
417
|
+
"Toggle edit mode": "Commuta modalità di modifica",
|
|
418
|
+
"All data and settings of the map": "Tutti i dati e le impostazioni della mappa",
|
|
419
|
+
"Embed and link options": "Opzioni di inclusione e collegamento",
|
|
420
|
+
"Go to \"{coords}\"": "Vai a “{coords}”",
|
|
421
|
+
"Link to view the map": "Collega per vedere la mappa",
|
|
422
422
|
"No.": "No.",
|
|
423
|
-
"Only visible layers' data": "
|
|
424
|
-
"Open share & download panel": "
|
|
423
|
+
"Only visible layers' data": "Solo i dati dei livelli visibili",
|
|
424
|
+
"Open share & download panel": "Apri pannello di condivisione & scarico",
|
|
425
425
|
"OpenStreetMap": "OpenStreetMap",
|
|
426
|
-
"See on OpenStreetMap": "
|
|
427
|
-
"Share and download": "
|
|
428
|
-
"Share this link to open a customized map view": "
|
|
429
|
-
"Short link": "
|
|
430
|
-
"Street": "
|
|
431
|
-
"Type a place name or coordinates": "
|
|
432
|
-
"copy": "
|
|
433
|
-
"full backup": "
|
|
434
|
-
"settings": "
|
|
426
|
+
"See on OpenStreetMap": "Vedi su OpenStreetMap",
|
|
427
|
+
"Share and download": "Condividi e scarica",
|
|
428
|
+
"Share this link to open a customized map view": "Condividi questo link per aprire una vista personalizzata della mappa",
|
|
429
|
+
"Short link": "Collegamento corto",
|
|
430
|
+
"Street": "Strada",
|
|
431
|
+
"Type a place name or coordinates": "Inserisci il nome di un luogo o delle coordinate",
|
|
432
|
+
"copy": "copia",
|
|
433
|
+
"full backup": "backup completo",
|
|
434
|
+
"settings": "impostazioni",
|
|
435
|
+
"Action not allowed :(": "Azione non permessa :(",
|
|
436
|
+
"Bring feature to center": "Sposta l’oggetto al centro",
|
|
437
|
+
"Current map view": "Vista della mappa corrente",
|
|
438
|
+
"Features in this layer: {count}": "Oggetti in questo livello: {count}",
|
|
439
|
+
"Filter": "Filtro",
|
|
440
|
+
"Problem in the response": "Problema nella risposta",
|
|
441
|
+
"Recent": "Recente"
|
|
435
442
|
}
|
umap/static/umap/locale/ms.js
CHANGED
|
@@ -123,7 +123,7 @@ const locale = {
|
|
|
123
123
|
"Continue line (Ctrl+Click)": "Garis sambung (Ctrl+Klik)",
|
|
124
124
|
"Coordinates": "Koordinat",
|
|
125
125
|
"Credits": "Penghargaan",
|
|
126
|
-
"Current view instead of default map view?": "
|
|
126
|
+
"Current view instead of default map view?": "Paparan semasa menggantikan paparan peta lalai?",
|
|
127
127
|
"Custom background": "Latar belakang tersuai",
|
|
128
128
|
"Data is browsable": "Data boleh layar",
|
|
129
129
|
"Default interaction options": "Pilihan interaksi lalai",
|
|
@@ -158,7 +158,7 @@ const locale = {
|
|
|
158
158
|
"Error in the tilelayer URL": "Ralat dalam URL lapisan jubin",
|
|
159
159
|
"Exit Fullscreen": "Keluar Skrin Penuh",
|
|
160
160
|
"Extract shape to separate feature": "Sarikan bentuk untuk memisahkan sifat",
|
|
161
|
-
"Fetch data each time map view changes.": "Ambil data setiap kali
|
|
161
|
+
"Fetch data each time map view changes.": "Ambil data setiap kali paparan peta berubah.",
|
|
162
162
|
"Filter keys": "Kekunci tapisan",
|
|
163
163
|
"Format": "Format",
|
|
164
164
|
"From zoom": "Dari zum",
|
|
@@ -232,7 +232,7 @@ const locale = {
|
|
|
232
232
|
"See all": "Lihat semua",
|
|
233
233
|
"See data layers": "Lihat lapisan data",
|
|
234
234
|
"See full screen": "Lihat skrin penuh",
|
|
235
|
-
"Set it to false to hide this layer from the slideshow, the data browser, the popup navigation…": "Tetapkan ke
|
|
235
|
+
"Set it to false to hide this layer from the slideshow, the data browser, the popup navigation…": "Tetapkan ke 'false' untuk menyembunyikan lapisan ini daripada persembahan slaid, pelayar data, navigasi timbul…",
|
|
236
236
|
"Shape properties": "Ciri-ciri bentuk",
|
|
237
237
|
"Short credits": "Penghargaan pendek",
|
|
238
238
|
"Show/hide layer": "Tunjuk/sembunyi lapisan",
|
|
@@ -412,26 +412,33 @@ const locale = {
|
|
|
412
412
|
"Symbol": "Simbol",
|
|
413
413
|
"Type char or paste emoji": "Taip aksara atau tampal emoji",
|
|
414
414
|
"URL": "URL",
|
|
415
|
-
"If false, the polygon or line will act as a part of the underlying map.": "
|
|
416
|
-
"Save map": "
|
|
417
|
-
"Toggle edit mode": "
|
|
418
|
-
"All data and settings of the map": "
|
|
419
|
-
"Embed and link options": "
|
|
420
|
-
"Go to \"{coords}\"": "
|
|
421
|
-
"Link to view the map": "
|
|
415
|
+
"If false, the polygon or line will act as a part of the underlying map.": "Jika tetapkan ke 'false', poligon atau garisan akan bertindak sebagai sebahagian daripada peta di bawah.",
|
|
416
|
+
"Save map": "Simpan peta",
|
|
417
|
+
"Toggle edit mode": "Togol mod suntingan",
|
|
418
|
+
"All data and settings of the map": "Semua data dan tetapan peta",
|
|
419
|
+
"Embed and link options": "Pilihan benaman dan pautan",
|
|
420
|
+
"Go to \"{coords}\"": "Pergi ke \"{coords}\"",
|
|
421
|
+
"Link to view the map": "Pautan untuk melihat peta",
|
|
422
422
|
"No.": "No.",
|
|
423
|
-
"Only visible layers' data": "
|
|
424
|
-
"Open share & download panel": "
|
|
423
|
+
"Only visible layers' data": "Data lapisan yang kelihatan sahaja",
|
|
424
|
+
"Open share & download panel": "Buka panel kongsi & muat turun",
|
|
425
425
|
"OpenStreetMap": "OpenStreetMap",
|
|
426
|
-
"See on OpenStreetMap": "
|
|
427
|
-
"Share and download": "
|
|
428
|
-
"Share this link to open a customized map view": "
|
|
429
|
-
"Short link": "
|
|
430
|
-
"Street": "
|
|
431
|
-
"Type a place name or coordinates": "
|
|
432
|
-
"copy": "
|
|
433
|
-
"full backup": "
|
|
434
|
-
"settings": "
|
|
426
|
+
"See on OpenStreetMap": "Lihat di OpenStreetMap",
|
|
427
|
+
"Share and download": "Kongsi dan muat turun",
|
|
428
|
+
"Share this link to open a customized map view": "Kongsi pautan ini untuk buka paparan peta tersuai",
|
|
429
|
+
"Short link": "Pautan pendek",
|
|
430
|
+
"Street": "Jalan",
|
|
431
|
+
"Type a place name or coordinates": "Taip koordinat atau nama tempat",
|
|
432
|
+
"copy": "salin",
|
|
433
|
+
"full backup": "sandaran penuh",
|
|
434
|
+
"settings": "tetapan",
|
|
435
|
+
"Action not allowed :(": "Tindakan tidak dibenarkan :(",
|
|
436
|
+
"Bring feature to center": "Bawa sifat ke tengah",
|
|
437
|
+
"Current map view": "Paparan peta semasa",
|
|
438
|
+
"Features in this layer: {count}": "Sifat dalam lapisan ini: {count}",
|
|
439
|
+
"Filter": "Tapis",
|
|
440
|
+
"Problem in the response": "Masalah dalam tindak balas",
|
|
441
|
+
"Recent": "Terbaru"
|
|
435
442
|
}
|
|
436
443
|
L.registerLocale("ms", locale)
|
|
437
444
|
L.setLocale("ms")
|
umap/static/umap/locale/ms.json
CHANGED
|
@@ -123,7 +123,7 @@
|
|
|
123
123
|
"Continue line (Ctrl+Click)": "Garis sambung (Ctrl+Klik)",
|
|
124
124
|
"Coordinates": "Koordinat",
|
|
125
125
|
"Credits": "Penghargaan",
|
|
126
|
-
"Current view instead of default map view?": "
|
|
126
|
+
"Current view instead of default map view?": "Paparan semasa menggantikan paparan peta lalai?",
|
|
127
127
|
"Custom background": "Latar belakang tersuai",
|
|
128
128
|
"Data is browsable": "Data boleh layar",
|
|
129
129
|
"Default interaction options": "Pilihan interaksi lalai",
|
|
@@ -158,7 +158,7 @@
|
|
|
158
158
|
"Error in the tilelayer URL": "Ralat dalam URL lapisan jubin",
|
|
159
159
|
"Exit Fullscreen": "Keluar Skrin Penuh",
|
|
160
160
|
"Extract shape to separate feature": "Sarikan bentuk untuk memisahkan sifat",
|
|
161
|
-
"Fetch data each time map view changes.": "Ambil data setiap kali
|
|
161
|
+
"Fetch data each time map view changes.": "Ambil data setiap kali paparan peta berubah.",
|
|
162
162
|
"Filter keys": "Kekunci tapisan",
|
|
163
163
|
"Format": "Format",
|
|
164
164
|
"From zoom": "Dari zum",
|
|
@@ -232,7 +232,7 @@
|
|
|
232
232
|
"See all": "Lihat semua",
|
|
233
233
|
"See data layers": "Lihat lapisan data",
|
|
234
234
|
"See full screen": "Lihat skrin penuh",
|
|
235
|
-
"Set it to false to hide this layer from the slideshow, the data browser, the popup navigation…": "Tetapkan ke
|
|
235
|
+
"Set it to false to hide this layer from the slideshow, the data browser, the popup navigation…": "Tetapkan ke 'false' untuk menyembunyikan lapisan ini daripada persembahan slaid, pelayar data, navigasi timbul…",
|
|
236
236
|
"Shape properties": "Ciri-ciri bentuk",
|
|
237
237
|
"Short credits": "Penghargaan pendek",
|
|
238
238
|
"Show/hide layer": "Tunjuk/sembunyi lapisan",
|
|
@@ -412,24 +412,31 @@
|
|
|
412
412
|
"Symbol": "Simbol",
|
|
413
413
|
"Type char or paste emoji": "Taip aksara atau tampal emoji",
|
|
414
414
|
"URL": "URL",
|
|
415
|
-
"If false, the polygon or line will act as a part of the underlying map.": "
|
|
416
|
-
"Save map": "
|
|
417
|
-
"Toggle edit mode": "
|
|
418
|
-
"All data and settings of the map": "
|
|
419
|
-
"Embed and link options": "
|
|
420
|
-
"Go to \"{coords}\"": "
|
|
421
|
-
"Link to view the map": "
|
|
415
|
+
"If false, the polygon or line will act as a part of the underlying map.": "Jika tetapkan ke 'false', poligon atau garisan akan bertindak sebagai sebahagian daripada peta di bawah.",
|
|
416
|
+
"Save map": "Simpan peta",
|
|
417
|
+
"Toggle edit mode": "Togol mod suntingan",
|
|
418
|
+
"All data and settings of the map": "Semua data dan tetapan peta",
|
|
419
|
+
"Embed and link options": "Pilihan benaman dan pautan",
|
|
420
|
+
"Go to \"{coords}\"": "Pergi ke \"{coords}\"",
|
|
421
|
+
"Link to view the map": "Pautan untuk melihat peta",
|
|
422
422
|
"No.": "No.",
|
|
423
|
-
"Only visible layers' data": "
|
|
424
|
-
"Open share & download panel": "
|
|
423
|
+
"Only visible layers' data": "Data lapisan yang kelihatan sahaja",
|
|
424
|
+
"Open share & download panel": "Buka panel kongsi & muat turun",
|
|
425
425
|
"OpenStreetMap": "OpenStreetMap",
|
|
426
|
-
"See on OpenStreetMap": "
|
|
427
|
-
"Share and download": "
|
|
428
|
-
"Share this link to open a customized map view": "
|
|
429
|
-
"Short link": "
|
|
430
|
-
"Street": "
|
|
431
|
-
"Type a place name or coordinates": "
|
|
432
|
-
"copy": "
|
|
433
|
-
"full backup": "
|
|
434
|
-
"settings": "
|
|
426
|
+
"See on OpenStreetMap": "Lihat di OpenStreetMap",
|
|
427
|
+
"Share and download": "Kongsi dan muat turun",
|
|
428
|
+
"Share this link to open a customized map view": "Kongsi pautan ini untuk buka paparan peta tersuai",
|
|
429
|
+
"Short link": "Pautan pendek",
|
|
430
|
+
"Street": "Jalan",
|
|
431
|
+
"Type a place name or coordinates": "Taip koordinat atau nama tempat",
|
|
432
|
+
"copy": "salin",
|
|
433
|
+
"full backup": "sandaran penuh",
|
|
434
|
+
"settings": "tetapan",
|
|
435
|
+
"Action not allowed :(": "Tindakan tidak dibenarkan :(",
|
|
436
|
+
"Bring feature to center": "Bawa sifat ke tengah",
|
|
437
|
+
"Current map view": "Paparan peta semasa",
|
|
438
|
+
"Features in this layer: {count}": "Sifat dalam lapisan ini: {count}",
|
|
439
|
+
"Filter": "Tapis",
|
|
440
|
+
"Problem in the response": "Masalah dalam tindak balas",
|
|
441
|
+
"Recent": "Terbaru"
|
|
435
442
|
}
|
umap/static/umap/locale/zh_TW.js
CHANGED
|
@@ -431,7 +431,14 @@ const locale = {
|
|
|
431
431
|
"Type a place name or coordinates": "輸入地點名稱或是座標",
|
|
432
432
|
"copy": "複製",
|
|
433
433
|
"full backup": " 完全備份",
|
|
434
|
-
"settings": "設定"
|
|
434
|
+
"settings": "設定",
|
|
435
|
+
"Action not allowed :(": "未被允許的動作 :(",
|
|
436
|
+
"Bring feature to center": "置中圖徵",
|
|
437
|
+
"Current map view": "目前地圖檢視",
|
|
438
|
+
"Features in this layer: {count}": "這個圖層的圖徵數:{count}",
|
|
439
|
+
"Filter": "篩選器",
|
|
440
|
+
"Problem in the response": "回應的問題",
|
|
441
|
+
"Recent": "目前"
|
|
435
442
|
}
|
|
436
443
|
L.registerLocale("zh_TW", locale)
|
|
437
444
|
L.setLocale("zh_TW")
|
|
@@ -431,5 +431,12 @@
|
|
|
431
431
|
"Type a place name or coordinates": "輸入地點名稱或是座標",
|
|
432
432
|
"copy": "複製",
|
|
433
433
|
"full backup": " 完全備份",
|
|
434
|
-
"settings": "設定"
|
|
434
|
+
"settings": "設定",
|
|
435
|
+
"Action not allowed :(": "未被允許的動作 :(",
|
|
436
|
+
"Bring feature to center": "置中圖徵",
|
|
437
|
+
"Current map view": "目前地圖檢視",
|
|
438
|
+
"Features in this layer: {count}": "這個圖層的圖徵數:{count}",
|
|
439
|
+
"Filter": "篩選器",
|
|
440
|
+
"Problem in the response": "回應的問題",
|
|
441
|
+
"Recent": "目前"
|
|
435
442
|
}
|
umap/static/umap/map.css
CHANGED
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
* Same as leaflet background, to work around screen blincking
|
|
14
14
|
* between DOM is loaded and JS is read to render the map.
|
|
15
15
|
*/
|
|
16
|
-
background-color:
|
|
16
|
+
background-color: var(--color-lightGray);
|
|
17
17
|
}
|
|
18
18
|
|
|
19
19
|
|
|
@@ -293,7 +293,7 @@ ul.photon-autocomplete {
|
|
|
293
293
|
margin-top: 0;
|
|
294
294
|
vertical-align: top;
|
|
295
295
|
border-bottom: none;
|
|
296
|
-
background-color:
|
|
296
|
+
background-color: var(--color-darkGray);
|
|
297
297
|
border-right: 1px solid #eee;
|
|
298
298
|
background-repeat: no-repeat;
|
|
299
299
|
background-image: url('./img/24.svg');
|
|
@@ -446,7 +446,7 @@ ul.photon-autocomplete {
|
|
|
446
446
|
max-width: 100vw;
|
|
447
447
|
padding: 40px 20px;
|
|
448
448
|
border: 1px solid #222;
|
|
449
|
-
background-color:
|
|
449
|
+
background-color: var(--color-darkGray);
|
|
450
450
|
color: #efefef;
|
|
451
451
|
font-size: 0.8em;
|
|
452
452
|
visibility: hidden;
|
|
@@ -464,7 +464,7 @@ ul.photon-autocomplete {
|
|
|
464
464
|
background-position: -4px -4px;
|
|
465
465
|
background-repeat: no-repeat;
|
|
466
466
|
background-image: url('./img/16.svg');
|
|
467
|
-
background-color:
|
|
467
|
+
background-color: var(--color-darkGray) !important;
|
|
468
468
|
vertical-align: middle;
|
|
469
469
|
text-indent: -9999px;
|
|
470
470
|
min-height: inherit;
|
|
@@ -518,7 +518,7 @@ ul.photon-autocomplete {
|
|
|
518
518
|
color: #fff;
|
|
519
519
|
font-size: 1.2em;
|
|
520
520
|
border: none;
|
|
521
|
-
background-color:
|
|
521
|
+
background-color: var(--color-darkGray);
|
|
522
522
|
width: auto;
|
|
523
523
|
margin-bottom: 0;
|
|
524
524
|
}
|
|
@@ -625,7 +625,7 @@ ul.photon-autocomplete {
|
|
|
625
625
|
left: 0;
|
|
626
626
|
right: 0;
|
|
627
627
|
height: 46px;
|
|
628
|
-
background-color:
|
|
628
|
+
background-color: var(--color-darkGray);
|
|
629
629
|
padding: 0 10px;
|
|
630
630
|
text-align: left;
|
|
631
631
|
line-height: 36px;
|
|
@@ -728,7 +728,7 @@ ul.photon-autocomplete {
|
|
|
728
728
|
text-align: left;
|
|
729
729
|
line-height: 46px;
|
|
730
730
|
cursor: auto;
|
|
731
|
-
border-top: 1px solid
|
|
731
|
+
border-top: 1px solid var(--color-lightGray);
|
|
732
732
|
opacity: 0.93;
|
|
733
733
|
z-index: 1000;
|
|
734
734
|
}
|
|
@@ -884,10 +884,10 @@ ul.photon-autocomplete {
|
|
|
884
884
|
}
|
|
885
885
|
.leaflet-inplace-toolbar a {
|
|
886
886
|
background-image: url('./img/16-white.svg');
|
|
887
|
-
background-color:
|
|
887
|
+
background-color: var(--color-darkGray)!important;
|
|
888
888
|
}
|
|
889
889
|
.leaflet-toolbar-tip {
|
|
890
|
-
background-color:
|
|
890
|
+
background-color: var(--color-darkGray);
|
|
891
891
|
}
|
|
892
892
|
.leaflet-inplace-toolbar a:hover {
|
|
893
893
|
background-color: #353c3e!important;
|
umap/static/umap/nav.css
CHANGED
umap/static/umap/test/index.html
CHANGED
|
@@ -62,6 +62,7 @@
|
|
|
62
62
|
<link rel="stylesheet" href="../vendors/locatecontrol/L.Control.Locate.min.css" />
|
|
63
63
|
<link rel="stylesheet" href="../vendors/iconlayers/iconLayers.css" />
|
|
64
64
|
|
|
65
|
+
<link rel="stylesheet" href="../../umap/vars.css" />
|
|
65
66
|
<link rel="stylesheet" href="../../umap/font.css" />
|
|
66
67
|
<link rel="stylesheet" href="../../umap/base.css" />
|
|
67
68
|
<link rel="stylesheet" href="../../umap/content.css" />
|
|
@@ -122,21 +123,23 @@
|
|
|
122
123
|
<div id="mocha"></div>
|
|
123
124
|
<div id="map"></div>
|
|
124
125
|
<script>
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
if (window.location.search.indexOf('debug') !== -1) {
|
|
131
|
-
runner.on('fail', function (test, err) {
|
|
132
|
-
console.log(test.title, test.err)
|
|
133
|
-
console.log(test.err.expected, test.err.actual)
|
|
134
|
-
console.log(test.err.stack)
|
|
126
|
+
window.addEventListener('DOMContentLoaded', () => {
|
|
127
|
+
var runner = (window.mochaPhantomJS || window.mocha).run(function (failures) {
|
|
128
|
+
if (window.location.search.indexOf('debug') === -1)
|
|
129
|
+
qs('#mocha').style.display = 'block'
|
|
130
|
+
console.log(failures)
|
|
135
131
|
})
|
|
136
|
-
|
|
137
|
-
|
|
132
|
+
if (window.location.search.indexOf('debug') !== -1) {
|
|
133
|
+
runner.on('fail', function (test, err) {
|
|
134
|
+
console.log(test.title, test.err)
|
|
135
|
+
console.log(test.err.expected, test.err.actual)
|
|
136
|
+
console.log(test.err.stack)
|
|
137
|
+
})
|
|
138
|
+
sinon.log = function (message) {
|
|
139
|
+
console.log(message)
|
|
140
|
+
}
|
|
138
141
|
}
|
|
139
|
-
}
|
|
142
|
+
})
|
|
140
143
|
</script>
|
|
141
144
|
</body>
|
|
142
145
|
</html>
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
:root {
|
|
2
|
+
/* Colors. */
|
|
3
|
+
--color-waterMint: #B9F5D2;
|
|
4
|
+
--color-darkBlue: #263B58;
|
|
5
|
+
--color-lightGray: #ddd;
|
|
6
|
+
--color-darkGray: #323737;
|
|
7
|
+
|
|
8
|
+
/* Buttons. */
|
|
9
|
+
--button-primary-background: var(--color-waterMint);
|
|
10
|
+
--button-primary-color: var(--color-darkBlue);
|
|
11
|
+
--button-neutral-background: var(--color-lightGray);
|
|
12
|
+
--button-neutral-color: var(--color-darkGray);
|
|
13
|
+
}
|
umap/storage.py
CHANGED
|
@@ -41,8 +41,9 @@ class UmapManifestStaticFilesStorage(ManifestStaticFilesStorage):
|
|
|
41
41
|
def post_process(self, paths, **options):
|
|
42
42
|
collected = super().post_process(paths, **options)
|
|
43
43
|
for original_path, processed_path, processed in collected:
|
|
44
|
-
if
|
|
45
|
-
print("
|
|
44
|
+
if isinstance(processed, Exception):
|
|
45
|
+
print("Error with file", original_path)
|
|
46
|
+
raise processed
|
|
46
47
|
if processed_path.endswith(".js"):
|
|
47
48
|
path = Path(settings.STATIC_ROOT) / processed_path
|
|
48
49
|
initial = path.read_text()
|
|
@@ -8,45 +8,45 @@
|
|
|
8
8
|
login
|
|
9
9
|
{% endblock body_class %}
|
|
10
10
|
{% block content %}
|
|
11
|
-
<section>
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
11
|
+
<section>
|
|
12
|
+
<header class="umap-nav">
|
|
13
|
+
{% include "umap/branding.html" %}
|
|
14
|
+
</header>
|
|
15
|
+
{% if ENABLE_ACCOUNT_LOGIN %}
|
|
16
|
+
<h2>{% trans "Please log in with your account" %}</h2>
|
|
17
|
+
<div>
|
|
18
|
+
{% if form.non_field_errors %}
|
|
19
|
+
<ul class="form-errors">
|
|
20
|
+
{% for error in form.non_field_errors %}<li>{{ error }}</li>{% endfor %}
|
|
21
|
+
</ul>
|
|
22
|
+
{% endif %}
|
|
23
|
+
<form id="login_form" action="{% url "login" %}" method="post">
|
|
24
|
+
{% csrf_token %}
|
|
25
|
+
{{ form.username.errors }}
|
|
26
|
+
<input type="text"
|
|
27
|
+
name="username"
|
|
28
|
+
placeholder="{% trans "Username" %}"
|
|
29
|
+
autofocus />
|
|
30
|
+
{{ form.password.errors }}
|
|
31
|
+
<input type="password" name="password" placeholder="{% trans "Password" %}" />
|
|
32
|
+
<input type="submit" value="{% trans "Login" %}" />
|
|
33
|
+
</form>
|
|
34
|
+
</div>
|
|
35
|
+
{% endif %}
|
|
36
|
+
{% if backends.backends|length %}
|
|
37
|
+
<h2>{% trans "Please choose a provider" %}</h2>
|
|
38
|
+
<div>
|
|
39
|
+
<ul class="login-grid block-grid">
|
|
40
|
+
{% for name in backends.backends %}
|
|
41
|
+
<li>
|
|
42
|
+
<a rel="nofollow"
|
|
43
|
+
href="{% url "social:begin" name %}"
|
|
44
|
+
class="umap-login-popup login-{{ name }}"
|
|
45
|
+
title="{{ name|title }}"></a>
|
|
46
|
+
</li>
|
|
47
|
+
{% endfor %}
|
|
21
48
|
</ul>
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
{{ form.username.errors }}
|
|
26
|
-
<input type="text"
|
|
27
|
-
name="username"
|
|
28
|
-
placeholder="{% trans "Username" %}"
|
|
29
|
-
autofocus />
|
|
30
|
-
{{ form.password.errors }}
|
|
31
|
-
<input type="password" name="password" placeholder="{% trans "Password" %}" />
|
|
32
|
-
<input type="submit" value="{% trans "Login" %}" />
|
|
33
|
-
</form>
|
|
34
|
-
</div>
|
|
35
|
-
{% endif %}
|
|
36
|
-
{% if backends.backends|length %}
|
|
37
|
-
<h2>{% trans "Please choose a provider" %}</h2>
|
|
38
|
-
<div>
|
|
39
|
-
<ul class="login-grid block-grid">
|
|
40
|
-
{% for name in backends.backends %}
|
|
41
|
-
<li>
|
|
42
|
-
<a rel="nofollow"
|
|
43
|
-
href="{% url "social:begin" name %}"
|
|
44
|
-
class="umap-login-popup login-{{ name }}"
|
|
45
|
-
title="{{ name|title }}"></a>
|
|
46
|
-
</li>
|
|
47
|
-
{% endfor %}
|
|
48
|
-
</ul>
|
|
49
|
-
</div>
|
|
50
|
-
{% endif %}
|
|
51
|
-
</section>
|
|
49
|
+
</div>
|
|
50
|
+
{% endif %}
|
|
51
|
+
</section>
|
|
52
52
|
{% endblock content %}
|