@panoramax/web-viewer 3.1.1-develop-4687b4f6 → 3.1.1-develop-9c3a5399

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@panoramax/web-viewer",
3
- "version": "3.1.1-develop-4687b4f6",
3
+ "version": "3.1.1-develop-9c3a5399",
4
4
  "description": "Panoramax web viewer for geolocated pictures",
5
5
  "main": "build/index.js",
6
6
  "author": "Panoramax team",
@@ -16,10 +16,10 @@
16
16
  "expand": "展開",
17
17
  "expand_info": "在整個畫面顯示此小工具",
18
18
  "filter_camera_model": "按相機型號",
19
- "filter_date": "按日期",
20
- "filter_picture": "按相片類型",
19
+ "filter_date": "日期",
20
+ "filter_picture": "相片類型",
21
21
  "filter_reset": "重設",
22
- "filter_user": "按使用者",
22
+ "filter_user": "使用者",
23
23
  "filter_zoom_in": "拉近地圖以顯示篩選結果",
24
24
  "filters": "篩選器",
25
25
  "id": "iD",
@@ -54,7 +54,8 @@
54
54
  "🔍 正在分析 EXIF 詮釋資料",
55
55
  "🏘️ 正在算繪 3D",
56
56
  "📷 正在初始化 360° 相片",
57
- "🟠 正在平衡色彩"
57
+ "🟠 正在平衡色彩",
58
+ "💯 正在計算品質分數 ©"
58
59
  ],
59
60
  "map_background": "地圖背景",
60
61
  "map_background_aerial": "衛星",
@@ -65,7 +66,7 @@
65
66
  "map_theme_age_2": "< 2 年",
66
67
  "map_theme_age_3": "< 1 年",
67
68
  "map_theme_age_4": "< 1 個月",
68
- "map_theme_default": "預設",
69
+ "map_theme_default": "經典",
69
70
  "map_theme_type": "相機類型",
70
71
  "metadata": "相片詮釋資料",
71
72
  "metadata_camera": "相機",
@@ -125,7 +126,15 @@
125
126
  "report_email": "您的 email",
126
127
  "report_nature_label": "問題的類型",
127
128
  "report_nature": {
128
- "": "選擇問題的類型…"
129
+ "": "選擇問題的類型…",
130
+ "blur_missing": "可以看見人臉或車牌",
131
+ "blur_excess": "不需要模糊的物件被模糊處理了",
132
+ "inappropriate": "不當的相片 (不相關、裸體…)",
133
+ "privacy": "可以看見私人的道路或資產",
134
+ "picture_low_quality": "相片的品質很差",
135
+ "mislocated": "相片在地圖上的位置不正確",
136
+ "copyright": "相片侵犯了版權",
137
+ "other": "任何其他類型的問題"
129
138
  },
130
139
  "share_embed_docs": "深入了解嵌入設定值",
131
140
  "error_retry": "請稍後再試",
@@ -135,13 +144,27 @@
135
144
  "report_whole_sequence": "這個問題影響整個序列",
136
145
  "report_details": "更多資訊",
137
146
  "report_details_placeholder": "選填,您可以詳述此問題和它造成的影響",
138
- "report_wait": "正在傳送報告..."
147
+ "report_wait": "正在傳送報告...",
148
+ "report_success": "已成功發送報告,我們將儘快對它進行審核。",
149
+ "report_failure": "建立報告時發送錯誤: {e},請稍後再試。",
150
+ "report_auth": "此報告將使用您的帳戶「{a}」發送",
151
+ "filter_qualityscore": "品質分數",
152
+ "filter_qualityscore_help": "點擊以啟用或停用",
153
+ "map_theme_score": "品質分數",
154
+ "metadata_camera_resolution": "解析度",
155
+ "metadata_quality": "品質分數",
156
+ "metadata_quality_help": "了解有關品質分數的更多資訊",
157
+ "metadata_quality_gps_score": "定位分數",
158
+ "metadata_quality_resolution_score": "解析度分數",
159
+ "metadata_quality_missing": "相片未包含資訊",
160
+ "report": "檢舉相片"
139
161
  },
140
162
  "map": {
141
163
  "loading": "正在載入…",
142
164
  "no_thumbnail": "沒有縮圖",
143
165
  "not_public": "未公開顯示",
144
- "thumbnail": "遊標懸停相片的縮圖"
166
+ "thumbnail": "遊標懸停相片的縮圖",
167
+ "slow_loading": "地圖載入速度緩慢而且可能出現損壞"
145
168
  },
146
169
  "psv": {
147
170
  "ctrlZoom": "使用 CTRL + 滑鼠滾輪縮放圖片",
package/src/utils/Map.js CHANGED
@@ -181,7 +181,9 @@ export function combineStyles(parent, options) {
181
181
 
182
182
  // Override labels to use appropriate language
183
183
  if(style.metadata["panoramax:locales"]) {
184
- const prefLang = autoDetectLocale(style.metadata["panoramax:locales"], "latin");
184
+ let prefLang = parent._options.lang || autoDetectLocale(style.metadata["panoramax:locales"], "latin");
185
+ if(prefLang.includes("-")) { prefLang = prefLang.split("-")[0]; }
186
+ if(prefLang.includes("_")) { prefLang = prefLang.split("_")[0]; }
185
187
  style.layers.forEach(l => {
186
188
  if(isLabelLayer(l) && l.layout["text-field"].includes("name:latin")) {
187
189
  l.layout["text-field"] = [