umap-project 3.2.0__py3-none-any.whl → 3.3.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/el/LC_MESSAGES/django.mo +0 -0
- umap/locale/el/LC_MESSAGES/django.po +42 -38
- umap/locale/en/LC_MESSAGES/django.mo +0 -0
- umap/locale/en/LC_MESSAGES/django.po +15 -15
- umap/locale/hu/LC_MESSAGES/django.mo +0 -0
- umap/locale/hu/LC_MESSAGES/django.po +39 -35
- umap/locale/nl/LC_MESSAGES/django.mo +0 -0
- umap/locale/nl/LC_MESSAGES/django.po +31 -27
- umap/settings/base.py +2 -0
- umap/static/umap/css/contextmenu.css +58 -2
- umap/static/umap/css/form.css +175 -45
- umap/static/umap/css/icon.css +20 -0
- umap/static/umap/img/16-white.svg +21 -40
- umap/static/umap/img/16.svg +1 -1
- umap/static/umap/img/24-white.svg +9 -9
- umap/static/umap/img/24.svg +23 -10
- umap/static/umap/img/source/16-white.svg +23 -41
- umap/static/umap/img/source/16.svg +1 -1
- umap/static/umap/img/source/24-white.svg +11 -11
- umap/static/umap/img/source/24.svg +25 -12
- umap/static/umap/js/modules/caption.js +8 -0
- umap/static/umap/js/modules/data/features.js +318 -174
- umap/static/umap/js/modules/data/layer.js +27 -20
- umap/static/umap/js/modules/form/builder.js +11 -7
- umap/static/umap/js/modules/form/fields.js +10 -7
- umap/static/umap/js/modules/formatter.js +42 -20
- umap/static/umap/js/modules/importer.js +6 -1
- umap/static/umap/js/modules/importers/opendata.js +125 -37
- umap/static/umap/js/modules/importers/openrouteservice.js +140 -0
- umap/static/umap/js/modules/managers.js +12 -4
- umap/static/umap/js/modules/printer.js +107 -0
- umap/static/umap/js/modules/rendering/controls.js +78 -2
- umap/static/umap/js/modules/rendering/icon.js +113 -82
- umap/static/umap/js/modules/rendering/layers/cluster.js +220 -64
- umap/static/umap/js/modules/rendering/map.js +5 -1
- umap/static/umap/js/modules/rendering/template.js +71 -1
- umap/static/umap/js/modules/rendering/ui.js +101 -34
- umap/static/umap/js/modules/schema.js +24 -0
- umap/static/umap/js/modules/share.js +19 -12
- umap/static/umap/js/modules/ui/bar.js +6 -1
- umap/static/umap/js/modules/ui/base.js +24 -9
- umap/static/umap/js/modules/ui/contextmenu.js +17 -7
- umap/static/umap/js/modules/ui/dialog.js +7 -4
- umap/static/umap/js/modules/umap.js +68 -62
- umap/static/umap/js/umap.controls.js +22 -57
- umap/static/umap/locale/am_ET.js +39 -4
- umap/static/umap/locale/am_ET.json +39 -4
- umap/static/umap/locale/ar.js +39 -4
- umap/static/umap/locale/ar.json +39 -4
- umap/static/umap/locale/ast.js +39 -4
- umap/static/umap/locale/ast.json +39 -4
- umap/static/umap/locale/bg.js +39 -4
- umap/static/umap/locale/bg.json +39 -4
- umap/static/umap/locale/br.js +39 -4
- umap/static/umap/locale/br.json +39 -4
- umap/static/umap/locale/ca.js +39 -4
- umap/static/umap/locale/ca.json +39 -4
- umap/static/umap/locale/cs_CZ.js +39 -4
- umap/static/umap/locale/cs_CZ.json +39 -4
- umap/static/umap/locale/da.js +47 -12
- umap/static/umap/locale/da.json +47 -12
- umap/static/umap/locale/de.js +39 -4
- umap/static/umap/locale/de.json +39 -4
- umap/static/umap/locale/el.js +81 -46
- umap/static/umap/locale/el.json +81 -46
- umap/static/umap/locale/en.js +38 -4
- umap/static/umap/locale/en.json +38 -4
- umap/static/umap/locale/en_US.json +39 -4
- umap/static/umap/locale/es.js +47 -12
- umap/static/umap/locale/es.json +47 -12
- umap/static/umap/locale/et.js +39 -4
- umap/static/umap/locale/et.json +39 -4
- umap/static/umap/locale/eu.js +80 -45
- umap/static/umap/locale/eu.json +80 -45
- umap/static/umap/locale/fa_IR.js +39 -4
- umap/static/umap/locale/fa_IR.json +39 -4
- umap/static/umap/locale/fi.js +39 -4
- umap/static/umap/locale/fi.json +39 -4
- umap/static/umap/locale/fr.js +39 -4
- umap/static/umap/locale/fr.json +39 -4
- umap/static/umap/locale/gl.js +39 -4
- umap/static/umap/locale/gl.json +39 -4
- umap/static/umap/locale/he.js +39 -4
- umap/static/umap/locale/he.json +39 -4
- umap/static/umap/locale/hr.js +39 -4
- umap/static/umap/locale/hr.json +39 -4
- umap/static/umap/locale/hu.js +55 -20
- umap/static/umap/locale/hu.json +55 -20
- umap/static/umap/locale/id.js +39 -4
- umap/static/umap/locale/id.json +39 -4
- umap/static/umap/locale/is.js +39 -4
- umap/static/umap/locale/is.json +39 -4
- umap/static/umap/locale/it.js +39 -4
- umap/static/umap/locale/it.json +39 -4
- umap/static/umap/locale/ja.js +39 -4
- umap/static/umap/locale/ja.json +39 -4
- umap/static/umap/locale/ko.js +39 -4
- umap/static/umap/locale/ko.json +39 -4
- umap/static/umap/locale/lt.js +39 -4
- umap/static/umap/locale/lt.json +39 -4
- umap/static/umap/locale/ms.js +52 -17
- umap/static/umap/locale/ms.json +52 -17
- umap/static/umap/locale/nl.js +58 -23
- umap/static/umap/locale/nl.json +58 -23
- umap/static/umap/locale/no.js +39 -4
- umap/static/umap/locale/no.json +39 -4
- umap/static/umap/locale/pl.js +39 -4
- umap/static/umap/locale/pl.json +39 -4
- umap/static/umap/locale/pl_PL.json +39 -4
- umap/static/umap/locale/pt.js +39 -4
- umap/static/umap/locale/pt.json +39 -4
- umap/static/umap/locale/pt_BR.js +39 -4
- umap/static/umap/locale/pt_BR.json +39 -4
- umap/static/umap/locale/pt_PT.js +39 -4
- umap/static/umap/locale/pt_PT.json +39 -4
- umap/static/umap/locale/ro.js +39 -4
- umap/static/umap/locale/ro.json +39 -4
- umap/static/umap/locale/ru.js +39 -4
- umap/static/umap/locale/ru.json +39 -4
- umap/static/umap/locale/sk_SK.js +39 -4
- umap/static/umap/locale/sk_SK.json +39 -4
- umap/static/umap/locale/sl.js +39 -4
- umap/static/umap/locale/sl.json +39 -4
- umap/static/umap/locale/sr.js +39 -4
- umap/static/umap/locale/sr.json +39 -4
- umap/static/umap/locale/sv.js +39 -4
- umap/static/umap/locale/sv.json +39 -4
- umap/static/umap/locale/th_TH.js +39 -4
- umap/static/umap/locale/th_TH.json +39 -4
- umap/static/umap/locale/tr.js +39 -4
- umap/static/umap/locale/tr.json +39 -4
- umap/static/umap/locale/uk_UA.js +39 -4
- umap/static/umap/locale/uk_UA.json +39 -4
- umap/static/umap/locale/vi.js +39 -4
- umap/static/umap/locale/vi.json +39 -4
- umap/static/umap/locale/vi_VN.json +39 -4
- umap/static/umap/locale/zh.js +39 -4
- umap/static/umap/locale/zh.json +39 -4
- umap/static/umap/locale/zh_CN.json +39 -4
- umap/static/umap/locale/zh_TW.Big5.json +39 -4
- umap/static/umap/locale/zh_TW.js +98 -63
- umap/static/umap/locale/zh_TW.json +98 -63
- umap/static/umap/map.css +90 -41
- umap/static/umap/vars.css +1 -0
- umap/static/umap/vendors/editable/Leaflet.Editable.js +3 -1
- umap/static/umap/vendors/openrouteservice/ors-js-client.js +521 -0
- umap/static/umap/vendors/openrouteservice/ors-js-client.js.map +1 -0
- umap/static/umap/vendors/simple-elevation-chart/elevation.js +63 -0
- umap/static/umap/vendors/simple-elevation-chart/elevation.svg +8 -0
- umap/static/umap/vendors/snapdom/snapdom.min.mjs +3 -0
- umap/storage/staticfiles.py +12 -0
- umap/templates/umap/css.html +0 -4
- umap/templates/umap/js.html +1 -3
- umap/tests/integration/test_basics.py +2 -0
- umap/tests/integration/test_conditional_rules.py +17 -17
- umap/tests/integration/test_datalayer.py +1 -1
- umap/tests/integration/test_draw_polygon.py +3 -5
- umap/tests/integration/test_draw_polyline.py +4 -6
- umap/tests/integration/test_draw_route.py +178 -0
- umap/tests/integration/test_edit_map.py +1 -1
- umap/tests/integration/test_edit_marker.py +7 -7
- umap/tests/integration/test_edit_polygon.py +2 -2
- umap/tests/integration/test_export_map.py +74 -10
- umap/tests/integration/test_map_preview.py +1 -1
- umap/tests/integration/test_share.py +1 -1
- umap/tests/integration/test_tableeditor.py +4 -4
- umap/tests/integration/test_websocket_sync.py +4 -4
- umap/utils.py +5 -1
- umap/views.py +2 -0
- {umap_project-3.2.0.dist-info → umap_project-3.3.1.dist-info}/METADATA +9 -9
- {umap_project-3.2.0.dist-info → umap_project-3.3.1.dist-info}/RECORD +175 -171
- umap/static/umap/vendors/markercluster/MarkerCluster.Default.css +0 -60
- umap/static/umap/vendors/markercluster/MarkerCluster.css +0 -14
- umap/static/umap/vendors/markercluster/leaflet.markercluster.js +0 -2
- umap/static/umap/vendors/markercluster/leaflet.markercluster.js.map +0 -1
- {umap_project-3.2.0.dist-info → umap_project-3.3.1.dist-info}/WHEEL +0 -0
- {umap_project-3.2.0.dist-info → umap_project-3.3.1.dist-info}/entry_points.txt +0 -0
- {umap_project-3.2.0.dist-info → umap_project-3.3.1.dist-info}/licenses/LICENSE +0 -0
|
@@ -57,7 +57,6 @@
|
|
|
57
57
|
"Click last point to finish shape": "點下最後一點後完成外形",
|
|
58
58
|
"Click to add a marker": "點選以新增標記",
|
|
59
59
|
"Click to continue drawing": "點擊以繼續繪製",
|
|
60
|
-
"Click to edit": "點擊開始編輯",
|
|
61
60
|
"Click to start drawing a line": "點擊以開始繪製直線",
|
|
62
61
|
"Click to start drawing a polygon": "點選開始繪製多邊形",
|
|
63
62
|
"Clone of {name}": "複製 {name}",
|
|
@@ -209,7 +208,6 @@
|
|
|
209
208
|
"Link with text: [[https://example.com|text of the link]]": "有文字的連結:[[https://example.com|text of the link]]",
|
|
210
209
|
"Long credits": "詳細工作人員名單",
|
|
211
210
|
"Longitude": "經度",
|
|
212
|
-
"Make main shape": "設為主要外形",
|
|
213
211
|
"Manage layers": "管理圖層",
|
|
214
212
|
"Manual": "手動",
|
|
215
213
|
"Map background credits": "地圖背景取自",
|
|
@@ -285,7 +283,6 @@
|
|
|
285
283
|
"Quantiles": "數量",
|
|
286
284
|
"Recent": "目前",
|
|
287
285
|
"Remote data": "遠端資料",
|
|
288
|
-
"Remove shape from the multi": "移除外形",
|
|
289
286
|
"Replace layer content": "取代圖層內容",
|
|
290
287
|
"Restore this version": "回復此版本",
|
|
291
288
|
"Save current edits": "儲存近期的變更",
|
|
@@ -521,64 +518,102 @@
|
|
|
521
518
|
"Edit map default view": "編輯地圖預設檢視",
|
|
522
519
|
"Use current center and zoom": "使用目前中心與縮放大小",
|
|
523
520
|
"Layer permalink": "圖層永久連結",
|
|
524
|
-
"Back to home": "
|
|
525
|
-
"Home logo": "
|
|
526
|
-
"Add this geometry to my map": "
|
|
527
|
-
"Add this place to my map": "
|
|
528
|
-
"Cancel last edit": "
|
|
529
|
-
"Redo last edit": "
|
|
530
|
-
"Links": "
|
|
531
|
-
"Images": "
|
|
532
|
-
"Iframes": "
|
|
533
|
-
"Tags": "
|
|
534
|
-
"Geocode": "
|
|
535
|
-
"Display the back to home icon": "
|
|
536
|
-
"Do you want to display layer switcher in caption bar?": "
|
|
537
|
-
"Simplify all geometries to points": "
|
|
538
|
-
"Back to list": "
|
|
539
|
-
"Toggle rule": "
|
|
540
|
-
"Delete rule": "
|
|
541
|
-
"Cannot save layer, please try again in a few minutes.": "
|
|
542
|
-
"Activate collaborative live editing on this map. Other users must reload the map after changing this setting.": "
|
|
543
|
-
"More help resources": "
|
|
544
|
-
"This map is a template": "
|
|
545
|
-
"Add text along path": "
|
|
546
|
-
"Text color": "
|
|
547
|
-
"Text offset": "
|
|
548
|
-
"Text position": "
|
|
549
|
-
"start": "
|
|
550
|
-
"center": "
|
|
551
|
-
"end": "
|
|
552
|
-
"Text repeat": "
|
|
553
|
-
"Text rotate": "
|
|
554
|
-
"Text size": "
|
|
555
|
-
"Load map template": "
|
|
556
|
-
"My templates": "
|
|
557
|
-
"From staff": "
|
|
558
|
-
"From community": "
|
|
559
|
-
"You must select a template.": "
|
|
560
|
-
"Line decoration": "
|
|
561
|
-
"Reuse this template": "
|
|
562
|
-
"Create a new map using this template": "
|
|
563
|
-
"Save template": "
|
|
564
|
-
"Load template": "
|
|
565
|
-
"Loading a template will apply predefined styles and settings to your map": "
|
|
566
|
-
"Load template with data": "
|
|
567
|
-
"You have no registered template yet. You can add one by creating a new map and flagging it as \"template\".": "
|
|
568
|
-
"There is no recommended template yet. Recommended templates are the ones starred by uMap administrators.": "
|
|
569
|
-
"There is no public template yet.": "
|
|
570
|
-
"Explore": "
|
|
571
|
-
"Import data from public open data portals": "
|
|
572
|
-
"Choose a portal": "
|
|
573
|
-
"Limit results to current map view": "
|
|
574
|
-
"Please choose an instance first.": "
|
|
575
|
-
"No geo column found: must be either `lat(itude)` and `lon(gitude)` or `geom(etry)`.": "
|
|
576
|
-
"Add a new field": "
|
|
577
|
-
"Are you sure you want to delete this field on all the features?": "
|
|
578
|
-
"Please enter the new name of this field": "
|
|
579
|
-
"Cannot process MultiPoint": "
|
|
580
|
-
"Manage Fields": "
|
|
581
|
-
"Rename this field": "
|
|
582
|
-
"Delete this field": "
|
|
583
|
-
"Double click to edit the name": "
|
|
521
|
+
"Back to home": "回到首頁",
|
|
522
|
+
"Home logo": "首頁 logo",
|
|
523
|
+
"Add this geometry to my map": "新增此一幾何到我的地圖",
|
|
524
|
+
"Add this place to my map": "新增這一地點到我的地圖",
|
|
525
|
+
"Cancel last edit": "取消最後編輯",
|
|
526
|
+
"Redo last edit": "重覆最後編輯",
|
|
527
|
+
"Links": "連結",
|
|
528
|
+
"Images": "影像",
|
|
529
|
+
"Iframes": "內崁頁面",
|
|
530
|
+
"Tags": "標籤",
|
|
531
|
+
"Geocode": "地理代碼",
|
|
532
|
+
"Display the back to home icon": "顯示回到首頁圖示",
|
|
533
|
+
"Do you want to display layer switcher in caption bar?": "你想要標題列顯示圖層切換嗎?",
|
|
534
|
+
"Simplify all geometries to points": "簡化所有幾何圖形變成節點",
|
|
535
|
+
"Back to list": "回到清單",
|
|
536
|
+
"Toggle rule": "套用規則",
|
|
537
|
+
"Delete rule": "刪除規則",
|
|
538
|
+
"Cannot save layer, please try again in a few minutes.": "無法儲存圖層,請幾分鐘之後再試一次。",
|
|
539
|
+
"Activate collaborative live editing on this map. Other users must reload the map after changing this setting.": "在這一份地圖啟用共同即時編輯,其他使用者必須在啟用這項設定後重新載入地圖。",
|
|
540
|
+
"More help resources": "更多幫助資源",
|
|
541
|
+
"This map is a template": "這份地圖是模版",
|
|
542
|
+
"Add text along path": "延著路徑新增文字",
|
|
543
|
+
"Text color": "文字顏色",
|
|
544
|
+
"Text offset": "文字偏移",
|
|
545
|
+
"Text position": "文字位置",
|
|
546
|
+
"start": "開始",
|
|
547
|
+
"center": "中間",
|
|
548
|
+
"end": "結尾",
|
|
549
|
+
"Text repeat": "文字重覆",
|
|
550
|
+
"Text rotate": "文字旋轉",
|
|
551
|
+
"Text size": "文字大小",
|
|
552
|
+
"Load map template": "載入地圖模版",
|
|
553
|
+
"My templates": "我的模版",
|
|
554
|
+
"From staff": "從職員",
|
|
555
|
+
"From community": "從社群",
|
|
556
|
+
"You must select a template.": "你必須選擇模版。",
|
|
557
|
+
"Line decoration": "線段修飾",
|
|
558
|
+
"Reuse this template": "重覆使用這份模版",
|
|
559
|
+
"Create a new map using this template": "使用這份模版新增地圖",
|
|
560
|
+
"Save template": "儲存模版",
|
|
561
|
+
"Load template": "載入模版",
|
|
562
|
+
"Loading a template will apply predefined styles and settings to your map": "載入模版將會套用預先定義的樣式與設定到你的地圖上",
|
|
563
|
+
"Load template with data": "連同資料載入模版",
|
|
564
|
+
"You have no registered template yet. You can add one by creating a new map and flagging it as \"template\".": "你還沒有已註冊的模版,你可以透過新增地圖並且標示為「模版」來新增。",
|
|
565
|
+
"There is no recommended template yet. Recommended templates are the ones starred by uMap administrators.": "仍沒有建議模版,建議模版為uMap管理員打星號的模版。",
|
|
566
|
+
"There is no public template yet.": "仍沒有公開模版。",
|
|
567
|
+
"Explore": "瀏覽",
|
|
568
|
+
"Import data from public open data portals": "從公共開放資料平台匯入資料",
|
|
569
|
+
"Choose a portal": "選擇平台",
|
|
570
|
+
"Limit results to current map view": "限制結果為目前地圖檢視",
|
|
571
|
+
"Please choose an instance first.": "請先選擇站臺。",
|
|
572
|
+
"No geo column found: must be either `lat(itude)` and `lon(gitude)` or `geom(etry)`.": "沒有找到地理欄位:必須是`lat(itude)`與 `lon(gitude)` 或者 `geom(etry)`。",
|
|
573
|
+
"Add a new field": "新增欄位",
|
|
574
|
+
"Are you sure you want to delete this field on all the features?": "你確定要從所有圖徵刪除這個欄位?",
|
|
575
|
+
"Please enter the new name of this field": "請新增這個欄位的新名稱",
|
|
576
|
+
"Cannot process MultiPoint": "無法處理多重點",
|
|
577
|
+
"Manage Fields": "管理欄位",
|
|
578
|
+
"Rename this field": "重新命名這一欄位",
|
|
579
|
+
"Delete this field": "刪除這一欄位",
|
|
580
|
+
"Double click to edit the name": "按兩下來編輯名稱",
|
|
581
|
+
"Print map": "列印地圖",
|
|
582
|
+
"Choose a format": "選擇格式",
|
|
583
|
+
"Scale map": "地圖尺度",
|
|
584
|
+
"portrait": "直式",
|
|
585
|
+
"landscape": "橫式",
|
|
586
|
+
"Print": "列印",
|
|
587
|
+
"Preparing the print…": "準備列印…",
|
|
588
|
+
"Large Circle": "大型圓圈",
|
|
589
|
+
"Icon size": "圖示大小",
|
|
590
|
+
"Will only affect raw and large circle icons.": "只會影響原始與大型圓圈圖示。",
|
|
591
|
+
"Route": "路線",
|
|
592
|
+
"Display the print control": "顯示點控制",
|
|
593
|
+
"Compute isochrone from here": "從這裡計算等時圖",
|
|
594
|
+
"Route settings": "路線設定",
|
|
595
|
+
"Transform to regular line": "轉換為普通線條",
|
|
596
|
+
"Transform to route": "轉換為路線",
|
|
597
|
+
"Restore route": "恢復路線",
|
|
598
|
+
"Compute elevation": "計畫等高線",
|
|
599
|
+
"Profile": "設定檔案",
|
|
600
|
+
"Compute elevations": "計算等高線。",
|
|
601
|
+
"Route preference": "路線偏好設定",
|
|
602
|
+
"Compute route": "計算路線",
|
|
603
|
+
"Walking": "步行",
|
|
604
|
+
"Hiking": "登山",
|
|
605
|
+
"By car": "開車",
|
|
606
|
+
"Cycling": "騎單車",
|
|
607
|
+
"Wheelchair": "輪椅",
|
|
608
|
+
"Recommended": "建議",
|
|
609
|
+
"Fastest": "最快",
|
|
610
|
+
"Shortest": "最短",
|
|
611
|
+
"Max time (in minutes)": "最大時間 (分鐘)",
|
|
612
|
+
"Number of lines": "線條數量",
|
|
613
|
+
"Distance:": "距離:",
|
|
614
|
+
"Gain:": "增加:",
|
|
615
|
+
"Loss:": "減少:",
|
|
616
|
+
"Altitude:": "海拔:",
|
|
617
|
+
"Right-click to edit": "按右鍵來編輯",
|
|
618
|
+
"Draw along routes": "沿著路線繪製"
|
|
584
619
|
}
|
umap/static/umap/map.css
CHANGED
|
@@ -42,6 +42,31 @@ html[dir="rtl"] .leaflet-tooltip-pane>* {
|
|
|
42
42
|
background-color: var(--color-lightGray);
|
|
43
43
|
}
|
|
44
44
|
|
|
45
|
+
.print-portrait,
|
|
46
|
+
.print-landscape {
|
|
47
|
+
left: initial !important;
|
|
48
|
+
right: initial !important;
|
|
49
|
+
top: initial !important;
|
|
50
|
+
bottom: initial !important;
|
|
51
|
+
height: initial !important;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.print-a4.print-landscape {
|
|
55
|
+
aspect-ratio: 297/210;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.print-a4.print-portrait {
|
|
59
|
+
aspect-ratio: 210/297;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.print-usletter.print-landscape {
|
|
63
|
+
aspect-ratio: 11/8.5;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.print-usletter.print-portrait {
|
|
67
|
+
aspect-ratio: 8.5/11;
|
|
68
|
+
}
|
|
69
|
+
|
|
45
70
|
/* *********** */
|
|
46
71
|
/* Structure */
|
|
47
72
|
/* *********** */
|
|
@@ -96,17 +121,21 @@ html[dir="rtl"] .leaflet-tooltip-pane>* {
|
|
|
96
121
|
.leaflet-control-locate a,
|
|
97
122
|
.umap-control a,
|
|
98
123
|
.umap-control [type="button"] {
|
|
99
|
-
background-position: 50% 50%;
|
|
100
|
-
background-repeat: no-repeat;
|
|
101
124
|
display: block;
|
|
102
125
|
height: var(--control-size);
|
|
103
126
|
width: var(--control-size);
|
|
104
127
|
line-height: var(--control-size);
|
|
105
|
-
background-image: url('./img/24.svg');
|
|
106
|
-
text-indent: -9999px;
|
|
107
128
|
margin-bottom: 0;
|
|
108
129
|
background-color: white;
|
|
109
130
|
min-height: initial;
|
|
131
|
+
padding: 0;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
.leaflet-measure-control a,
|
|
135
|
+
.leaflet-control-locate a {
|
|
136
|
+
background-position: 50% 50%;
|
|
137
|
+
background-repeat: no-repeat;
|
|
138
|
+
background-image: url('./img/24.svg');
|
|
110
139
|
}
|
|
111
140
|
|
|
112
141
|
.leaflet-control.display-on-more {
|
|
@@ -595,15 +624,6 @@ ul.photon-autocomplete {
|
|
|
595
624
|
/* ********************************* */
|
|
596
625
|
/* Browser panel */
|
|
597
626
|
/* ********************************* */
|
|
598
|
-
a.umap-control-browse,
|
|
599
|
-
.umap-control-browse [type="button"] {
|
|
600
|
-
background-position: -144px -180px;
|
|
601
|
-
}
|
|
602
|
-
|
|
603
|
-
a.umap-control-caption,
|
|
604
|
-
.umap-control-caption [type="button"] {
|
|
605
|
-
background-position: -144px -36px;
|
|
606
|
-
}
|
|
607
627
|
|
|
608
628
|
.leaflet-inplace-toolbar a {
|
|
609
629
|
background-repeat: no-repeat;
|
|
@@ -844,15 +864,21 @@ a.umap-control-caption,
|
|
|
844
864
|
.rules-caption .color-box {
|
|
845
865
|
width: 24px;
|
|
846
866
|
height: 24px;
|
|
867
|
+
line-height: 24px;
|
|
847
868
|
display: inline-block;
|
|
848
869
|
margin-right: var(--text-margin);
|
|
849
870
|
vertical-align: middle;
|
|
871
|
+
text-align: center;
|
|
872
|
+
}
|
|
873
|
+
|
|
874
|
+
.rules-caption .color-box img {
|
|
875
|
+
vertical-align: middle;
|
|
850
876
|
}
|
|
851
877
|
|
|
852
878
|
/* ************* */
|
|
853
879
|
/* Marker's Icon */
|
|
854
880
|
/* ************* */
|
|
855
|
-
.umap-div-icon .
|
|
881
|
+
.umap-div-icon .icon-container {
|
|
856
882
|
background-color: white;
|
|
857
883
|
border-radius: 4px 4px 4px 4px;
|
|
858
884
|
height: 32px;
|
|
@@ -864,7 +890,7 @@ a.umap-control-caption,
|
|
|
864
890
|
line-height: 32px;
|
|
865
891
|
}
|
|
866
892
|
|
|
867
|
-
.umap-div-icon.umap-icon-active .
|
|
893
|
+
.umap-div-icon.umap-icon-active .icon-container {
|
|
868
894
|
border-radius: 5px;
|
|
869
895
|
box-shadow: 7px 10px 10px -1px black;
|
|
870
896
|
height: 36px;
|
|
@@ -875,14 +901,14 @@ a.umap-control-caption,
|
|
|
875
901
|
width: 36px;
|
|
876
902
|
}
|
|
877
903
|
|
|
878
|
-
.umap-div-icon .
|
|
904
|
+
.umap-div-icon .icon-container img {
|
|
879
905
|
vertical-align: middle;
|
|
880
906
|
max-width: 24px !important;
|
|
881
907
|
/* leaflet.css has !important, so... */
|
|
882
908
|
max-height: 24px !important;
|
|
883
909
|
}
|
|
884
910
|
|
|
885
|
-
.umap-div-icon .
|
|
911
|
+
.umap-div-icon .icon-arrow {
|
|
886
912
|
border-left: 8px solid transparent;
|
|
887
913
|
border-right: 8px solid transparent;
|
|
888
914
|
border-top: 8px solid #2270b5;
|
|
@@ -893,11 +919,11 @@ a.umap-control-caption,
|
|
|
893
919
|
opacity: 0.9;
|
|
894
920
|
}
|
|
895
921
|
|
|
896
|
-
.umap-div-icon.umap-icon-active .
|
|
922
|
+
.umap-div-icon.umap-icon-active .icon-arrow {
|
|
897
923
|
opacity: 1.0 !important;
|
|
898
924
|
}
|
|
899
925
|
|
|
900
|
-
.umap-drop-icon .
|
|
926
|
+
.umap-drop-icon .icon-arrow {
|
|
901
927
|
border-left: 10px solid transparent;
|
|
902
928
|
border-right: 10px solid transparent;
|
|
903
929
|
border-top: 16px solid #2270B5;
|
|
@@ -908,7 +934,7 @@ a.umap-control-caption,
|
|
|
908
934
|
width: 0;
|
|
909
935
|
}
|
|
910
936
|
|
|
911
|
-
.umap-drop-icon.umap-icon-active .
|
|
937
|
+
.umap-drop-icon.umap-icon-active .icon-arrow {
|
|
912
938
|
border-left-width: 12px;
|
|
913
939
|
border-right-width: 12px;
|
|
914
940
|
border-top-width: 18px;
|
|
@@ -916,7 +942,7 @@ a.umap-control-caption,
|
|
|
916
942
|
opacity: 1.0 !important;
|
|
917
943
|
}
|
|
918
944
|
|
|
919
|
-
.umap-drop-icon .
|
|
945
|
+
.umap-drop-icon .icon-container {
|
|
920
946
|
background-color: #2470B5;
|
|
921
947
|
border-radius: 16px 16px 16px 16px;
|
|
922
948
|
box-shadow: 6px 13px 8px -4px black;
|
|
@@ -927,7 +953,7 @@ a.umap-control-caption,
|
|
|
927
953
|
width: 32px;
|
|
928
954
|
}
|
|
929
955
|
|
|
930
|
-
.umap-drop-icon.umap-icon-active .
|
|
956
|
+
.umap-drop-icon.umap-icon-active .icon-container {
|
|
931
957
|
box-shadow: 4px 11px 10px -2px black;
|
|
932
958
|
border-radius: 18px 18px 18px 18px;
|
|
933
959
|
height: 36px;
|
|
@@ -938,36 +964,48 @@ a.umap-control-caption,
|
|
|
938
964
|
width: 36px;
|
|
939
965
|
}
|
|
940
966
|
|
|
941
|
-
.umap-drop-icon .
|
|
967
|
+
.umap-drop-icon .icon-container img {
|
|
942
968
|
vertical-align: middle;
|
|
943
969
|
max-width: 24px !important;
|
|
944
970
|
max-height: 24px !important;
|
|
945
971
|
}
|
|
946
972
|
|
|
947
|
-
.umap-div-icon .
|
|
948
|
-
.umap-drop-icon .
|
|
973
|
+
.umap-div-icon .icon-container span,
|
|
974
|
+
.umap-drop-icon .icon-container span {
|
|
949
975
|
vertical-align: middle;
|
|
950
976
|
font-weight: bold;
|
|
951
977
|
}
|
|
952
978
|
|
|
953
979
|
.umap-circle-icon {
|
|
954
|
-
border:
|
|
955
|
-
border-radius:
|
|
956
|
-
margin-inline-start: -6px;
|
|
957
|
-
margin-top: -6px;
|
|
980
|
+
border: 2px solid white;
|
|
981
|
+
border-radius: 50%;
|
|
958
982
|
height: 12px;
|
|
959
983
|
width: 12px;
|
|
960
984
|
}
|
|
961
985
|
|
|
962
986
|
.umap-circle-icon.umap-icon-active {
|
|
963
|
-
height: 16px;
|
|
964
|
-
margin-inline-start: -8px;
|
|
965
|
-
margin-top: -8px;
|
|
966
987
|
opacity: 1.0 !important;
|
|
988
|
+
height: 16px;
|
|
967
989
|
width: 16px;
|
|
968
990
|
}
|
|
969
991
|
|
|
970
|
-
.umap-
|
|
992
|
+
.umap-large-circle-icon {
|
|
993
|
+
border: 2px solid white;
|
|
994
|
+
background-color: white;
|
|
995
|
+
border-radius: 50%;
|
|
996
|
+
height: 36px;
|
|
997
|
+
width: 36px;
|
|
998
|
+
box-shadow: black 0px 0px 1px;
|
|
999
|
+
display: flex;
|
|
1000
|
+
align-content: center;
|
|
1001
|
+
}
|
|
1002
|
+
|
|
1003
|
+
.umap-large-circle-icon.umap-icon-active {
|
|
1004
|
+
opacity: 1.0 !important;
|
|
1005
|
+
box-shadow: var(--block-shadow);
|
|
1006
|
+
}
|
|
1007
|
+
|
|
1008
|
+
.umap-ball-icon .icon-container {
|
|
971
1009
|
background-color: darkblue;
|
|
972
1010
|
background: radial-gradient(circle at 6px 38%, white -4px, darkblue 8px) repeat scroll 0 0 transparent;
|
|
973
1011
|
border-radius: 8px 8px 8px 8px;
|
|
@@ -978,7 +1016,7 @@ a.umap-control-caption,
|
|
|
978
1016
|
width: 16px;
|
|
979
1017
|
}
|
|
980
1018
|
|
|
981
|
-
.umap-ball-icon.umap-icon-active .
|
|
1019
|
+
.umap-ball-icon.umap-icon-active .icon-container {
|
|
982
1020
|
border-radius: 10px 10px 10px 10px;
|
|
983
1021
|
box-shadow: 1px 23px 7px -1px black;
|
|
984
1022
|
margin-inline-start: -2px;
|
|
@@ -988,7 +1026,7 @@ a.umap-control-caption,
|
|
|
988
1026
|
width: 20px;
|
|
989
1027
|
}
|
|
990
1028
|
|
|
991
|
-
.umap-ball-icon .
|
|
1029
|
+
.umap-ball-icon .icon-arrow {
|
|
992
1030
|
background-color: black;
|
|
993
1031
|
height: 16px;
|
|
994
1032
|
inset-inline-start: 7px;
|
|
@@ -1006,24 +1044,35 @@ a.umap-control-caption,
|
|
|
1006
1044
|
cursor: not-allowed;
|
|
1007
1045
|
}
|
|
1008
1046
|
|
|
1009
|
-
.leaflet-container .umap-raw-icon img {
|
|
1010
|
-
max-height: 48px !important;
|
|
1011
|
-
max-width: 48px !important;
|
|
1012
|
-
}
|
|
1013
|
-
|
|
1014
1047
|
.umap-raw-icon {
|
|
1015
1048
|
display: flex;
|
|
1016
1049
|
flex-direction: column;
|
|
1017
1050
|
justify-content: center;
|
|
1018
|
-
align-items: center;
|
|
1019
1051
|
align-content: center;
|
|
1020
1052
|
overflow: hidden;
|
|
1021
1053
|
}
|
|
1022
1054
|
|
|
1055
|
+
.umap-raw-icon img {
|
|
1056
|
+
object-fit: contain;
|
|
1057
|
+
}
|
|
1058
|
+
|
|
1023
1059
|
.umap-raw-icon.umap-icon-active {
|
|
1024
1060
|
box-shadow: var(--block-shadow);
|
|
1025
1061
|
}
|
|
1026
1062
|
|
|
1063
|
+
.umap-cluster-icon {
|
|
1064
|
+
border-radius: 50%;
|
|
1065
|
+
border: 4px solid white;
|
|
1066
|
+
display: flex;
|
|
1067
|
+
justify-content: center;
|
|
1068
|
+
align-items: center;
|
|
1069
|
+
font-weight: bold;
|
|
1070
|
+
}
|
|
1071
|
+
|
|
1072
|
+
.leaflet-overlay-pane > svg {
|
|
1073
|
+
z-index: var(--zindex-orphan-marker);
|
|
1074
|
+
}
|
|
1075
|
+
|
|
1027
1076
|
/* ********************************* */
|
|
1028
1077
|
/* Ajax loader */
|
|
1029
1078
|
/* ********************************* */
|
umap/static/umap/vars.css
CHANGED
|
@@ -814,6 +814,8 @@
|
|
|
814
814
|
// 🍂namespace Editable; 🍂class BaseEditor; 🍂aka L.Editable.BaseEditor
|
|
815
815
|
// When editing a feature (Marker, Polyline…), an editor is attached to it. This
|
|
816
816
|
// editor basically knows how to handle the edition.
|
|
817
|
+
// 🍂option draggable: boolean = false
|
|
818
|
+
// Disable dragging of the feature while in edit mode
|
|
817
819
|
L.Editable.BaseEditor = L.Handler.extend({
|
|
818
820
|
initialize: function (map, feature, options) {
|
|
819
821
|
L.setOptions(this, options)
|
|
@@ -854,7 +856,7 @@
|
|
|
854
856
|
|
|
855
857
|
onFeatureAdd: function () {
|
|
856
858
|
this.tools.editLayer.addLayer(this.editLayer)
|
|
857
|
-
if (this.feature.dragging) this.feature.dragging.enable()
|
|
859
|
+
if (this.feature.dragging && this.options.draggable != false) this.feature.dragging.enable()
|
|
858
860
|
},
|
|
859
861
|
|
|
860
862
|
hasMiddleMarkers: function () {
|