forked from MapComplete/MapComplete
		
	Quickfix: hide bicycle shops on bike_shops query parameter (which got changed due to renames)
This commit is contained in:
		
							parent
							
								
									f6519073d0
								
							
						
					
					
						commit
						9675cb0eb4
					
				
					 2 changed files with 15 additions and 1 deletions
				
			
		|  | @ -2,7 +2,7 @@ import { Utils } from "../Utils"; | ||||||
| 
 | 
 | ||||||
| export default class Constants { | export default class Constants { | ||||||
|      |      | ||||||
|     public static vNumber = "0.6.8a"; |     public static vNumber = "0.6.8b"; | ||||||
| 
 | 
 | ||||||
|     // The user journey states thresholds when a new feature gets unlocked
 |     // The user journey states thresholds when a new feature gets unlocked
 | ||||||
|     public static userJourney = { |     public static userJourney = { | ||||||
|  |  | ||||||
							
								
								
									
										14
									
								
								index.ts
									
										
									
									
									
								
							
							
						
						
									
										14
									
								
								index.ts
									
										
									
									
									
								
							|  | @ -67,6 +67,20 @@ defaultLayout = QueryParameters.GetQueryParameter("layout", defaultLayout, "The | ||||||
| let layoutToUse: LayoutConfig = AllKnownLayouts.allKnownLayouts.get(defaultLayout.toLowerCase()); | let layoutToUse: LayoutConfig = AllKnownLayouts.allKnownLayouts.get(defaultLayout.toLowerCase()); | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
|  | // WOrkaround/legacy
 | ||||||
|  | if(layoutToUse.id === "cyclofix"){ | ||||||
|  |     QueryParameters.GetQueryParameter("layer-bike_shops", "true", "Legacy - keep De Fietsambassade working").syncWith( | ||||||
|  |         QueryParameters.GetQueryParameter("layer-bike_shop","true","Legacy - keep De Fietsambassade working") | ||||||
|  |     ) | ||||||
|  |     const bikeShops = QueryParameters.GetQueryParameter("layer-bike_cafes", "true", "Legacy - keep De Fietsambassade working").syncWith( | ||||||
|  |         QueryParameters.GetQueryParameter("layer-bike_cafe","true","Legacy - keep De Fietsambassade working") | ||||||
|  |     ) | ||||||
|  |     if(!bikeShops.data){ | ||||||
|  |         QueryParameters.GetQueryParameter("layer-bike_themed_object", "Legacy - hide bike themed object").setData("false") | ||||||
|  |     } | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | 
 | ||||||
| const userLayoutParam = QueryParameters.GetQueryParameter("userlayout", "false"); | const userLayoutParam = QueryParameters.GetQueryParameter("userlayout", "false"); | ||||||
| const layoutFromBase64 = decodeURIComponent(userLayoutParam.data); | const layoutFromBase64 = decodeURIComponent(userLayoutParam.data); | ||||||
| document.getElementById('centermessage').innerText = ''; | document.getElementById('centermessage').innerText = ''; | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue