forked from MapComplete/MapComplete
		
	Fix etymology theme
This commit is contained in:
		
							parent
							
								
									3570cfbaa8
								
							
						
					
					
						commit
						eae05b21c6
					
				
					 8 changed files with 284 additions and 320 deletions
				
			
		|  | @ -2,9 +2,8 @@ import {Utils} from "../Utils"; | |||
| 
 | ||||
| export default class Constants { | ||||
| 
 | ||||
|     public static vNumber = "0.12.7"; | ||||
|     public static vNumber = "0.12.8"; | ||||
|     public static ImgurApiKey = '7070e7167f0a25a' | ||||
|     public static readonly mapillary_client_token_v3 = 'TXhLaWthQ1d4RUg0czVxaTVoRjFJZzowNDczNjUzNmIyNTQyYzI2' | ||||
|     public static readonly mapillary_client_token_v4 = "MLY|4441509239301885|b40ad2d3ea105435bd40c7e76993ae85" | ||||
| 
 | ||||
|     public static defaultOverpassUrls = [ | ||||
|  |  | |||
|  | @ -71,6 +71,11 @@ export default class WithContextLoader { | |||
|         } | ||||
|         for (let i = 0; i < tagRenderings.length; i++) { | ||||
|             let renderingJson = tagRenderings[i] | ||||
|             if(renderingJson === "questions"){ | ||||
|                 renderingJson = { | ||||
|                     id: "questions" | ||||
|                 } | ||||
|             } | ||||
|             if (typeof renderingJson === "string") { | ||||
|                 renderingJson = {builtin: renderingJson, override: undefined} | ||||
|             } | ||||
|  |  | |||
|  | @ -138,7 +138,13 @@ | |||
|         "en": "{multi_apply(_same_name_ids, name:etymology:wikidata;name:etymology, Auto-applying data on all segments with the same name, true)}" | ||||
|       } | ||||
|     }, | ||||
|     "wikipedia" | ||||
|     { | ||||
|       "id": "wikipedia", | ||||
|       "render": { | ||||
|         "en": "A Wikipedia article about this <b>street</b> exists:<br/>{wikipedia():max-height:25rem}" | ||||
|       }, | ||||
|       "condition": "wikidata~*" | ||||
|     } | ||||
|   ], | ||||
|   "mapRendering": [ | ||||
|     { | ||||
|  |  | |||
|  | @ -2,8 +2,8 @@ | |||
|   "id": "natuurpunt", | ||||
|   "customCss": "./assets/themes/natuurpunt/natuurpunt.css", | ||||
|   "title": { | ||||
|     "nl": "Natuurgebieden", | ||||
|     "en": "Nature Reserves", | ||||
|     "nl": "De Natuurpunt-kaart", | ||||
|     "en": "The map of Natuurpunt", | ||||
|     "de": "Naturschutzgebiete", | ||||
|     "nb_NO": "Naturreservater", | ||||
|     "it": "Riserve naturali" | ||||
|  |  | |||
|  | @ -2670,6 +2670,9 @@ | |||
|       "street-name-sign-image": { | ||||
|         "render": "{image_carousel(image:streetsign)}<br/>{image_upload(image:streetsign, Add image of a street name sign)}" | ||||
|       }, | ||||
|       "wikipedia": { | ||||
|         "render": "A Wikipedia article about this <b>street</b> exists:<br/>{wikipedia():max-height:25rem}" | ||||
|       }, | ||||
|       "wikipedia-etymology": { | ||||
|         "question": "What is the Wikidata-item that this object is named after?", | ||||
|         "render": "<h3>Wikipedia article of the name giver</h3>{wikipedia(name:etymology:wikidata):max-height:20rem}" | ||||
|  |  | |||
|  | @ -1084,7 +1084,7 @@ | |||
|   "natuurpunt": { | ||||
|     "description": "On this map you can find all the nature reserves that Natuurpunt offers ", | ||||
|     "shortDescription": "This map shows the nature reserves of Natuurpunt", | ||||
|     "title": "Nature Reserves" | ||||
|     "title": "The map of Natuurpunt" | ||||
|   }, | ||||
|   "observation_towers": { | ||||
|     "description": "Publicly accessible towers to enjoy the view", | ||||
|  |  | |||
|  | @ -856,7 +856,7 @@ | |||
|   "natuurpunt": { | ||||
|     "description": "Op deze kaart vind je alle natuurgebieden die Natuurpunt ter beschikking stelt", | ||||
|     "shortDescription": "Deze kaart toont de natuurgebieden van Natuurpunt", | ||||
|     "title": "Natuurgebieden" | ||||
|     "title": "De Natuurpunt-kaart" | ||||
|   }, | ||||
|   "observation_towers": { | ||||
|     "description": "Publieke uitkijktorens om van het panorama te genieten", | ||||
|  |  | |||
|  | @ -28,8 +28,7 @@ | |||
|         "name": "露營地", | ||||
|         "presets": { | ||||
|           "0": { | ||||
|                         "title": "露營地", | ||||
|                         "description": "新增正式露營地點,通常是設計給過夜的露營者的地點。看起來像是真的露營地或是一般的停車場,而且也許沒有任何指標,但在城鎮被定議地點。如果一般給露營者的停車場並不是用來過夜,則不是露營地點 " | ||||
|             "title": "露營地" | ||||
|           } | ||||
|         }, | ||||
|         "tagRenderings": { | ||||
|  | @ -147,46 +146,6 @@ | |||
|               } | ||||
|             }, | ||||
|             "question": "你能在這裡丟棄廁所化學廢棄物嗎?" | ||||
|                     }, | ||||
|                     "dumpstations-access": { | ||||
|                         "mappings": { | ||||
|                             "0": { | ||||
|                                 "then": "你需要網路鑰匙/密碼來使用這個設施" | ||||
|                             }, | ||||
|                             "1": { | ||||
|                                 "then": "你需要是露營/露營地的客戶才能使用這一地方" | ||||
|                             }, | ||||
|                             "3": { | ||||
|                                 "then": "任何人都可以使用這個垃圾站" | ||||
|                             }, | ||||
|                             "2": { | ||||
|                                 "then": "任何人都可以使用這個衛生廢棄物站" | ||||
|                             } | ||||
|                         }, | ||||
|                         "question": "誰可以使用這個垃圾站?" | ||||
|                     }, | ||||
|                     "dumpstations-fee": { | ||||
|                         "mappings": { | ||||
|                             "0": { | ||||
|                                 "then": "你需要付費才能使用" | ||||
|                             }, | ||||
|                             "1": { | ||||
|                                 "then": "這裡可以免費使用" | ||||
|                             } | ||||
|                         }, | ||||
|                         "question": "這個地方需要付費嗎?" | ||||
|                     }, | ||||
|                     "dumpstations-charge": { | ||||
|                         "render": "這個地方收費 {charge}", | ||||
|                         "question": "這個地方收費多少?" | ||||
|                     } | ||||
|                 }, | ||||
|                 "description": "垃圾處理站", | ||||
|                 "name": "垃圾處理站", | ||||
|                 "presets": { | ||||
|                     "0": { | ||||
|                         "title": "垃圾丟棄站", | ||||
|                         "description": "新增垃圾站,這通常是提供露營駕駛丟棄廢水與化學性廁所廢水的地方,也會有飲用水與電力。" | ||||
|           } | ||||
|         } | ||||
|       } | ||||
|  | @ -311,13 +270,5 @@ | |||
|     "description": "繪製所有樹木!", | ||||
|     "shortDescription": "所有樹木的地圖", | ||||
|     "title": "樹木" | ||||
|     }, | ||||
|     "binoculars": { | ||||
|         "shortDescription": "固定望遠鏡的地圖", | ||||
|         "title": "望遠鏡", | ||||
|         "description": "固定一地的望遠鏡地圖,特別是能夠在旅遊景點、觀景點、城鎮環景點,或是自然保護區找到。" | ||||
|     }, | ||||
|     "cafes_and_pubs": { | ||||
|         "title": "咖啡廳與酒吧" | ||||
|   } | ||||
| } | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue