Quickfix: hide bicycle shops on bike_shops query parameter (which got changed due to renames)

This commit is contained in:
pietervdvn 2021-04-21 18:27:15 +02:00
parent f6519073d0
commit 9675cb0eb4
2 changed files with 15 additions and 1 deletions

View file

@ -2,7 +2,7 @@ import { Utils } from "../Utils";
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
public static userJourney = {

View file

@ -67,6 +67,20 @@ defaultLayout = QueryParameters.GetQueryParameter("layout", defaultLayout, "The
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 layoutFromBase64 = decodeURIComponent(userLayoutParam.data);
document.getElementById('centermessage').innerText = '';