umap-project 2.4.0b2__py3-none-any.whl → 2.4.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.
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 +11 -11
- umap/locale/pt/LC_MESSAGES/django.mo +0 -0
- umap/locale/pt/LC_MESSAGES/django.po +87 -37
- umap/static/umap/base.css +19 -5
- umap/static/umap/img/16-white.svg +1 -3
- umap/static/umap/img/source/16-white.svg +2 -4
- umap/static/umap/js/modules/browser.js +5 -5
- umap/static/umap/js/modules/caption.js +1 -1
- umap/static/umap/js/modules/utils.js +3 -3
- umap/static/umap/js/umap.features.js +11 -3
- umap/static/umap/js/umap.js +47 -48
- umap/static/umap/js/umap.layer.js +11 -1
- umap/static/umap/js/umap.popup.js +1 -1
- umap/static/umap/locale/en.js +2 -1
- umap/static/umap/locale/en.json +2 -1
- umap/static/umap/locale/es.js +9 -8
- umap/static/umap/locale/es.json +9 -8
- umap/static/umap/locale/fr.js +2 -1
- umap/static/umap/locale/fr.json +2 -1
- umap/static/umap/locale/pt.js +61 -60
- umap/static/umap/locale/pt.json +61 -60
- umap/static/umap/map.css +14 -13
- umap/static/umap/unittests/utils.js +5 -5
- umap/static/umap/vars.css +2 -1
- umap/static/umap/vendors/dompurify/purify.es.js +59 -5
- umap/static/umap/vendors/dompurify/purify.es.mjs.map +1 -1
- umap/static/umap/vendors/formbuilder/Leaflet.FormBuilder.js +2 -2
- umap/tests/integration/test_browser.py +76 -3
- umap/tests/integration/test_edit_polygon.py +11 -0
- umap/tests/integration/test_map.py +29 -0
- umap/tests/integration/test_view_marker.py +2 -2
- {umap_project-2.4.0b2.dist-info → umap_project-2.4.1.dist-info}/METADATA +2 -2
- {umap_project-2.4.0b2.dist-info → umap_project-2.4.1.dist-info}/RECORD +37 -46
- {umap_project-2.4.0b2.dist-info → umap_project-2.4.1.dist-info}/WHEEL +1 -1
- umap/.DS_Store +0 -0
- umap/static/.DS_Store +0 -0
- umap/static/umap/.DS_Store +0 -0
- umap/static/umap/favicons/.DS_Store +0 -0
- umap/static/umap/fonts/.DS_Store +0 -0
- umap/static/umap/img/.DS_Store +0 -0
- umap/static/umap/img/source/.DS_Store +0 -0
- umap/tests/.DS_Store +0 -0
- umap/tests/integration/.DS_Store +0 -0
- {umap_project-2.4.0b2.dist-info → umap_project-2.4.1.dist-info}/entry_points.txt +0 -0
- {umap_project-2.4.0b2.dist-info → umap_project-2.4.1.dist-info}/licenses/LICENSE +0 -0
umap/__init__.py
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
VERSION = "2.4.
|
|
1
|
+
VERSION = "2.4.1"
|
|
@@ -8,7 +8,7 @@ msgid ""
|
|
|
8
8
|
msgstr ""
|
|
9
9
|
"Project-Id-Version: PACKAGE VERSION\n"
|
|
10
10
|
"Report-Msgid-Bugs-To: \n"
|
|
11
|
-
"POT-Creation-Date: 2024-06-
|
|
11
|
+
"POT-Creation-Date: 2024-06-21 19:58+0000\n"
|
|
12
12
|
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
|
13
13
|
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
|
14
14
|
"Language-Team: LANGUAGE <LL@li.org>\n"
|
|
@@ -553,49 +553,49 @@ msgstr ""
|
|
|
553
553
|
msgid "Map editors updated with success!"
|
|
554
554
|
msgstr ""
|
|
555
555
|
|
|
556
|
-
#: views.py:
|
|
556
|
+
#: views.py:882
|
|
557
557
|
#, python-format
|
|
558
558
|
msgid "The uMap edit link for your map: %(map_name)s"
|
|
559
559
|
msgstr ""
|
|
560
560
|
|
|
561
|
-
#: views.py:
|
|
561
|
+
#: views.py:885
|
|
562
562
|
#, python-format
|
|
563
563
|
msgid "Here is your secret edit link: %(link)s"
|
|
564
564
|
msgstr ""
|
|
565
565
|
|
|
566
|
-
#: views.py:
|
|
566
|
+
#: views.py:892
|
|
567
567
|
#, python-format
|
|
568
568
|
msgid "Can't send email to %(email)s"
|
|
569
569
|
msgstr ""
|
|
570
570
|
|
|
571
|
-
#: views.py:
|
|
571
|
+
#: views.py:895
|
|
572
572
|
#, python-format
|
|
573
573
|
msgid "Email sent to %(email)s"
|
|
574
574
|
msgstr ""
|
|
575
575
|
|
|
576
|
-
#: views.py:
|
|
576
|
+
#: views.py:906
|
|
577
577
|
msgid "Only its owner can delete the map."
|
|
578
578
|
msgstr ""
|
|
579
579
|
|
|
580
|
-
#: views.py:
|
|
580
|
+
#: views.py:909
|
|
581
581
|
msgid "Map successfully deleted."
|
|
582
582
|
msgstr ""
|
|
583
583
|
|
|
584
|
-
#: views.py:
|
|
584
|
+
#: views.py:935
|
|
585
585
|
#, python-format
|
|
586
586
|
msgid ""
|
|
587
587
|
"Your map has been cloned! If you want to edit this map from another "
|
|
588
588
|
"computer, please use this link: %(anonymous_url)s"
|
|
589
589
|
msgstr ""
|
|
590
590
|
|
|
591
|
-
#: views.py:
|
|
591
|
+
#: views.py:940
|
|
592
592
|
msgid "Congratulations, your map has been cloned!"
|
|
593
593
|
msgstr ""
|
|
594
594
|
|
|
595
|
-
#: views.py:
|
|
595
|
+
#: views.py:1175
|
|
596
596
|
msgid "Layer successfully deleted."
|
|
597
597
|
msgstr ""
|
|
598
598
|
|
|
599
|
-
#: views.py:
|
|
599
|
+
#: views.py:1197
|
|
600
600
|
msgid "Permissions updated with success!"
|
|
601
601
|
msgstr ""
|
|
Binary file
|
|
@@ -10,7 +10,7 @@ msgid ""
|
|
|
10
10
|
msgstr ""
|
|
11
11
|
"Project-Id-Version: uMap\n"
|
|
12
12
|
"Report-Msgid-Bugs-To: \n"
|
|
13
|
-
"POT-Creation-Date: 2024-
|
|
13
|
+
"POT-Creation-Date: 2024-06-21 19:58+0000\n"
|
|
14
14
|
"PO-Revision-Date: 2013-11-22 14:00+0000\n"
|
|
15
15
|
"Last-Translator: lecalam, 2024\n"
|
|
16
16
|
"Language-Team: Portuguese (http://app.transifex.com/openstreetmap/umap/language/pt/)\n"
|
|
@@ -28,7 +28,7 @@ msgstr "Unicamente editável através de hiperligação secreta"
|
|
|
28
28
|
msgid "Everyone can edit"
|
|
29
29
|
msgstr "Todos podem editar"
|
|
30
30
|
|
|
31
|
-
#: forms.py:69 models.py:
|
|
31
|
+
#: forms.py:69 models.py:389
|
|
32
32
|
msgid "Inherit"
|
|
33
33
|
msgstr "Herdado"
|
|
34
34
|
|
|
@@ -56,15 +56,15 @@ msgstr "Modelo de URL no formato de mosaicos OSM"
|
|
|
56
56
|
msgid "Order of the tilelayers in the edit box"
|
|
57
57
|
msgstr "Ordem das camadas de mosaicos na caixa de edição"
|
|
58
58
|
|
|
59
|
-
#: models.py:147 models.py:
|
|
59
|
+
#: models.py:147 models.py:390
|
|
60
60
|
msgid "Everyone"
|
|
61
61
|
msgstr "Todos"
|
|
62
62
|
|
|
63
|
-
#: models.py:148 models.py:154 models.py:
|
|
63
|
+
#: models.py:148 models.py:154 models.py:391
|
|
64
64
|
msgid "Editors only"
|
|
65
65
|
msgstr "Apenas editores"
|
|
66
66
|
|
|
67
|
-
#: models.py:149 models.py:
|
|
67
|
+
#: models.py:149 models.py:392
|
|
68
68
|
msgid "Owner only"
|
|
69
69
|
msgstr "Apenas o proprietário"
|
|
70
70
|
|
|
@@ -112,7 +112,7 @@ msgstr "proprietário"
|
|
|
112
112
|
msgid "editors"
|
|
113
113
|
msgstr "editores"
|
|
114
114
|
|
|
115
|
-
#: models.py:186 models.py:
|
|
115
|
+
#: models.py:186 models.py:413
|
|
116
116
|
msgid "edit status"
|
|
117
117
|
msgstr "editar estado"
|
|
118
118
|
|
|
@@ -120,25 +120,25 @@ msgstr "editar estado"
|
|
|
120
120
|
msgid "share status"
|
|
121
121
|
msgstr "partilhar estado"
|
|
122
122
|
|
|
123
|
-
#: models.py:194 models.py:
|
|
123
|
+
#: models.py:194 models.py:408
|
|
124
124
|
msgid "settings"
|
|
125
125
|
msgstr "parâmetros"
|
|
126
126
|
|
|
127
|
-
#: models.py:
|
|
127
|
+
#: models.py:330
|
|
128
128
|
msgid "Clone of"
|
|
129
129
|
msgstr "Clone de"
|
|
130
130
|
|
|
131
|
-
#: models.py:
|
|
131
|
+
#: models.py:399
|
|
132
132
|
msgid "description"
|
|
133
133
|
msgstr "descrição"
|
|
134
134
|
|
|
135
|
-
#: models.py:
|
|
135
|
+
#: models.py:403
|
|
136
136
|
msgid "display on load"
|
|
137
137
|
msgstr "mostrar no início"
|
|
138
138
|
|
|
139
|
-
#: models.py:
|
|
139
|
+
#: models.py:404
|
|
140
140
|
msgid "Display this layer on load."
|
|
141
|
-
msgstr "
|
|
141
|
+
msgstr "Mostrar esta camada ao carregar."
|
|
142
142
|
|
|
143
143
|
#: templates/404.html:6
|
|
144
144
|
msgid "Take me to the home page"
|
|
@@ -229,19 +229,19 @@ msgstr "Escolha as camadas do mapa"
|
|
|
229
229
|
|
|
230
230
|
#: templates/umap/about_summary.html:22
|
|
231
231
|
msgid "Add POIs: markers, lines, polygons..."
|
|
232
|
-
msgstr "
|
|
232
|
+
msgstr "Adicione POIs: marcadores, linhas, polígonos..."
|
|
233
233
|
|
|
234
234
|
#: templates/umap/about_summary.html:23
|
|
235
235
|
msgid "Manage POIs colours and icons"
|
|
236
|
-
msgstr "
|
|
236
|
+
msgstr "Altere as cores dos POI e ícones"
|
|
237
237
|
|
|
238
238
|
#: templates/umap/about_summary.html:24
|
|
239
239
|
msgid "Manage map options: display a minimap, locate user on load…"
|
|
240
|
-
msgstr "
|
|
240
|
+
msgstr "Configure diversas opções: mostrar um minimapa, localizar o utilizador ao carregar..."
|
|
241
241
|
|
|
242
242
|
#: templates/umap/about_summary.html:25
|
|
243
243
|
msgid "Batch import geostructured data (geojson, gpx, kml, osm...)"
|
|
244
|
-
msgstr "
|
|
244
|
+
msgstr "Importe dados geo-estruturados em lote (geojson, gpx, kml, osm...)"
|
|
245
245
|
|
|
246
246
|
#: templates/umap/about_summary.html:26
|
|
247
247
|
msgid "Choose the license for your data"
|
|
@@ -249,7 +249,7 @@ msgstr "Escolha uma licença para os seus dados"
|
|
|
249
249
|
|
|
250
250
|
#: templates/umap/about_summary.html:27
|
|
251
251
|
msgid "Embed and share your map"
|
|
252
|
-
msgstr "
|
|
252
|
+
msgstr "Exporte e partilhe o seu mapa"
|
|
253
253
|
|
|
254
254
|
#: templates/umap/about_summary.html:37
|
|
255
255
|
#, python-format
|
|
@@ -265,13 +265,59 @@ msgstr "Criar um mapa"
|
|
|
265
265
|
msgid "Play with the demo"
|
|
266
266
|
msgstr "Testar a demo"
|
|
267
267
|
|
|
268
|
-
#: templates/umap/
|
|
268
|
+
#: templates/umap/components/alerts/alert.html:14
|
|
269
|
+
#: templates/umap/components/alerts/alert.html:49
|
|
270
|
+
#: templates/umap/components/alerts/alert.html:71
|
|
271
|
+
msgid "Close"
|
|
272
|
+
msgstr "Fechar"
|
|
273
|
+
|
|
274
|
+
#: templates/umap/components/alerts/alert.html:27
|
|
275
|
+
#, python-format
|
|
276
|
+
msgid ""
|
|
277
|
+
"Pro-tip: to easily find back your maps, <a href=\"%(login_url)s\" "
|
|
278
|
+
"target=\"_blank\">create an account</a> or <a href=\"%(login_url)s\" "
|
|
279
|
+
"target=\"_blank\">log in</a>."
|
|
280
|
+
msgstr "Sugestão: para voltar a encontrar facilmente os seus mapas, <a href=\"%(login_url)s\" target=\"_blank\">crie uma conta</a> ou <a href=\"%(login_url)s\" target=\"_blank\">inicie a sessão</a>."
|
|
281
|
+
|
|
282
|
+
#: templates/umap/components/alerts/alert.html:30
|
|
283
|
+
msgid "Here is your secret link to edit the map, please keep it safe:"
|
|
284
|
+
msgstr "Aqui está a sua hiperligação secreta para editar o mapa, por favor mantenha-a segura:"
|
|
285
|
+
|
|
286
|
+
#: templates/umap/components/alerts/alert.html:33
|
|
287
|
+
msgid "Copy link"
|
|
288
|
+
msgstr "Copiar hiperligação"
|
|
289
|
+
|
|
290
|
+
#: templates/umap/components/alerts/alert.html:39
|
|
291
|
+
msgid "Enter your email address to receive the secret link:"
|
|
292
|
+
msgstr "Introduza o seu endereço de e-mail para receber a hiperligação secreta:"
|
|
293
|
+
|
|
294
|
+
#: templates/umap/components/alerts/alert.html:41
|
|
295
|
+
msgid "Email"
|
|
296
|
+
msgstr "E-mail"
|
|
297
|
+
|
|
298
|
+
#: templates/umap/components/alerts/alert.html:42
|
|
299
|
+
msgid "Send me the link"
|
|
300
|
+
msgstr "Envie-me a hiperligação"
|
|
301
|
+
|
|
302
|
+
#: templates/umap/components/alerts/alert.html:63
|
|
303
|
+
msgid "See their edits in another tab"
|
|
304
|
+
msgstr "Ver as edições deles noutro separador"
|
|
305
|
+
|
|
306
|
+
#: templates/umap/components/alerts/alert.html:64
|
|
307
|
+
msgid "Keep your changes and loose theirs"
|
|
308
|
+
msgstr "Manter as minhas mudanças e perder as deles"
|
|
309
|
+
|
|
310
|
+
#: templates/umap/components/alerts/alert.html:65
|
|
311
|
+
msgid "Keep their changes and loose yours"
|
|
312
|
+
msgstr "Manter as mudanças deles e perder as minhas"
|
|
313
|
+
|
|
314
|
+
#: templates/umap/content.html:24
|
|
269
315
|
msgid ""
|
|
270
316
|
"This instance of uMap is currently in read only mode, no creation/edit is "
|
|
271
317
|
"allowed."
|
|
272
318
|
msgstr "Esta instância do uMap está atualmente em modo só de leitura, não sendo permitida a criação/edição."
|
|
273
319
|
|
|
274
|
-
#: templates/umap/content.html:
|
|
320
|
+
#: templates/umap/content.html:32
|
|
275
321
|
#, python-format
|
|
276
322
|
msgid ""
|
|
277
323
|
"This is a demo instance, used for tests and pre-rolling releases. If you "
|
|
@@ -280,11 +326,11 @@ msgid ""
|
|
|
280
326
|
"instance, it's <a href=\"%(repo_url)s\">open source</a>!"
|
|
281
327
|
msgstr "Esta é uma versão de demonstração, utilizada para testes e pré-lançamentos. Se precisar de uma versão estável, por favor utilize <a href=\"%(stable_url)s\">%(stable_url)s</a>. Pode também alojar a sua própria instância, e é em <a href=\"%(repo_url)s\">código aberto</a>!"
|
|
282
328
|
|
|
283
|
-
#: templates/umap/home.html:
|
|
329
|
+
#: templates/umap/home.html:11
|
|
284
330
|
msgid "Map of the uMaps"
|
|
285
331
|
msgstr "Mapa dos uMaps"
|
|
286
332
|
|
|
287
|
-
#: templates/umap/home.html:
|
|
333
|
+
#: templates/umap/home.html:17
|
|
288
334
|
msgid "Get inspired, browse maps"
|
|
289
335
|
msgstr "Inspire-se, explore os mapas"
|
|
290
336
|
|
|
@@ -292,7 +338,7 @@ msgstr "Inspire-se, explore os mapas"
|
|
|
292
338
|
msgid "You are logged in. Continuing..."
|
|
293
339
|
msgstr "Sucesso na identificação. Continuando..."
|
|
294
340
|
|
|
295
|
-
#: templates/umap/map_list.html:9 views.py:
|
|
341
|
+
#: templates/umap/map_list.html:9 views.py:348
|
|
296
342
|
msgid "by"
|
|
297
343
|
msgstr "por"
|
|
298
344
|
|
|
@@ -449,7 +495,7 @@ msgstr "Alteração da palavra-passe bem sucedida"
|
|
|
449
495
|
msgid "Your password was changed."
|
|
450
496
|
msgstr "A sua palavra-passe foi alterada"
|
|
451
497
|
|
|
452
|
-
#: templates/umap/search.html:
|
|
498
|
+
#: templates/umap/search.html:13
|
|
453
499
|
#, python-format
|
|
454
500
|
msgid "%(count)s map found:"
|
|
455
501
|
msgid_plural "%(count)s maps found:"
|
|
@@ -457,11 +503,11 @@ msgstr[0] "%(count)s mapa encontrado:"
|
|
|
457
503
|
msgstr[1] "%(count)s mapas encontrados:"
|
|
458
504
|
msgstr[2] "%(count)s mapas encontrados:"
|
|
459
505
|
|
|
460
|
-
#: templates/umap/search.html:
|
|
506
|
+
#: templates/umap/search.html:21
|
|
461
507
|
msgid "No map found."
|
|
462
508
|
msgstr "Não foi encontrado nenhum mapa."
|
|
463
509
|
|
|
464
|
-
#: templates/umap/search.html:
|
|
510
|
+
#: templates/umap/search.html:24
|
|
465
511
|
msgid "Latest created maps"
|
|
466
512
|
msgstr "Últimos mapas criados"
|
|
467
513
|
|
|
@@ -499,57 +545,61 @@ msgstr "Descarregar %(count)s mapas"
|
|
|
499
545
|
msgid "You have no map yet."
|
|
500
546
|
msgstr "Ainda não tem nenhum mapa."
|
|
501
547
|
|
|
502
|
-
#: views.py:
|
|
548
|
+
#: views.py:353
|
|
503
549
|
msgid "View the map"
|
|
504
550
|
msgstr "Ver o mapa"
|
|
505
551
|
|
|
506
|
-
#: views.py:
|
|
552
|
+
#: views.py:718
|
|
507
553
|
msgid "See full screen"
|
|
508
554
|
msgstr "Ver em ecrã inteiro"
|
|
509
555
|
|
|
510
|
-
#: views.py:
|
|
556
|
+
#: views.py:846
|
|
511
557
|
msgid "Map editors updated with success!"
|
|
512
558
|
msgstr "Os editores do mapa foram atualizados com sucesso!"
|
|
513
559
|
|
|
514
|
-
#: views.py:
|
|
560
|
+
#: views.py:882
|
|
515
561
|
#, python-format
|
|
516
562
|
msgid "The uMap edit link for your map: %(map_name)s"
|
|
517
563
|
msgstr "A hiperligação de edição do uMap para o seu mapa: %(map_name)s"
|
|
518
564
|
|
|
519
|
-
#: views.py:
|
|
565
|
+
#: views.py:885
|
|
520
566
|
#, python-format
|
|
521
567
|
msgid "Here is your secret edit link: %(link)s"
|
|
522
568
|
msgstr "Aqui está a hiperligação de edição secreta: %(link)s"
|
|
523
569
|
|
|
524
|
-
#: views.py:
|
|
570
|
+
#: views.py:892
|
|
525
571
|
#, python-format
|
|
526
572
|
msgid "Can't send email to %(email)s"
|
|
527
573
|
msgstr "Não é possível enviar o email para %(email)s"
|
|
528
574
|
|
|
529
|
-
#: views.py:
|
|
575
|
+
#: views.py:895
|
|
530
576
|
#, python-format
|
|
531
577
|
msgid "Email sent to %(email)s"
|
|
532
578
|
msgstr "Email enviado para %(email)s"
|
|
533
579
|
|
|
534
|
-
#: views.py:
|
|
580
|
+
#: views.py:906
|
|
535
581
|
msgid "Only its owner can delete the map."
|
|
536
582
|
msgstr "Só o proprietário pode eliminar o mapa."
|
|
537
583
|
|
|
538
|
-
#: views.py:
|
|
584
|
+
#: views.py:909
|
|
585
|
+
msgid "Map successfully deleted."
|
|
586
|
+
msgstr "Mapa eliminado com sucesso."
|
|
587
|
+
|
|
588
|
+
#: views.py:935
|
|
539
589
|
#, python-format
|
|
540
590
|
msgid ""
|
|
541
591
|
"Your map has been cloned! If you want to edit this map from another "
|
|
542
592
|
"computer, please use this link: %(anonymous_url)s"
|
|
543
593
|
msgstr "O seu mapa foi clonado! Se quiser editar este mapa noutro computador, por favor utilize esta hiperligação: %(anonymous_url)s"
|
|
544
594
|
|
|
545
|
-
#: views.py:
|
|
595
|
+
#: views.py:940
|
|
546
596
|
msgid "Congratulations, your map has been cloned!"
|
|
547
597
|
msgstr "Parabéns, o seu mapa foi clonado!"
|
|
548
598
|
|
|
549
|
-
#: views.py:
|
|
599
|
+
#: views.py:1175
|
|
550
600
|
msgid "Layer successfully deleted."
|
|
551
601
|
msgstr "Camada eliminada com sucesso."
|
|
552
602
|
|
|
553
|
-
#: views.py:
|
|
603
|
+
#: views.py:1197
|
|
554
604
|
msgid "Permissions updated with success!"
|
|
555
605
|
msgstr "Permissões atualizadas com sucesso!"
|
umap/static/umap/base.css
CHANGED
|
@@ -61,16 +61,22 @@ kbd {
|
|
|
61
61
|
white-space: nowrap;
|
|
62
62
|
}
|
|
63
63
|
h3 {
|
|
64
|
-
font-size:
|
|
64
|
+
font-size: 1rem;
|
|
65
65
|
}
|
|
66
66
|
h4 {
|
|
67
|
-
font-size:
|
|
67
|
+
font-size: 0.9rem;
|
|
68
|
+
}
|
|
69
|
+
h5 {
|
|
70
|
+
font-size: 0.8rem;
|
|
71
|
+
}
|
|
72
|
+
h6 {
|
|
73
|
+
font-size: 0.7rem;
|
|
68
74
|
}
|
|
69
75
|
hgroup > * {
|
|
70
76
|
margin-bottom: 0;
|
|
71
77
|
}
|
|
72
78
|
hgroup {
|
|
73
|
-
margin-bottom: var(--box-
|
|
79
|
+
margin-bottom: var(--box-margin);
|
|
74
80
|
}
|
|
75
81
|
hgroup > :not(:first-child):last-child {
|
|
76
82
|
font-weight: normal;
|
|
@@ -179,8 +185,11 @@ input[type="range"] {
|
|
|
179
185
|
margin-bottom: 5px;
|
|
180
186
|
width: 100%;
|
|
181
187
|
}
|
|
188
|
+
input[type="radio"] {
|
|
189
|
+
margin-right: var(--text-margin);
|
|
190
|
+
}
|
|
182
191
|
input[type="checkbox"] {
|
|
183
|
-
margin: 0
|
|
192
|
+
margin: 0 var(--text-margin);
|
|
184
193
|
vertical-align: middle;
|
|
185
194
|
appearance: none;
|
|
186
195
|
}
|
|
@@ -311,7 +320,7 @@ label {
|
|
|
311
320
|
width: 100%;
|
|
312
321
|
}
|
|
313
322
|
label + label {
|
|
314
|
-
margin-top: var(--box-
|
|
323
|
+
margin-top: var(--box-margin);
|
|
315
324
|
}
|
|
316
325
|
.content label {
|
|
317
326
|
font-weight: bold;
|
|
@@ -778,6 +787,11 @@ input[type=hidden].blur + [type="button"] {
|
|
|
778
787
|
/* Various */
|
|
779
788
|
/* *********** */
|
|
780
789
|
|
|
790
|
+
.text {
|
|
791
|
+
word-break: break-word;
|
|
792
|
+
white-space: pre-line;
|
|
793
|
+
}
|
|
794
|
+
|
|
781
795
|
.umap-dragover:before {
|
|
782
796
|
content: ' ';
|
|
783
797
|
background-image: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" width="200" height="200" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="arcs">%3Cpath d="M3 15v4c0 1.1.9 2 2 2h14a2 2 0 0 0 2-2v-4M17 9l-5 5-5-5M12 12.8V2.5"/>%3C/svg>');
|
|
@@ -22,6 +22,7 @@
|
|
|
22
22
|
</rdf:RDF>
|
|
23
23
|
</metadata>
|
|
24
24
|
<g id="layer1" transform="translate(0 -812.36)">
|
|
25
|
+
<path id="path6" transform="translate(0 812.36)" d="m106.59 43.849c-3.1009-0.58252-5.5294-2.8635-6.3194-5.9353-0.23482-0.91317-0.29424-2.2415-0.14177-3.1695 0.51108-3.1108 2.8336-5.668 5.8628-6.455 3.7298-0.96909 7.5978 0.86166 9.2444 4.3755 0.52616 1.1228 0.76105 2.332 0.7086 3.6477-0.0496 1.2454-0.28677 2.1826-0.82249 3.2508-1.0498 2.0933-2.8894 3.5595-5.2481 4.1831-0.49134 0.1299-0.73215 0.15444-1.689 0.17211-0.81094 0.01498-1.2469-4e-3 -1.5952-0.06942zm2.4397-5.8477v-3.0462h-2.0509v6.0923h2.0509zm-0.53434-4.5639c0.33094-0.09915 0.70763-0.44461 0.87372-0.80128 0.4662-1.0012-0.2615-2.1447-1.3648-2.1447-0.44164 0-0.73107 0.12392-1.0653 0.45609-0.42453 0.42196-0.54914 0.93769-0.37666 1.5589 0.0814 0.29328 0.60383 0.8291 0.89905 0.92215 0.28553 0.09 0.74987 0.09398 1.034 0.0089z" fill="#f2f2f2" stroke="#999" stroke-width=".25" style="paint-order:fill markers stroke"/>
|
|
25
26
|
<text id="text4457" x="5.7867966" y="897.80786" fill="#000000" font-family="sans-serif" letter-spacing="0px" word-spacing="0px" style="line-height:0%" xml:space="preserve"><tspan id="tspan4459" x="5.7867966" y="897.80786" font-family="sans-serif" font-size="40px" style="line-height:1.25"> </tspan></text>
|
|
26
27
|
<g id="g3001" transform="translate(-23.256 -119.39)">
|
|
27
28
|
<path id="path3014" d="m35.256 935.75c-4.4124 0-8.0001 3.5878-8.0001 8.0001 0 4.4124 3.5878 8.0001 8.0001 8.0001s8.0001-3.5878 8.0001-8.0001c0-4.4124-3.5878-8.0001-8.0001-8.0001zm0 1.0003c3.8719 0 6.9999 3.1279 6.9999 6.9999 0 3.8719-3.1279 6.9999-6.9999 6.9999s-6.9999-3.128-6.9999-6.9999c0-3.8719 3.1279-6.9999 6.9999-6.9999z" color="#000000" color-rendering="auto" fill="#f2f2f2" image-rendering="auto" shape-rendering="auto" solid-color="#000000" stroke="#999" stroke-width=".25" style="isolation:auto;mix-blend-mode:normal;text-decoration-color:#000000;text-decoration-line:none;text-decoration-style:solid;text-indent:0;text-transform:none;white-space:normal"/>
|
|
@@ -44,8 +45,6 @@
|
|
|
44
45
|
</g>
|
|
45
46
|
<path id="path3684-2" d="m63.714 890.36-1.1428 1.1428 2.2857 2.2858 1.1428-1.1429zm-1.7143 1.7143-6.2857 6.2857 2.2857 2.2857 6.2857-6.2857zm-6.2857 6.2857-1.7143 4 4-1.7143z" fill="#b3b3b3"/>
|
|
46
47
|
<path id="table-5-8-8-6-1" d="m54 914.36v1h1v-1zm2 0v1h10v-1zm-2 2v1h1v-1zm2 0v1h10v-1zm-2 2v1h1v-1zm2 0v1h10v-1zm-2 2v1h1v-1zm2 0v1h10v-1zm-2 2v1h1v-1zm2 0v1h10v-1zm-2 2v1h1v-1zm2 0v1h10v-1z" fill="#f2f2f2"/>
|
|
47
|
-
<circle id="path3764" cx="108" cy="844.36" r="1.5" fill="#f2f2f2" stroke="#999" stroke-width=".25"/>
|
|
48
|
-
<path id="rect4274" d="m107 847.36h2v6h-2z" fill="#f2f2f2" stroke="#999" stroke-width=".25"/>
|
|
49
48
|
<g id="g4717" transform="translate(-54.789 -114.48)">
|
|
50
49
|
<path id="path3862" transform="translate(-1.2108 854.84)" d="m141.27 173.42-6.7559 2.6797 0.95313 6.3457 5.8711 3.127 4.1484-7.873zm-1.4473 2.4883 2.9902 1.6016-0.5918 2.4316-3.3574 1.5039-1.7383-3.8106z" fill="#f2f2f2" fill-rule="evenodd" stroke="#999" stroke-width=".25"/>
|
|
51
50
|
</g>
|
|
@@ -117,7 +116,6 @@
|
|
|
117
116
|
<path id="path4353-1-6-1-3-3-9-6" transform="matrix(1.9 0 0 1.9 -245.02 606.04)" d="m222.11 179.64-1.0488 1.0488 1.582 1.5801-1.582 1.582 1.0488 1.0469 1.582-1.5801 1.5801 1.5801 1.0488-1.0469-1.582-1.582 1.582-1.5801-1.0488-1.0488-1.5801 1.5801z" color="#000000" color-rendering="auto" fill="#f2f2f2" fill-rule="evenodd" image-rendering="auto" shape-rendering="auto" solid-color="#000000" stroke="none" style="isolation:auto;mix-blend-mode:normal;text-decoration-color:#000000;text-decoration-line:none;text-decoration-style:solid;text-indent:0;text-transform:none;white-space:normal"/>
|
|
118
117
|
</g>
|
|
119
118
|
</g>
|
|
120
|
-
<path id="path3014-4" d="m108 840.36c-4.4124 0-8.0001 3.5878-8.0001 8.0001 0 4.4124 3.5878 8.0001 8.0001 8.0001s8.0001-3.5878 8.0001-8.0001c0-4.4124-3.5878-8.0001-8.0001-8.0001zm0 1.0003c3.8719 0 6.9999 3.1279 6.9999 6.9999 0 3.8719-3.1279 6.9999-6.9999 6.9999s-6.9999-3.128-6.9999-6.9999c0-3.8719 3.1279-6.9999 6.9999-6.9999z" color="#000000" color-rendering="auto" fill="#f2f2f2" image-rendering="auto" shape-rendering="auto" solid-color="#000000" stroke="#999" stroke-width=".25" style="isolation:auto;mix-blend-mode:normal;text-decoration-color:#000000;text-decoration-line:none;text-decoration-style:solid;text-indent:0;text-transform:none;white-space:normal"/>
|
|
121
119
|
<rect id="rect4237" x="77" y="889.36" width="2" height="2" fill="#f2f2f2"/>
|
|
122
120
|
<rect id="rect4239" x="81" y="889.36" width="2" height="2" fill="#f2f2f2"/>
|
|
123
121
|
<rect id="rect4241" x="85" y="889.36" width="2" height="2" fill="#f2f2f2"/>
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
<path d="M 16.0401,2.3158 H 2.005 v 14.0351 h 14.0351 z" fill="#ffffff" id="path1259" />
|
|
17
17
|
</mask>
|
|
18
18
|
</defs>
|
|
19
|
-
<sodipodi:namedview id="base" pagecolor="#ffffff" bordercolor="#666666" borderopacity="1.0" inkscape:pageopacity="0.0" inkscape:pageshadow="2" inkscape:zoom="
|
|
19
|
+
<sodipodi:namedview id="base" pagecolor="#ffffff" bordercolor="#666666" borderopacity="1.0" inkscape:pageopacity="0.0" inkscape:pageshadow="2" inkscape:zoom="10.391897" inkscape:cx="112.73207" inkscape:cy="34.401804" inkscape:document-units="px" inkscape:current-layer="layer1" showgrid="true" inkscape:window-width="1920" inkscape:window-height="1011" inkscape:window-x="0" inkscape:window-y="0" inkscape:window-maximized="1" showguides="true" inkscape:guide-bbox="true" inkscape:snap-grids="true" inkscape:snap-to-guides="true" inkscape:showpageshadow="2" inkscape:pagecheckerboard="0" inkscape:deskcolor="#d1d1d1">
|
|
20
20
|
<inkscape:grid type="xygrid" id="grid3004" empspacing="4" visible="true" enabled="true" snapvisiblegridlinesonly="true" originx="0" originy="0" spacingy="1" spacingx="1" units="px" />
|
|
21
21
|
<sodipodi:guide orientation="-1,0" position="24,168" id="guide3084" inkscape:locked="false" inkscape:label="" inkscape:color="rgb(0,134,229)" />
|
|
22
22
|
<sodipodi:guide orientation="0,1" position="0,96" id="guide3086" inkscape:locked="false" inkscape:label="" inkscape:color="rgb(0,134,229)" />
|
|
@@ -40,6 +40,7 @@
|
|
|
40
40
|
</rdf:RDF>
|
|
41
41
|
</metadata>
|
|
42
42
|
<g inkscape:label="Layer 1" inkscape:groupmode="layer" id="layer1" transform="translate(0,-812.36218)">
|
|
43
|
+
<path style="fill:#f2f2f2;fill-opacity:1;stroke-width:0.25;paint-order:fill markers stroke;stroke:#999999;stroke-opacity:1" d="m 106.58891,43.849359 c -3.10089,-0.58252 -5.52944,-2.863466 -6.31937,-5.935298 -0.23482,-0.913171 -0.294235,-2.2415 -0.14177,-3.169542 0.51108,-3.110805 2.83364,-5.667956 5.86284,-6.455008 3.72982,-0.969088 7.59776,0.861664 9.2444,4.375508 0.52616,1.122793 0.76105,2.331963 0.7086,3.647677 -0.0496,1.245447 -0.28677,2.18265 -0.82249,3.250829 -1.04984,2.093266 -2.88939,3.559535 -5.24807,4.183141 -0.49134,0.129903 -0.73215,0.154443 -1.68896,0.172114 -0.81094,0.01498 -1.24691,-0.004 -1.59518,-0.06942 z m 2.43966,-5.8477 v -3.046165 h -1.02544 -1.02544 v 3.046165 3.046164 h 1.02544 1.02544 z m -0.53434,-4.563852 c 0.33094,-0.09915 0.70763,-0.444612 0.87372,-0.801282 0.4662,-1.001185 -0.2615,-2.144718 -1.36482,-2.144718 -0.44164,0 -0.73107,0.12392 -1.06527,0.456086 -0.42453,0.421956 -0.54914,0.937689 -0.37666,1.558908 0.0814,0.293275 0.60383,0.829099 0.89905,0.922151 0.28553,0.09 0.74987,0.09398 1.03398,0.0089 z" id="path6" transform="translate(0,812.36218)" />
|
|
43
44
|
<text xml:space="preserve" style="font-style:normal;font-weight:normal;line-height:0%;font-family:sans-serif;letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none" x="5.7867966" y="897.80786" id="text4457"><tspan y="897.80786" x="5.7867966" sodipodi:role="line" id="tspan4459" style="font-size:40px;line-height:1.25;font-family:sans-serif"> </tspan></text>
|
|
44
45
|
<g id="g3001" transform="translate(-23.255701,-119.38651)">
|
|
45
46
|
<path style="color:#000000;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:#000000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;baseline-shift:baseline;text-anchor:start;white-space:normal;clip-rule:nonzero;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:#000000;solid-opacity:1;fill:#f2f2f2;fill-opacity:1;fill-rule:nonzero;stroke:#999999;stroke-width:0.25;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto;enable-background:accumulate" d="m 35.255701,935.74851 c -4.412356,0 -8.00014,3.58778 -8.00014,8.00014 0,4.41235 3.587784,8.00014 8.00014,8.00014 4.412356,0 8.00014,-3.58779 8.00014,-8.00014 0,-4.41236 -3.587784,-8.00014 -8.00014,-8.00014 z m 0,1.00028 c 3.871916,0 6.99986,3.12794 6.99986,6.99986 0,3.87191 -3.127944,6.99986 -6.99986,6.99986 -3.871916,0 -6.999861,-3.12795 -6.999861,-6.99986 0,-3.87192 3.127945,-6.99986 6.999861,-6.99986 z" id="path3014" inkscape:connector-curvature="0" />
|
|
@@ -63,8 +64,6 @@
|
|
|
63
64
|
</g>
|
|
64
65
|
<path style="fill:#b3b3b3;fill-opacity:1;stroke:none" d="m 63.71429,890.36216 -1.14285,1.1428 2.28571,2.2858 L 66,892.64786 Z M 62,892.07646 55.714286,898.36218 58,900.64788 l 6.28572,-6.2857 z m -6.285714,6.28572 -1.714286,4 4,-1.7143 z" id="path3684-2" inkscape:connector-curvature="0" sodipodi:nodetypes="cccccccccccccc" />
|
|
65
66
|
<path inkscape:connector-curvature="0" id="table-5-8-8-6-1" style="fill:#f2f2f2;fill-opacity:1;fill-rule:nonzero;stroke:none" d="m 54,914.3622 v 1 h 1 v -1 z m 2,0 v 1 h 10 v -1 z m -2,2 v 1 h 1 v -1 z m 2,0 v 1 h 10 v -1 z m -2,2 v 1 h 1 v -1 z m 2,0 v 1 h 10 v -1 z m -2,2 v 1 h 1 v -1 z m 2,0 v 1 h 10 v -1 z m -2,2 v 1 h 1 v -1 z m 2,0 v 1 h 10 v -1 z m -2,2 v 1 h 1 v -1 z m 2,0 v 1 h 10 v -1 z" />
|
|
66
|
-
<circle style="fill:#f2f2f2;fill-opacity:1;stroke:#999999;stroke-width:0.25;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" id="path3764" cx="108" cy="844.36218" r="1.5" />
|
|
67
|
-
<path style="fill:#f2f2f2;fill-opacity:1;stroke:#999999;stroke-width:0.25;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" d="m 107,847.36218 h 2 v 6 h -2 z" id="rect4274" inkscape:connector-curvature="0" sodipodi:nodetypes="ccccc" />
|
|
68
67
|
<g id="g4717" transform="translate(-54.789185,-114.477)">
|
|
69
68
|
<path style="fill:#f2f2f2;fill-opacity:1;fill-rule:evenodd;stroke:#999999;stroke-width:0.25;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" d="m 141.26953,173.42383 -6.75586,2.67969 0.95313,6.3457 5.87109,3.12695 4.14844,-7.87305 z m -1.44726,2.48828 2.99023,1.60156 -0.5918,2.43164 -3.35742,1.50391 -1.73828,-3.81055 z" transform="translate(-1.210815,854.83918)" id="path3862" inkscape:connector-curvature="0" />
|
|
70
69
|
</g>
|
|
@@ -139,7 +138,6 @@
|
|
|
139
138
|
<path inkscape:connector-curvature="0" id="path4353-1-6-1-3-3-9-6" transform="matrix(1.9000195,0,0,1.9000195,-245.02393,606.04174)" d="m 222.11328,179.64258 -1.04883,1.04883 1.58203,1.58007 -1.58203,1.58204 1.04883,1.04687 1.58203,-1.58008 1.58008,1.58008 1.04883,-1.04687 -1.58203,-1.58204 1.58203,-1.58007 -1.04883,-1.04883 -1.58008,1.58008 z" style="color:#000000;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:#000000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;baseline-shift:baseline;text-anchor:start;white-space:normal;clip-rule:nonzero;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:#000000;solid-opacity:1;fill:#f2f2f2;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.81628;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto;enable-background:accumulate" />
|
|
140
139
|
</g>
|
|
141
140
|
</g>
|
|
142
|
-
<path style="color:#000000;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:#000000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;baseline-shift:baseline;text-anchor:start;white-space:normal;clip-rule:nonzero;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:#000000;solid-opacity:1;fill:#f2f2f2;fill-opacity:1;fill-rule:nonzero;stroke:#999999;stroke-width:0.25;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto;enable-background:accumulate" d="m 108,840.36204 c -4.41236,0 -8.00014,3.58778 -8.00014,8.00014 0,4.41235 3.58778,8.00014 8.00014,8.00014 4.41236,0 8.00014,-3.58779 8.00014,-8.00014 0,-4.41236 -3.58778,-8.00014 -8.00014,-8.00014 z m 0,1.00028 c 3.87192,0 6.99986,3.12794 6.99986,6.99986 0,3.87191 -3.12794,6.99986 -6.99986,6.99986 -3.87192,0 -6.99986,-3.12795 -6.99986,-6.99986 0,-3.87192 3.12794,-6.99986 6.99986,-6.99986 z" id="path3014-4" inkscape:connector-curvature="0" />
|
|
143
141
|
<rect style="fill:#f2f2f2;fill-opacity:1;stroke:none;stroke-width:0.25;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" id="rect4237" width="2" height="2" x="77" y="889.36218" />
|
|
144
142
|
<rect style="fill:#f2f2f2;fill-opacity:1;stroke:none;stroke-width:0.25;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" id="rect4239" width="2" height="2" x="81" y="889.36218" />
|
|
145
143
|
<rect style="fill:#f2f2f2;fill-opacity:1;stroke:none;stroke-width:0.25;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" id="rect4241" width="2" height="2" x="85" y="889.36218" />
|
|
@@ -143,8 +143,6 @@ export default class Browser {
|
|
|
143
143
|
open(mode) {
|
|
144
144
|
// Force only if mode is known, otherwise keep current mode.
|
|
145
145
|
if (mode) this.mode = mode
|
|
146
|
-
// Get once but use it for each feature later
|
|
147
|
-
this.filterKeys = this.map.getFilterKeys()
|
|
148
146
|
const container = DomUtil.create('div')
|
|
149
147
|
// HOTFIX. Remove when this is released:
|
|
150
148
|
// https://github.com/Leaflet/Leaflet/pull/9052
|
|
@@ -205,9 +203,11 @@ export default class Browser {
|
|
|
205
203
|
}
|
|
206
204
|
|
|
207
205
|
static backButton(map) {
|
|
208
|
-
const button = DomUtil.
|
|
209
|
-
|
|
210
|
-
|
|
206
|
+
const button = DomUtil.createButtonIcon(
|
|
207
|
+
DomUtil.create('li', '', undefined),
|
|
208
|
+
'icon-back',
|
|
209
|
+
translate('Back to browser')
|
|
210
|
+
)
|
|
211
211
|
// Fixme: remove me when this is merged and released
|
|
212
212
|
// https://github.com/Leaflet/Leaflet/pull/9052
|
|
213
213
|
DomEvent.disableClickPropagation(button)
|
|
@@ -24,7 +24,7 @@ export default class Caption {
|
|
|
24
24
|
if (this.map.options.description) {
|
|
25
25
|
const description = DomUtil.element({
|
|
26
26
|
tagName: 'div',
|
|
27
|
-
className: 'umap-map-description',
|
|
27
|
+
className: 'umap-map-description text',
|
|
28
28
|
safeHTML: Utils.toHTML(this.map.options.description),
|
|
29
29
|
parent: container,
|
|
30
30
|
})
|
|
@@ -124,9 +124,9 @@ export function toHTML(r, options) {
|
|
|
124
124
|
}
|
|
125
125
|
|
|
126
126
|
// headings and hr
|
|
127
|
-
r = r.replace(/^### (.*)(\r\n|\r|\n)?/gm, '<
|
|
128
|
-
r = r.replace(/^## (.*)(\r\n|\r|\n)?/gm, '<
|
|
129
|
-
r = r.replace(/^# (.*)(\r\n|\r|\n)?/gm, '<
|
|
127
|
+
r = r.replace(/^### (.*)(\r\n|\r|\n)?/gm, '<h6>$1</h6>')
|
|
128
|
+
r = r.replace(/^## (.*)(\r\n|\r|\n)?/gm, '<h5>$1</h5>')
|
|
129
|
+
r = r.replace(/^# (.*)(\r\n|\r|\n)?/gm, '<h4>$1</h4>')
|
|
130
130
|
r = r.replace(/^---/gm, '<hr>')
|
|
131
131
|
|
|
132
132
|
// bold, italics
|
|
@@ -144,7 +144,11 @@ U.FeatureMixin = {
|
|
|
144
144
|
edit: function (e) {
|
|
145
145
|
if (!this.map.editEnabled || this.isReadOnly()) return
|
|
146
146
|
const container = L.DomUtil.create('div', 'umap-feature-container')
|
|
147
|
-
L.DomUtil.createTitle(
|
|
147
|
+
L.DomUtil.createTitle(
|
|
148
|
+
container,
|
|
149
|
+
L._('Feature properties'),
|
|
150
|
+
`icon-${this.getClassName()}`
|
|
151
|
+
)
|
|
148
152
|
|
|
149
153
|
let builder = new U.FormBuilder(
|
|
150
154
|
this,
|
|
@@ -528,7 +532,7 @@ U.FeatureMixin = {
|
|
|
528
532
|
},
|
|
529
533
|
|
|
530
534
|
isFiltered: function () {
|
|
531
|
-
const filterKeys = this.
|
|
535
|
+
const filterKeys = this.datalayer.getFilterKeys()
|
|
532
536
|
const filter = this.map.browser.options.filter
|
|
533
537
|
if (filter && !this.matchFilter(filter, filterKeys)) return true
|
|
534
538
|
if (!this.matchFacets()) return true
|
|
@@ -537,6 +541,10 @@ U.FeatureMixin = {
|
|
|
537
541
|
|
|
538
542
|
matchFilter: function (filter, keys) {
|
|
539
543
|
filter = filter.toLowerCase()
|
|
544
|
+
if (U.Utils.hasVar(keys)) {
|
|
545
|
+
return this.getDisplayName().toLowerCase().indexOf(filter) !== -1
|
|
546
|
+
}
|
|
547
|
+
keys = keys.split(',')
|
|
540
548
|
for (let i = 0, value; i < keys.length; i++) {
|
|
541
549
|
value = (this.properties[keys[i]] || '') + ''
|
|
542
550
|
if (value.toLowerCase().indexOf(filter) !== -1) return true
|
|
@@ -598,7 +606,7 @@ U.FeatureMixin = {
|
|
|
598
606
|
if (locale) properties.locale = locale
|
|
599
607
|
if (L.lang) properties.lang = L.lang
|
|
600
608
|
properties.rank = this.getRank() + 1
|
|
601
|
-
if (this.hasGeom()) {
|
|
609
|
+
if (this._map && this.hasGeom()) {
|
|
602
610
|
center = this.getCenter()
|
|
603
611
|
properties.lat = center.lat
|
|
604
612
|
properties.lon = center.lng
|