Various bug fixes, add layer selection and background selection as parameter to the URL (fix #86, fix #84)

This commit is contained in:
Pieter Vander Vennet 2020-08-08 02:16:42 +02:00
parent e35c85fc55
commit 97a69ff903
14 changed files with 111 additions and 25 deletions

View file

@ -178,7 +178,6 @@ export class Widths extends LayerDefinition {
this.elementsToShow = [
new TagRenderingOptions({
question: "Mogen auto's hier parkeren?",
mappings: [
{
k: this._bothSideParking,

View file

@ -40,6 +40,7 @@ export class Layout {
* This number influences this
*/
public widenFactor: number = 0.07;
public defaultBackground: string = "osm";
/**
*

View file

@ -91,6 +91,8 @@ export class StreetWidth extends Layout{
this.enableUserBadge = false;
this.enableAdd = false;
this.hideFromOverview = true;
this.enableMoreQuests = false;
this.enableShareScreen = false;
}
}

View file

@ -5,13 +5,13 @@ import {TagRenderingOptions} from "../../TagRenderingOptions";
export default class BikeStationStand extends TagRenderingOptions {
constructor() {
const to = Translations
const to = Translations.t.cyclofix.station.stand;
super({
priority: 10,
question: "Does this bike station have a hook to suspend your bike with or a stand to elevate it?",
question: to.question,
mappings: [
{k: new Tag("service:bicycle:stand", "yes"), txt: "There is a hook or stand"},
{k: new Tag("service:bicycle:stand", "no"), txt: "There is no hook or stand"},
{k: new Tag("service:bicycle:stand", "yes"), txt: to.yes},
{k: new Tag("service:bicycle:stand", "no"), txt: to.no},
]
});
}