Merge branches
|
@ -14,9 +14,9 @@ import {NatureReserves} from "./Layers/NatureReserves";
|
|||
import {Natuurpunt} from "./Layouts/Natuurpunt";
|
||||
|
||||
export class AllKnownLayouts {
|
||||
public static allSets: any = AllKnownLayouts.AllLayouts();
|
||||
public static allSets = AllKnownLayouts.AllLayouts();
|
||||
|
||||
private static AllLayouts(): any {
|
||||
private static AllLayouts(): Map<string, Layout> {
|
||||
const all = new All();
|
||||
const layouts: Layout[] = [
|
||||
new Groen(),
|
||||
|
@ -32,7 +32,7 @@ export class AllKnownLayouts {
|
|||
new Statues(),
|
||||
*/
|
||||
];
|
||||
const allSets = {};
|
||||
const allSets: Map<string, Layout> = new Map();
|
||||
for (const layout of layouts) {
|
||||
allSets[layout.name] = layout;
|
||||
all.layers = all.layers.concat(layout.layers);
|
||||
|
|
|
@ -15,7 +15,7 @@ export class LayerDefinition {
|
|||
/**
|
||||
* This name is shown in the 'add XXX button'
|
||||
*/
|
||||
name: string;
|
||||
name: string | UIElement;
|
||||
/**
|
||||
* These tags are added whenever a new point is added by the user on the map.
|
||||
* This is the ideal place to add extra info, such as "fixme=added by MapComplete, geometry should be checked"
|
||||
|
@ -72,7 +72,15 @@ export class LayerDefinition {
|
|||
*/
|
||||
maxAllowedOverlapPercentage: number = undefined;
|
||||
|
||||
|
||||
/**
|
||||
* If true, then ways (and polygons) will be converted to a 'point' at the center instead before further processing
|
||||
*/
|
||||
wayHandling: number = 0;
|
||||
|
||||
static WAYHANDLING_DEFAULT = 0;
|
||||
static WAYHANDLING_CENTER_ONLY = 1;
|
||||
static WAYHANDLING_CENTER_AND_WAY = 2;
|
||||
|
||||
constructor(options: {
|
||||
name: string,
|
||||
newElementTags: Tag[],
|
||||
|
@ -82,13 +90,13 @@ export class LayerDefinition {
|
|||
title?: TagRenderingOptions,
|
||||
elementsToShow?: TagDependantUIElementConstructor[],
|
||||
maxAllowedOverlapPercentage?: number,
|
||||
wayHandling?: number,
|
||||
style?: (tags: any) => {
|
||||
color: string,
|
||||
icon: any
|
||||
}
|
||||
} = undefined) {
|
||||
if (options === undefined) {
|
||||
console.log("No options!")
|
||||
return;
|
||||
}
|
||||
this.name = options.name;
|
||||
|
@ -100,11 +108,12 @@ export class LayerDefinition {
|
|||
this.title = options.title;
|
||||
this.elementsToShow = options.elementsToShow;
|
||||
this.style = options.style;
|
||||
console.log(this)
|
||||
this.wayHandling = options.wayHandling ?? LayerDefinition.WAYHANDLING_DEFAULT;
|
||||
}
|
||||
|
||||
asLayer(basemap: Basemap, allElements: ElementStorage, changes: Changes, userDetails: UIEventSource<UserDetails>, selectedElement: UIEventSource<any>,
|
||||
showOnPopup: (tags: UIEventSource<(any)>) => UIElement):
|
||||
asLayer(basemap: Basemap, allElements: ElementStorage, changes: Changes, userDetails: UIEventSource<UserDetails>,
|
||||
selectedElement: UIEventSource<{feature: any}>,
|
||||
showOnPopup: (tags: UIEventSource<(any)>, feature: any) => UIElement):
|
||||
FilteredLayer {
|
||||
return new FilteredLayer(
|
||||
this,
|
||||
|
|
|
@ -5,12 +5,15 @@ import * as L from "leaflet";
|
|||
import FixedText from "../Questions/FixedText";
|
||||
import ParkingType from "../Questions/bike/ParkingType";
|
||||
import {ImageCarouselWithUploadConstructor} from "../../UI/Image/ImageCarouselWithUpload";
|
||||
import BikeStationOperator from "../Questions/bike/StationOperator";
|
||||
import Translations from "../../UI/i18n/Translations";
|
||||
import ParkingOperator from "../Questions/bike/ParkingOperator";
|
||||
|
||||
|
||||
export default class BikeParkings extends LayerDefinition {
|
||||
constructor() {
|
||||
super();
|
||||
this.name = "bike_parking";
|
||||
this.name = Translations.t.cyclofix.parking.name;
|
||||
this.icon = "./assets/bike/parking.svg";
|
||||
this.overpassFilter = new Tag("amenity", "bicycle_parking");
|
||||
this.newElementTags = [
|
||||
|
@ -20,12 +23,13 @@ export default class BikeParkings extends LayerDefinition {
|
|||
|
||||
this.minzoom = 13;
|
||||
this.style = this.generateStyleFunction();
|
||||
this.title = new FixedText("Fietsparking");
|
||||
this.title = new FixedText(Translations.t.cyclofix.parking.title)
|
||||
this.elementsToShow = [
|
||||
new ImageCarouselWithUploadConstructor(),
|
||||
new OperatorTag(),
|
||||
//new ParkingOperator(),
|
||||
new ParkingType()
|
||||
];
|
||||
this.wayHandling = LayerDefinition.WAYHANDLING_CENTER_AND_WAY;
|
||||
|
||||
}
|
||||
|
||||
|
@ -36,7 +40,8 @@ export default class BikeParkings extends LayerDefinition {
|
|||
color: "#00bb00",
|
||||
icon: L.icon({
|
||||
iconUrl: self.icon,
|
||||
iconSize: [50, 50]
|
||||
iconSize: [50, 50],
|
||||
iconAnchor: [25,50]
|
||||
})
|
||||
};
|
||||
};
|
||||
|
|
82
Customizations/Layers/BikeShops.ts
Normal file
|
@ -0,0 +1,82 @@
|
|||
import { LayerDefinition } from "../LayerDefinition";
|
||||
import Translations from "../../UI/i18n/Translations";
|
||||
import {And, Tag} from "../../Logic/TagsFilter";
|
||||
import FixedText from "../Questions/FixedText";
|
||||
import { ImageCarouselWithUploadConstructor } from "../../UI/Image/ImageCarouselWithUpload";
|
||||
import * as L from "leaflet";
|
||||
import ShopRetail from "../Questions/bike/ShopRetail";
|
||||
import ShopPump from "../Questions/bike/ShopPump";
|
||||
import ShopRental from "../Questions/bike/ShopRental";
|
||||
import ShopRepair from "../Questions/bike/ShopRepair";
|
||||
import ShopDiy from "../Questions/bike/ShopDiy";
|
||||
import ShopName from "../Questions/bike/ShopName";
|
||||
import ShopSecondHand from "../Questions/bike/ShopSecondHand";
|
||||
import { TagRenderingOptions } from "../TagRendering";
|
||||
|
||||
|
||||
export default class BikeShops extends LayerDefinition {
|
||||
private readonly sellsBikes = new Tag("service:bicycle:retail", "yes")
|
||||
private readonly repairsBikes = new Tag("service:bicycle:repair", "yes")
|
||||
|
||||
constructor() {
|
||||
super();
|
||||
this.name = Translations.t.cyclofix.shop.name
|
||||
this.icon = "./assets/bike/repair_shop.svg"
|
||||
this.overpassFilter = new Tag("shop", "bicycle");
|
||||
this.newElementTags = [
|
||||
new Tag("shop", "bicycle"),
|
||||
]
|
||||
this.maxAllowedOverlapPercentage = 10
|
||||
this.wayHandling = LayerDefinition.WAYHANDLING_CENTER_AND_WAY
|
||||
|
||||
this.minzoom = 13;
|
||||
this.style = this.generateStyleFunction();
|
||||
this.title = new TagRenderingOptions({
|
||||
mappings: [
|
||||
{k: new And([new Tag("name", "*"), this.sellsBikes]), txt: Translations.t.cyclofix.shop.titleShopNamed},
|
||||
{
|
||||
k: new And([new Tag("name", "*"), new Tag("service:bicycle:retail", "")]),
|
||||
txt: Translations.t.cyclofix.shop.titleShop
|
||||
},
|
||||
{
|
||||
k: new And([new Tag("name", "*"), new Tag("service:bicycle:retail", "no")]),
|
||||
txt: Translations.t.cyclofix.shop.titleRepairNamed
|
||||
},
|
||||
{k: this.sellsBikes, txt: Translations.t.cyclofix.shop.titleShop},
|
||||
{k: new Tag("service:bicycle:retail", " "), txt: Translations.t.cyclofix.shop.title},
|
||||
{k: new Tag("service:bicycle:retail", "no"), txt: Translations.t.cyclofix.shop.titleRepair},
|
||||
]
|
||||
})
|
||||
|
||||
this.elementsToShow = [
|
||||
new ImageCarouselWithUploadConstructor(),
|
||||
new ShopName(),
|
||||
new ShopRetail(),
|
||||
new ShopRental(),
|
||||
new ShopRepair(),
|
||||
new ShopPump(),
|
||||
new ShopDiy(),
|
||||
new ShopSecondHand()
|
||||
]
|
||||
}
|
||||
|
||||
private generateStyleFunction() {
|
||||
const self = this;
|
||||
return function (tags: any) {
|
||||
let icon = "assets/bike/repair_shop.svg";
|
||||
|
||||
if (self.sellsBikes.matchesProperties(tags)) {
|
||||
icon = "assets/bike/shop.svg";
|
||||
}
|
||||
|
||||
return {
|
||||
color: "#00bb00",
|
||||
icon: L.icon({
|
||||
iconUrl: self.icon,
|
||||
iconSize: [50, 50],
|
||||
iconAnchor: [25, 50]
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -12,6 +12,7 @@ import PumpManometer from "../Questions/bike/PumpManometer";
|
|||
import {ImageCarouselWithUploadConstructor} from "../../UI/Image/ImageCarouselWithUpload";
|
||||
import PumpOperational from "../Questions/bike/PumpOperational";
|
||||
import PumpValves from "../Questions/bike/PumpValves";
|
||||
import Translations from "../../UI/i18n/Translations";
|
||||
|
||||
|
||||
export default class BikeStations extends LayerDefinition {
|
||||
|
@ -22,7 +23,7 @@ export default class BikeStations extends LayerDefinition {
|
|||
|
||||
constructor() {
|
||||
super();
|
||||
this.name = "bike station or pump";
|
||||
this.name = Translations.t.cyclofix.station.name;
|
||||
this.icon = "./assets/wrench.svg";
|
||||
|
||||
this.overpassFilter = new And([
|
||||
|
@ -36,7 +37,8 @@ export default class BikeStations extends LayerDefinition {
|
|||
|
||||
this.minzoom = 13;
|
||||
this.style = this.generateStyleFunction();
|
||||
this.title = new FixedText("Bike station");
|
||||
this.title = new FixedText(Translations.t.cyclofix.station.title)
|
||||
this.wayHandling = LayerDefinition.WAYHANDLING_CENTER_AND_WAY
|
||||
|
||||
this.elementsToShow = [
|
||||
new ImageCarouselWithUploadConstructor(),
|
||||
|
@ -50,7 +52,7 @@ export default class BikeStations extends LayerDefinition {
|
|||
new PumpValves().OnlyShowIf(this.pump),
|
||||
new PumpOperational().OnlyShowIf(this.pump),
|
||||
|
||||
new BikeStationOperator(),
|
||||
// new BikeStationOperator(),
|
||||
// new BikeStationBrand() DISABLED
|
||||
];
|
||||
}
|
||||
|
@ -61,26 +63,26 @@ export default class BikeStations extends LayerDefinition {
|
|||
const hasPump = self.pump.matchesProperties(properties)
|
||||
const isOperational = self.pumpOperationalOk.matchesProperties(properties)
|
||||
const hasTools = self.tools.matchesProperties(properties)
|
||||
let iconName = ""
|
||||
if (hasPump) {
|
||||
if (hasTools) {
|
||||
iconName = "repair_station_pump.svg"
|
||||
let iconName = "repair_station.svg";
|
||||
if (hasTools && hasPump && isOperational) {
|
||||
iconName = "repair_station_pump.svg"
|
||||
}else if(hasTools){
|
||||
iconName = "repair_station.svg"
|
||||
}else if(hasPump){
|
||||
if (isOperational) {
|
||||
iconName = "pump.svg"
|
||||
} else {
|
||||
if (isOperational) {
|
||||
iconName = "pump.svg"
|
||||
} else {
|
||||
iconName = "pump_broken.svg"
|
||||
}
|
||||
iconName = "broken_pump.svg"
|
||||
}
|
||||
} else {
|
||||
iconName = "repair_station.svg"
|
||||
}
|
||||
|
||||
const iconUrl = `./assets/bike/${iconName}`
|
||||
return {
|
||||
color: "#00bb00",
|
||||
icon: L.icon({
|
||||
iconUrl: iconUrl,
|
||||
iconSize: [50, 50]
|
||||
iconSize: [50, 50],
|
||||
iconAnchor: [25,50]
|
||||
})
|
||||
};
|
||||
};
|
||||
|
|
|
@ -1,10 +1,8 @@
|
|||
import {LayerDefinition} from "../LayerDefinition";
|
||||
import L from "leaflet";
|
||||
import {And, Or, Regex, Tag} from "../../Logic/TagsFilter";
|
||||
import {QuestionDefinition} from "../../Logic/Question";
|
||||
import {And, Or, Tag} from "../../Logic/TagsFilter";
|
||||
import {TagRenderingOptions} from "../TagRendering";
|
||||
import {NameInline} from "../Questions/NameInline";
|
||||
import {NameQuestion} from "../Questions/NameQuestion";
|
||||
import {ImageCarouselWithUploadConstructor} from "../../UI/Image/ImageCarouselWithUpload";
|
||||
|
||||
export class Bookcases extends LayerDefinition {
|
||||
|
@ -121,7 +119,10 @@ export class Bookcases extends LayerDefinition {
|
|||
key: "ref",
|
||||
template: "Het referentienummer is $$$",
|
||||
renderTemplate: "Gekend als {brand} <b>{ref}</b>"
|
||||
}
|
||||
},
|
||||
mappings: [
|
||||
{k: new And([new Tag("brand",""), new Tag("nobrand","yes"), new Tag("ref", "")]), txt: "Maakt geen deel uit van een groter netwerk"}
|
||||
]
|
||||
}).OnlyShowIf(new Tag("brand","*")),
|
||||
|
||||
new TagRenderingOptions({
|
||||
|
|
|
@ -10,8 +10,8 @@ export class DrinkingWater extends LayerDefinition {
|
|||
|
||||
constructor() {
|
||||
super();
|
||||
this.name = "drinking_water";
|
||||
this.icon = "./assets/bug.svg";
|
||||
this.name = "drinking water";
|
||||
this.icon = "./assets/bike/drinking_water.svg";
|
||||
|
||||
this.overpassFilter = new Or([
|
||||
new And([
|
||||
|
@ -24,6 +24,7 @@ export class DrinkingWater extends LayerDefinition {
|
|||
new Tag("amenity", "drinking_water"),
|
||||
];
|
||||
this.maxAllowedOverlapPercentage = 10;
|
||||
this.wayHandling = LayerDefinition.WAYHANDLING_CENTER_AND_WAY
|
||||
|
||||
this.minzoom = 13;
|
||||
this.style = this.generateStyleFunction();
|
||||
|
@ -52,7 +53,8 @@ export class DrinkingWater extends LayerDefinition {
|
|||
color: "#00bb00",
|
||||
icon: new L.icon({
|
||||
iconUrl: self.icon,
|
||||
iconSize: [40, 40]
|
||||
iconSize: [50, 50],
|
||||
iconAnchor: [25,50]
|
||||
})
|
||||
};
|
||||
};
|
||||
|
|
|
@ -25,6 +25,13 @@ export class NatureReserves extends LayerDefinition {
|
|||
this.style = this.generateStyleFunction();
|
||||
this.elementsToShow = [
|
||||
new ImageCarouselWithUploadConstructor(),
|
||||
new TagRenderingOptions({
|
||||
freeform: {
|
||||
key: "_surface",
|
||||
renderTemplate: "{_surface}m²",
|
||||
template: "$$$"
|
||||
}
|
||||
}),
|
||||
new NameQuestion(),
|
||||
new AccessTag(),
|
||||
new OperatorTag(),
|
||||
|
|
|
@ -1,20 +1,30 @@
|
|||
import {LayerDefinition} from "./LayerDefinition";
|
||||
import {UIElement} from "../UI/UIElement";
|
||||
import {FixedUiElement} from "../UI/Base/FixedUiElement";
|
||||
import Translation from "../UI/i18n/Translation";
|
||||
import Translations from "../UI/i18n/Translations";
|
||||
import Locale from "../UI/i18n/Locale";
|
||||
import {VariableUiElement} from "../UI/Base/VariableUIElement";
|
||||
import {OsmConnection, UserDetails} from "../Logic/OsmConnection";
|
||||
import {UIEventSource} from "../UI/UIEventSource";
|
||||
|
||||
/**
|
||||
* A layout is a collection of settings of the global view (thus: welcome text, title, selection of layers).
|
||||
*/
|
||||
export class Layout {
|
||||
|
||||
public name: string;
|
||||
public title: string;
|
||||
public title: UIElement;
|
||||
public layers: LayerDefinition[];
|
||||
public welcomeMessage: string;
|
||||
public gettingStartedPlzLogin: string;
|
||||
public welcomeBackMessage: string;
|
||||
public welcomeMessage: UIElement;
|
||||
public gettingStartedPlzLogin: UIElement;
|
||||
public welcomeBackMessage: UIElement;
|
||||
public welcomeTail: UIElement;
|
||||
|
||||
public startzoom: number;
|
||||
public supportedLanguages: string[];
|
||||
public startLon: number;
|
||||
public startLat: number;
|
||||
public welcomeTail: string;
|
||||
|
||||
public locationContains: string[];
|
||||
|
||||
|
@ -33,26 +43,79 @@ export class Layout {
|
|||
*/
|
||||
constructor(
|
||||
name: string,
|
||||
title: string,
|
||||
supportedLanguages: string[],
|
||||
title: UIElement | string,
|
||||
layers: LayerDefinition[],
|
||||
startzoom: number,
|
||||
startLat: number,
|
||||
startLon: number,
|
||||
welcomeMessage: string,
|
||||
gettingStartedPlzLogin: string = "Please login to get started",
|
||||
welcomeBackMessage: string = "You are logged in. Welcome back!",
|
||||
welcomeTail: string = ""
|
||||
welcomeMessage: UIElement | string,
|
||||
gettingStartedPlzLogin: UIElement | string = Translations.t.general.getStarted,
|
||||
welcomeBackMessage: UIElement | string = Translations.t.general.welcomeBack,
|
||||
welcomeTail: UIElement | string = ""
|
||||
) {
|
||||
this.title = title;
|
||||
this.supportedLanguages = supportedLanguages;
|
||||
this.title = typeof (title) === 'string' ? new FixedUiElement(title) : title;
|
||||
this.startLon = startLon;
|
||||
this.startLat = startLat;
|
||||
this.startzoom = startzoom;
|
||||
this.name = name;
|
||||
this.layers = layers;
|
||||
this.welcomeMessage = welcomeMessage;
|
||||
this.gettingStartedPlzLogin = gettingStartedPlzLogin;
|
||||
this.welcomeBackMessage = welcomeBackMessage;
|
||||
this.welcomeTail = welcomeTail;
|
||||
this.welcomeMessage = Translations.W(welcomeMessage)
|
||||
this.gettingStartedPlzLogin = Translations.W(gettingStartedPlzLogin);
|
||||
this.welcomeBackMessage = Translations.W(welcomeBackMessage);
|
||||
this.welcomeTail = Translations.W(welcomeTail);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
export class WelcomeMessage extends UIElement {
|
||||
private readonly layout: Layout;
|
||||
private readonly userDetails: UIEventSource<UserDetails>;
|
||||
private osmConnection: OsmConnection;
|
||||
|
||||
private readonly description: UIElement;
|
||||
private readonly plzLogIn: UIElement;
|
||||
private readonly welcomeBack: UIElement;
|
||||
private readonly tail: UIElement;
|
||||
|
||||
|
||||
constructor(layout: Layout, osmConnection: OsmConnection) {
|
||||
super(osmConnection.userDetails);
|
||||
this.ListenTo(Locale.language);
|
||||
this.osmConnection = osmConnection;
|
||||
this.layout = layout;
|
||||
this.userDetails = osmConnection.userDetails;
|
||||
|
||||
this.description = layout.welcomeMessage;
|
||||
console.log(" >>>>",this.description, "DESCR ")
|
||||
this.plzLogIn = layout.gettingStartedPlzLogin;
|
||||
this.welcomeBack = layout.welcomeBackMessage;
|
||||
this.tail = layout.welcomeTail;
|
||||
}
|
||||
|
||||
InnerRender(): string {
|
||||
return "<div id='welcomeMessage'>" +
|
||||
this.description.Render() +
|
||||
"<br/>"+
|
||||
(this.userDetails.data.loggedIn ? this.welcomeBack : this.plzLogIn).Render() +
|
||||
"<br/>"+
|
||||
this.tail.Render() +
|
||||
"</div>"
|
||||
|
||||
;
|
||||
/*
|
||||
return new VariableUiElement(
|
||||
this.userDetails.map((userdetails) => {
|
||||
}),
|
||||
function () {
|
||||
|
||||
}).ListenTo(Locale.language);*/
|
||||
}
|
||||
|
||||
protected InnerUpdate(htmlElement: HTMLElement) {
|
||||
this.osmConnection.registerActivateOsmAUthenticationClass()
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -4,6 +4,7 @@ export class All extends Layout{
|
|||
constructor() {
|
||||
super(
|
||||
"all",
|
||||
["en"],
|
||||
"All quest layers",
|
||||
[],
|
||||
15,
|
||||
|
|
|
@ -4,6 +4,7 @@ import * as Layer from "../Layers/Bookcases";
|
|||
export class Bookcases extends Layout{
|
||||
constructor() {
|
||||
super( "bookcases",
|
||||
["nl"],
|
||||
"Open Bookcase Map",
|
||||
[new Layer.Bookcases()],
|
||||
14,
|
||||
|
|
|
@ -1,30 +1,30 @@
|
|||
import {Layout} from "../Layout";
|
||||
import BikeParkings from "../Layers/BikeParkings";
|
||||
import BikeServices from "../Layers/BikeStations";
|
||||
import {GhostBike} from "../Layers/GhostBike";
|
||||
import {DrinkingWater, DrinkingWaterLayer} from "../Layers/DrinkingWater";
|
||||
import BikeShops from "../Layers/BikeShops";
|
||||
import Translations from "../../UI/i18n/Translations";
|
||||
import {DrinkingWater} from "../Layers/DrinkingWater";
|
||||
import Combine from "../../UI/Base/Combine";
|
||||
|
||||
|
||||
export default class Cyclofix extends Layout {
|
||||
constructor() {
|
||||
super(
|
||||
"pomp",
|
||||
"Cyclofix bicycle infrastructure",
|
||||
[new GhostBike(), new BikeServices(), new BikeParkings(), new DrinkingWater()],
|
||||
["en", "nl", "fr"],
|
||||
Translations.t.cyclofix.title,
|
||||
[new BikeServices(), new BikeShops(), new DrinkingWater(), new BikeParkings()],
|
||||
16,
|
||||
50.8465573,
|
||||
4.3516970,
|
||||
|
||||
|
||||
"<h3>Cyclofix bicycle infrastructure</h3>\n" +
|
||||
"\n" +
|
||||
"<p><b>EN></b> On this map we want to collect data about the whereabouts of bicycle pumps and public racks in Brussels." +
|
||||
"As a result, cyclists will be able to quickly find the nearest infrastructure for their needs.</p>" +
|
||||
"<p><b>NL></b> Op deze kaart willen we gegevens verzamelen over de locatie van fietspompen en openbare stelplaatsen in Brussel." +
|
||||
"Hierdoor kunnen fietsers snel de dichtstbijzijnde infrastructuur vinden die voldoet aan hun behoeften.</p>" +
|
||||
"<p><b>FR></b> Sur cette carte, nous voulons collecter des données sur la localisation des pompes à vélo et des supports publics à Bruxelles." +
|
||||
"Les cyclistes pourront ainsi trouver rapidement l'infrastructure la plus proche de leurs besoins.</p>"
|
||||
,
|
||||
"", "");
|
||||
/* Translations.t.cyclofix.title/*/
|
||||
new Combine([
|
||||
"<h3>",
|
||||
Translations.t.cyclofix.title,
|
||||
"</h3><br/><p>",
|
||||
Translations.t.cyclofix.description,
|
||||
"</p>"
|
||||
])//*/
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -4,6 +4,7 @@ import {GrbToFix} from "../Layers/GrbToFix";
|
|||
export class GRB extends Layout {
|
||||
constructor() {
|
||||
super("grb",
|
||||
["en"],
|
||||
"Grb import fix tool",
|
||||
[new GrbToFix()],
|
||||
15,
|
||||
|
|
|
@ -7,6 +7,7 @@ export class Groen extends Layout {
|
|||
|
||||
constructor() {
|
||||
super("buurtnatuur",
|
||||
["nl"],
|
||||
"Buurtnatuur",
|
||||
[new NatureReserves(), new Park(), new Bos()],
|
||||
10,
|
||||
|
|
|
@ -5,6 +5,7 @@ import {Map} from "../Layers/Map";
|
|||
export class MetaMap extends Layout{
|
||||
constructor() {
|
||||
super( "metamap",
|
||||
["en"],
|
||||
"Open Map Map",
|
||||
[new Map()],
|
||||
1,
|
||||
|
|
|
@ -7,6 +7,7 @@ export class Natuurpunt extends Layout{
|
|||
constructor() {
|
||||
super(
|
||||
"natuurpunt",
|
||||
["nl"],
|
||||
"De natuur in",
|
||||
[new Birdhide(), new InformationBoard(), new NatureReserves(true)],
|
||||
12,
|
||||
|
|
|
@ -5,6 +5,7 @@ export class Statues extends Layout{
|
|||
constructor() {
|
||||
super( "statues",
|
||||
"Open Artwork Map",
|
||||
["en"],
|
||||
[new Artwork()],
|
||||
10,
|
||||
50.8435,
|
||||
|
|
|
@ -7,6 +7,7 @@ export class StreetWidth extends Layout{
|
|||
|
||||
constructor() {
|
||||
super( "width",
|
||||
["nl"],
|
||||
"Straatbreedtes in Brugge",
|
||||
[new Widths(
|
||||
2,
|
||||
|
|
|
@ -4,6 +4,7 @@ import * as Layer from "../Layers/Toilets";
|
|||
export class Toilets extends Layout{
|
||||
constructor() {
|
||||
super( "toilets",
|
||||
["en"],
|
||||
"Open Toilet Map",
|
||||
[new Layer.Toilets()],
|
||||
12,
|
||||
|
|
|
@ -6,6 +6,7 @@ import { Park } from "../Layers/Park";
|
|||
export class WalkByBrussels extends Layout {
|
||||
constructor() {
|
||||
super("walkbybrussels",
|
||||
["en","fr","nl"],
|
||||
"Drinking Water Spots",
|
||||
[new DrinkingWater(), new Park(), new NatureReserves()],
|
||||
10,
|
||||
|
|
|
@ -1,7 +1,8 @@
|
|||
import { TagRenderingOptions } from "../TagRendering";
|
||||
import {UIElement} from "../../UI/UIElement";
|
||||
|
||||
export default class FixedText extends TagRenderingOptions {
|
||||
constructor(category: string) {
|
||||
constructor(category: string | UIElement) {
|
||||
super({
|
||||
mappings: [
|
||||
{
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
import {TagRenderingOptions} from "../TagRendering";
|
||||
import {And, Tag} from "../../Logic/TagsFilter";
|
||||
import {UIElement} from "../../UI/UIElement";
|
||||
|
||||
|
||||
export class NameInline extends TagRenderingOptions{
|
||||
|
@ -8,7 +9,7 @@ export class NameInline extends TagRenderingOptions{
|
|||
return string.charAt(0).toUpperCase() + string.slice(1);
|
||||
}
|
||||
|
||||
constructor(category: string) {
|
||||
constructor(category: string ) {
|
||||
super({
|
||||
question: "",
|
||||
|
||||
|
|
27
Customizations/Questions/bike/ParkingOperator.ts
Normal file
|
@ -0,0 +1,27 @@
|
|||
import {TagRenderingOptions} from "../../TagRendering";
|
||||
import {Tag, And} from "../../../Logic/TagsFilter";
|
||||
import Translations from "../../../UI/i18n/Translations";
|
||||
|
||||
|
||||
export default class ParkingOperator extends TagRenderingOptions {
|
||||
constructor() {
|
||||
const to = Translations.t.cyclofix.parking.operator
|
||||
super({
|
||||
priority: 15,
|
||||
question: to.question.Render(),
|
||||
freeform: {
|
||||
key: "operator",
|
||||
template: to.template,
|
||||
renderTemplate: to.render,
|
||||
placeholder: Translations.t.cyclofix.freeFormPlaceholder
|
||||
},
|
||||
mappings: [
|
||||
{k: new Tag("operator", "KU Leuven"), txt: "KU Leuven"},
|
||||
{k: new Tag("operator", "Stad Halle"), txt: "Stad Halle"},
|
||||
{k: new Tag("operator", "Saint Gilles - Sint Gillis"), txt: "Saint Gilles - Sint Gillis"},
|
||||
{k: new Tag("operator", "Jette"), txt: "Jette"},
|
||||
{k: new And([new Tag("operator", ""), new Tag("operator:type", "private")]), txt: to.private.Render()}
|
||||
]
|
||||
});
|
||||
}
|
||||
}
|
|
@ -1,38 +1,61 @@
|
|||
import {TagRenderingOptions} from "../../TagRendering";
|
||||
import {Tag} from "../../../Logic/TagsFilter";
|
||||
import Translations from "../../../UI/i18n/Translations";
|
||||
import Combine from "../../../UI/Base/Combine";
|
||||
|
||||
class ParkingTypeHelper {
|
||||
static GenerateMappings() {
|
||||
const images = {
|
||||
stands: "https://upload.wikimedia.org/wikipedia/commons/thumb/d/dc/Bike_racks_at_north-west_of_Westfield_-_geograph.org.uk_-_1041057.jpg/100px-Bike_racks_at_north-west_of_Westfield_-_geograph.org.uk_-_1041057.jpg",
|
||||
wall_loops: "https://wiki.openstreetmap.org/w/images/thumb/c/c2/Bike-parking-wheelbender.jpg/100px-Bike-parking-wheelbender.jpg",
|
||||
handlebar_holder: "https://upload.wikimedia.org/wikipedia/commons/thumb/2/2c/Bicycle_parking_handlebar_holder.jpg/100px-Bicycle_parking_handlebar_holder.jpg",
|
||||
shed: "https://wiki.openstreetmap.org/w/images/thumb/b/b2/Bike-shelter.jpg/100px-Bike-shelter.jpg",
|
||||
rack: "https://wiki.openstreetmap.org/w/images/thumb/4/41/Triton_Bike_Rack.png/100px-Triton_Bike_Rack.png",
|
||||
"two-tier": "https://upload.wikimedia.org/wikipedia/commons/thumb/3/3f/Bicis_a_l%27estaci%C3%B3_de_Leiden.JPG/100px-Bicis_a_l%27estaci%C3%B3_de_Leiden.JPG"
|
||||
};
|
||||
|
||||
|
||||
const toImg = (url) => `<img src=${url}>`
|
||||
const mappings = [];
|
||||
const to = Translations.t.cyclofix.parking.type
|
||||
|
||||
for (const imagesKey in images) {
|
||||
const mapping =
|
||||
{
|
||||
k: new Tag("bicycle_parking", imagesKey),
|
||||
txt: new Combine([
|
||||
to[imagesKey],
|
||||
to.eg,
|
||||
toImg(images[imagesKey])
|
||||
])
|
||||
};
|
||||
|
||||
mappings.push(mapping);
|
||||
|
||||
}
|
||||
|
||||
return mappings;
|
||||
}
|
||||
}
|
||||
|
||||
export default class ParkingType extends TagRenderingOptions {
|
||||
private static images = {
|
||||
stands: "https://upload.wikimedia.org/wikipedia/commons/thumb/d/dc/Bike_racks_at_north-west_of_Westfield_-_geograph.org.uk_-_1041057.jpg/100px-Bike_racks_at_north-west_of_Westfield_-_geograph.org.uk_-_1041057.jpg",
|
||||
wall_loops: "https://wiki.openstreetmap.org/w/images/thumb/c/c2/Bike-parking-wheelbender.jpg/100px-Bike-parking-wheelbender.jpg",
|
||||
handlebar_holder: "https://upload.wikimedia.org/wikipedia/commons/thumb/2/2c/Bicycle_parking_handlebar_holder.jpg/100px-Bicycle_parking_handlebar_holder.jpg",
|
||||
shed: "https://wiki.openstreetmap.org/w/images/thumb/b/b2/Bike-shelter.jpg/100px-Bike-shelter.jpg",
|
||||
"two-tier": "https://upload.wikimedia.org/wikipedia/commons/thumb/3/3f/Bicis_a_l%27estaci%C3%B3_de_Leiden.JPG/100px-Bicis_a_l%27estaci%C3%B3_de_Leiden.JPG"
|
||||
}
|
||||
|
||||
private static toImgTxt(url: string) {
|
||||
return `<img src=${url}>`
|
||||
}
|
||||
|
||||
constructor() {
|
||||
|
||||
const to = Translations.t.cyclofix.parking.type
|
||||
|
||||
|
||||
super({
|
||||
priority: 5,
|
||||
question: "Van welk type is deze fietsenparking?",
|
||||
question: to.question,
|
||||
freeform: {
|
||||
key: "bicycle_parking",
|
||||
extraTags: new Tag("fixme", "Freeform bicycle_parking= tag used: possibly a wrong value"),
|
||||
template: "Iets anders: $$$",
|
||||
renderTemplate: "Dit is een fietsenparking van het type: {bicycle_parking}",
|
||||
placeholder: "Specifieer"
|
||||
template: to.template.txt,
|
||||
renderTemplate: to.render.txt,
|
||||
placeholder: Translations.t.cyclofix.freeFormPlaceholder,
|
||||
},
|
||||
mappings: [
|
||||
{k: new Tag("bicycle_parking", "stands"), txt: ParkingType.toImgTxt(ParkingType.images.stands)},
|
||||
{k: new Tag("bicycle_parking", "wall_loops"), txt: ParkingType.toImgTxt(ParkingType.images.wall_loops)},
|
||||
{k: new Tag("bicycle_parking", "handlebar_holder"), txt: ParkingType.toImgTxt(ParkingType.images.handlebar_holder)},
|
||||
{k: new Tag("bicycle_parking", "shed"), txt: ParkingType.toImgTxt(ParkingType.images.shed)},
|
||||
{k: new Tag("bicycle_parking", "two-tier"), txt: ParkingType.toImgTxt(ParkingType.images["two-tier"])}
|
||||
]
|
||||
mappings: ParkingTypeHelper.GenerateMappings()
|
||||
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,16 +1,18 @@
|
|||
import {TagRenderingOptions} from "../../TagRendering";
|
||||
import {Tag} from "../../../Logic/TagsFilter";
|
||||
import Translations from "../../../UI/i18n/Translations";
|
||||
|
||||
|
||||
export default class PumpManometer extends TagRenderingOptions {
|
||||
constructor() {
|
||||
const to = Translations.t.cyclofix.station.manometer
|
||||
super({
|
||||
question: "Does the pump have a pressure indicator or manometer?",
|
||||
question: to.question,
|
||||
mappings: [
|
||||
{k: new Tag("manometer", "yes"), txt: "Yes, there is a manometer"},
|
||||
{k: new Tag("manometer","broken"), txt: "Yes, but it is broken"},
|
||||
{k: new Tag("manometer", "yes"), txt: "No"}
|
||||
{k: new Tag("manometer", "yes"), txt: to.yes},
|
||||
{k: new Tag("manometer", "no"), txt: to.no},
|
||||
{k: new Tag("manometer", "broken"), txt: to.broken}
|
||||
]
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,15 +1,17 @@
|
|||
import {TagRenderingOptions} from "../../TagRendering";
|
||||
import {Tag} from "../../../Logic/TagsFilter";
|
||||
import Translations from "../../../UI/i18n/Translations";
|
||||
|
||||
|
||||
export default class PumpManual extends TagRenderingOptions {
|
||||
constructor() {
|
||||
const to = Translations.t.cyclofix.station.electric
|
||||
super({
|
||||
priority: 5,
|
||||
question: "Is this an electric bike pump?",
|
||||
question: to.question,
|
||||
mappings: [
|
||||
{k: new Tag("manual", "yes"), txt: "Manual pump"},
|
||||
{k: new Tag("manual", "no"), txt: "Electric pump"}
|
||||
{k: new Tag("manual", "yes"), txt: to.manual},
|
||||
{k: new Tag("manual", "no"), txt: to.electric}
|
||||
]
|
||||
});
|
||||
}
|
||||
|
|
|
@ -1,14 +1,16 @@
|
|||
import {TagRenderingOptions} from "../../TagRendering";
|
||||
import {Tag} from "../../../Logic/TagsFilter";
|
||||
import Translations from "../../../UI/i18n/Translations";
|
||||
|
||||
|
||||
export default class PumpOperational extends TagRenderingOptions {
|
||||
constructor() {
|
||||
const to = Translations.t.cyclofix.station.operational
|
||||
super({
|
||||
question: "Is the bicycle pump still operational?",
|
||||
question: to.question,
|
||||
mappings: [
|
||||
{k: new Tag("service:bicycle:pump:operational_status","broken"), txt: "This pump is broken"},
|
||||
{k: new Tag("service:bicycle:pump:operational_status",""), txt: "This pump is operational"}
|
||||
{k: new Tag("service:bicycle:pump:operational_status","broken"), txt: to.broken},
|
||||
{k: new Tag("service:bicycle:pump:operational_status",""), txt: to.operational}
|
||||
]
|
||||
});
|
||||
}
|
||||
|
|
|
@ -1,24 +1,27 @@
|
|||
import {TagRenderingOptions} from "../../TagRendering";
|
||||
import {Tag} from "../../../Logic/TagsFilter";
|
||||
import Translations from "../../../UI/i18n/Translations";
|
||||
|
||||
|
||||
export default class PumpValves extends TagRenderingOptions{
|
||||
constructor() {
|
||||
const to = Translations.t.cyclofix.station.valves
|
||||
super({
|
||||
question: "What valves are supported?",
|
||||
question: to.question,
|
||||
mappings: [
|
||||
{
|
||||
k: new Tag("valves", " sclaverand;schrader;dunlop"),
|
||||
txt: "There is a default head, so Presta, Dunlop and Auto"
|
||||
txt: to.default
|
||||
},
|
||||
{k: new Tag("valves", "dunlop"), txt: "Only dunlop"},
|
||||
{k: new Tag("valves", "sclaverand"), txt: "Only Sclaverand (also known as Dunlop)"},
|
||||
{k: new Tag("valves", "auto"), txt: "Only auto"},
|
||||
{k: new Tag("valves", "dunlop"), txt: to.dunlop},
|
||||
{k: new Tag("valves", "sclaverand"), txt: to.sclaverand},
|
||||
{k: new Tag("valves", "auto"), txt: to.auto},
|
||||
],
|
||||
freeform: {
|
||||
extraTags: new Tag("fixme", "Freeform valves= tag used: possibly a wrong value"),
|
||||
key: "valves",
|
||||
template: "Supported valves are $$$",
|
||||
renderTemplate: "Supported valves are {valves}"
|
||||
template: to.template,
|
||||
renderTemplate: to.render
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
19
Customizations/Questions/bike/ShopDiy.ts
Normal file
|
@ -0,0 +1,19 @@
|
|||
import {TagRenderingOptions} from "../../TagRendering";
|
||||
import {Tag} from "../../../Logic/TagsFilter";
|
||||
import Translations from "../../../UI/i18n/Translations";
|
||||
|
||||
|
||||
export default class ShopPump extends TagRenderingOptions {
|
||||
constructor() {
|
||||
const key = 'service:bicycle:diy'
|
||||
const to = Translations.t.cyclofix.shop.diy
|
||||
super({
|
||||
priority: 5,
|
||||
question: to.question,
|
||||
mappings: [
|
||||
{k: new Tag(key, "yes"), txt: to.yes},
|
||||
{k: new Tag(key, "no"), txt: to.no},
|
||||
]
|
||||
});
|
||||
}
|
||||
}
|
18
Customizations/Questions/bike/ShopName.ts
Normal file
|
@ -0,0 +1,18 @@
|
|||
import {TagRenderingOptions} from "../../TagRendering";
|
||||
import Translations from "../../../UI/i18n/Translations";
|
||||
|
||||
|
||||
export default class ShopPump extends TagRenderingOptions {
|
||||
constructor() {
|
||||
const to = Translations.t.cyclofix.shop.qName
|
||||
super({
|
||||
priority: 5,
|
||||
question: to.question,
|
||||
freeform: {
|
||||
key: "name",
|
||||
renderTemplate: to.render,
|
||||
template: to.template
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
19
Customizations/Questions/bike/ShopPump.ts
Normal file
|
@ -0,0 +1,19 @@
|
|||
import {TagRenderingOptions} from "../../TagRendering";
|
||||
import {Tag} from "../../../Logic/TagsFilter";
|
||||
import Translations from "../../../UI/i18n/Translations";
|
||||
|
||||
|
||||
export default class ShopPump extends TagRenderingOptions {
|
||||
constructor() {
|
||||
const key = 'service:bicycle:pump'
|
||||
const to = Translations.t.cyclofix.shop.pump
|
||||
super({
|
||||
priority: 5,
|
||||
question: to.question,
|
||||
mappings: [
|
||||
{k: new Tag(key, "yes"), txt: to.yes},
|
||||
{k: new Tag(key, "no"), txt: to.no},
|
||||
]
|
||||
});
|
||||
}
|
||||
}
|
19
Customizations/Questions/bike/ShopRental.ts
Normal file
|
@ -0,0 +1,19 @@
|
|||
import {TagRenderingOptions} from "../../TagRendering";
|
||||
import {Tag} from "../../../Logic/TagsFilter";
|
||||
import Translations from "../../../UI/i18n/Translations";
|
||||
|
||||
|
||||
export default class ShopRental extends TagRenderingOptions {
|
||||
constructor() {
|
||||
const key = 'service:bicycle:rental'
|
||||
const to = Translations.t.cyclofix.shop.rental
|
||||
super({
|
||||
priority: 5,
|
||||
question: to.question,
|
||||
mappings: [
|
||||
{k: new Tag(key, "yes"), txt: to.yes},
|
||||
{k: new Tag(key, "no"), txt: to.no},
|
||||
]
|
||||
});
|
||||
}
|
||||
}
|
21
Customizations/Questions/bike/ShopRepair.ts
Normal file
|
@ -0,0 +1,21 @@
|
|||
import {TagRenderingOptions} from "../../TagRendering";
|
||||
import {Tag} from "../../../Logic/TagsFilter";
|
||||
import Translations from "../../../UI/i18n/Translations";
|
||||
|
||||
|
||||
export default class ShopRepair extends TagRenderingOptions {
|
||||
constructor() {
|
||||
const key = 'service:bicycle:repair'
|
||||
const to = Translations.t.cyclofix.shop.repair
|
||||
super({
|
||||
priority: 5,
|
||||
question: to.question,
|
||||
mappings: [
|
||||
{k: new Tag(key, "yes"), txt: to.yes},
|
||||
{k: new Tag(key, "only_sold"), txt: to.sold},
|
||||
{k: new Tag(key, "brand"), txt: to.brand},
|
||||
{k: new Tag(key, "no"), txt: to.no},
|
||||
]
|
||||
});
|
||||
}
|
||||
}
|
19
Customizations/Questions/bike/ShopRetail.ts
Normal file
|
@ -0,0 +1,19 @@
|
|||
import {TagRenderingOptions} from "../../TagRendering";
|
||||
import {Tag} from "../../../Logic/TagsFilter";
|
||||
import Translations from "../../../UI/i18n/Translations";
|
||||
|
||||
|
||||
export default class ShopRetail extends TagRenderingOptions {
|
||||
constructor() {
|
||||
const key = 'service:bicycle:retail'
|
||||
const to = Translations.t.cyclofix.shop.retail
|
||||
super({
|
||||
priority: 5,
|
||||
question: to.question,
|
||||
mappings: [
|
||||
{k: new Tag(key, "yes"), txt: to.yes},
|
||||
{k: new Tag(key, "no"), txt: to.no},
|
||||
]
|
||||
});
|
||||
}
|
||||
}
|
20
Customizations/Questions/bike/ShopSecondHand.ts
Normal file
|
@ -0,0 +1,20 @@
|
|||
import {TagRenderingOptions} from "../../TagRendering";
|
||||
import {Tag} from "../../../Logic/TagsFilter";
|
||||
import Translations from "../../../UI/i18n/Translations";
|
||||
|
||||
|
||||
export default class ShopPump extends TagRenderingOptions {
|
||||
constructor() {
|
||||
const key = 'service:bicycle:second_hand'
|
||||
const to = Translations.t.cyclofix.shop.secondHand
|
||||
super({
|
||||
priority: 5,
|
||||
question: to.question,
|
||||
mappings: [
|
||||
{k: new Tag(key, "yes"), txt: to.yes},
|
||||
{k: new Tag(key, "no"), txt: to.no},
|
||||
{k: new Tag(key, "only"), txt: to.only},
|
||||
]
|
||||
});
|
||||
}
|
||||
}
|
|
@ -4,6 +4,8 @@ import {Tag} from "../../../Logic/TagsFilter";
|
|||
|
||||
/**
|
||||
* Currently not used in Cyclofix because it's a little vague
|
||||
*
|
||||
* TODO: Translations
|
||||
*/
|
||||
export default class BikeStationBrand extends TagRenderingOptions {
|
||||
private static options = {
|
||||
|
|
|
@ -1,15 +1,17 @@
|
|||
import {TagRenderingOptions} from "../../TagRendering";
|
||||
import {Tag} from "../../../Logic/TagsFilter";
|
||||
import Translations from "../../../UI/i18n/Translations";
|
||||
|
||||
|
||||
export default class StationChain extends TagRenderingOptions {
|
||||
constructor() {
|
||||
const to = Translations.t.cyclofix.station.chain
|
||||
super({
|
||||
priority: 5,
|
||||
question: "Does this bike station have a special tool to repair your bike chain?",
|
||||
question: to.question,
|
||||
mappings: [
|
||||
{k: new Tag("service:bicycle:chain_tool", "yes"), txt: "There is a chain tool."},
|
||||
{k: new Tag("service:bicycle:chain_tool", "no"), txt: "There is no chain tool."},
|
||||
{k: new Tag("service:bicycle:chain_tool", "yes"), txt: to.yes},
|
||||
{k: new Tag("service:bicycle:chain_tool", "no"), txt: to.no},
|
||||
]
|
||||
});
|
||||
}
|
||||
|
|
|
@ -1,25 +1,27 @@
|
|||
import {TagRenderingOptions} from "../../TagRendering";
|
||||
import {Tag} from "../../../Logic/TagsFilter";
|
||||
import Translations from "../../../UI/i18n/Translations";
|
||||
|
||||
|
||||
export default class BikeStationOperator extends TagRenderingOptions {
|
||||
constructor() {
|
||||
const to = Translations.t.cyclofix.station.operator
|
||||
super({
|
||||
priority: 15,
|
||||
question: "Who operates this bike station (name of university, shop, city...)?",
|
||||
freeform: {
|
||||
key: "operator",
|
||||
template: "This bike station is operated by $$$",
|
||||
renderTemplate: "This bike station is operated by {operator}",
|
||||
placeholder: "organisatie"
|
||||
},
|
||||
question: to.question,
|
||||
mappings: [
|
||||
{k: new Tag("operator", "KU Leuven"), txt: "KU Leuven"},
|
||||
{k: new Tag("operator", "Stad Halle"), txt: "Stad Halle"},
|
||||
{k: new Tag("operator", "Saint Gilles - Sint Gillis"), txt: "Saint Gilles - Sint Gillis"},
|
||||
{k: new Tag("operator", "Jette"), txt: "Jette"},
|
||||
{k: new Tag("operator", "private"), txt: "Beheer door een privépersoon"}
|
||||
]
|
||||
{k: new Tag("operator", "private"), txt: to.private}
|
||||
],
|
||||
freeform: {
|
||||
key: "operator",
|
||||
template: to.template,
|
||||
renderTemplate: to.render,
|
||||
placeholder: "organisatie"
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,16 +1,18 @@
|
|||
import {TagRenderingOptions} from "../../TagRendering";
|
||||
import {Tag, And} from "../../../Logic/TagsFilter";
|
||||
import Translations from "../../../UI/i18n/Translations";
|
||||
|
||||
|
||||
export default class BikeStationPumpTools extends TagRenderingOptions {
|
||||
constructor() {
|
||||
const to = Translations.t.cyclofix.station.services
|
||||
super({
|
||||
priority: 15,
|
||||
question: "Which services are available at this bike station?",
|
||||
question: to.question,
|
||||
mappings: [
|
||||
{k: new And([new Tag("service:bicycle:tools", "no"), new Tag("service:bicycle:pump", "yes")]), txt: "There is only a pump available."},
|
||||
{k: new And([new Tag("service:bicycle:tools", "yes"), new Tag("service:bicycle:pump", "no")]), txt: "There are only tools (screwdrivers, pliers...) available."},
|
||||
{k: new And([new Tag("service:bicycle:tools", "yes"), new Tag("service:bicycle:pump", "yes")]), txt: "There are both tools and a pump available."}
|
||||
{k: new And([new Tag("service:bicycle:tools", "no"), new Tag("service:bicycle:pump", "yes")]), txt: to.pump},
|
||||
{k: new And([new Tag("service:bicycle:tools", "yes"), new Tag("service:bicycle:pump", "no")]), txt: to.tools},
|
||||
{k: new And([new Tag("service:bicycle:tools", "yes"), new Tag("service:bicycle:pump", "yes")]), txt: to.both}
|
||||
]
|
||||
});
|
||||
}
|
||||
|
|
|
@ -1,14 +1,16 @@
|
|||
import {TagRenderingOptions} from "../../TagRendering";
|
||||
import {Tag} from "../../../Logic/TagsFilter";
|
||||
import Translations from "../../../UI/i18n/Translations";
|
||||
|
||||
|
||||
export default class BikeStationStand extends TagRenderingOptions {
|
||||
constructor() {
|
||||
const to = Translations
|
||||
super({
|
||||
priority: 10,
|
||||
question: "Does this bike station have a hook to suspend your bike with or a stand to elevate it?",
|
||||
mappings: [
|
||||
{k: new Tag("service:bicycle:stand", "yes"), txt: "There is a hook or stand."},
|
||||
{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"},
|
||||
]
|
||||
});
|
||||
|
|
|
@ -1,17 +1,20 @@
|
|||
import {UIElement} from "../UI/UIElement";
|
||||
import {UIEventSource} from "../UI/UIEventSource";
|
||||
import {And, Tag, TagsFilter, TagUtils} from "../Logic/TagsFilter";
|
||||
import {UIRadioButton} from "../UI/Base/UIRadioButton";
|
||||
import {FixedUiElement} from "../UI/Base/FixedUiElement";
|
||||
import {SaveButton} from "../UI/SaveButton";
|
||||
import {Changes} from "../Logic/Changes";
|
||||
import {TextField} from "../UI/Base/TextField";
|
||||
import {UIInputElement} from "../UI/Base/UIInputElement";
|
||||
import {UIRadioButtonWithOther} from "../UI/Base/UIRadioButtonWithOther";
|
||||
import {VariableUiElement} from "../UI/Base/VariableUIElement";
|
||||
import {TagDependantUIElement, TagDependantUIElementConstructor} from "./UIElementConstructor";
|
||||
import {OnlyShowIfConstructor} from "./OnlyShowIf";
|
||||
import {UserDetails} from "../Logic/OsmConnection";
|
||||
import {TextField} from "../UI/Input/TextField";
|
||||
import {InputElement} from "../UI/Input/InputElement";
|
||||
import {InputElementWrapper} from "../UI/Input/InputElementWrapper";
|
||||
import {FixedInputElement} from "../UI/Input/FixedInputElement";
|
||||
import {RadioButton} from "../UI/Input/RadioButton";
|
||||
import Translations from "../UI/i18n/Translations";
|
||||
import Locale from "../UI/i18n/Locale";
|
||||
|
||||
export class TagRenderingOptions implements TagDependantUIElementConstructor {
|
||||
|
||||
|
@ -20,8 +23,17 @@ export class TagRenderingOptions implements TagDependantUIElementConstructor {
|
|||
*/
|
||||
|
||||
public options: {
|
||||
priority?: number; question?: string; primer?: string;
|
||||
freeform?: { key: string; tagsPreprocessor?: (tags: any) => any; template: string; renderTemplate: string; placeholder?: string; extraTags?: TagsFilter }; mappings?: { k: TagsFilter; txt: string; priority?: number, substitute?: boolean }[]
|
||||
priority?: number;
|
||||
question?: string | UIElement;
|
||||
freeform?: {
|
||||
key: string;
|
||||
tagsPreprocessor?: (tags: any) => any;
|
||||
template: string | UIElement;
|
||||
renderTemplate: string | UIElement;
|
||||
placeholder?: string | UIElement;
|
||||
extraTags?: TagsFilter
|
||||
};
|
||||
mappings?: { k: TagsFilter; txt: string | UIElement; priority?: number, substitute?: boolean }[]
|
||||
};
|
||||
|
||||
|
||||
|
@ -35,7 +47,7 @@ export class TagRenderingOptions implements TagDependantUIElementConstructor {
|
|||
* If 'question' is undefined, then the question is never asked at all
|
||||
* If the question is "" (empty string) then the question is
|
||||
*/
|
||||
question?: string,
|
||||
question?: UIElement | string,
|
||||
|
||||
/**
|
||||
* What is the priority of the question.
|
||||
|
@ -56,7 +68,7 @@ export class TagRenderingOptions implements TagDependantUIElementConstructor {
|
|||
*
|
||||
*
|
||||
*/
|
||||
mappings?: { k: TagsFilter, txt: string, priority?: number, substitute?: boolean }[],
|
||||
mappings?: { k: TagsFilter, txt: UIElement | string, priority?: number, substitute?: boolean }[],
|
||||
|
||||
|
||||
/**
|
||||
|
@ -65,19 +77,14 @@ export class TagRenderingOptions implements TagDependantUIElementConstructor {
|
|||
* In the question, it'll offer a textfield
|
||||
*/
|
||||
freeform?: {
|
||||
key: string, template: string,
|
||||
renderTemplate: string
|
||||
placeholder?: string,
|
||||
key: string,
|
||||
template: string | UIElement,
|
||||
renderTemplate: string | UIElement
|
||||
placeholder?: string | UIElement,
|
||||
extraTags?: TagsFilter,
|
||||
},
|
||||
|
||||
|
||||
/**
|
||||
* Optional:
|
||||
* if defined, this a common piece of tag that is shown in front of every mapping (except freeform)
|
||||
*/
|
||||
primer?: string,
|
||||
|
||||
/**
|
||||
* In some very rare cases, tags have to be rewritten before displaying
|
||||
* This function can be used for that.
|
||||
|
@ -85,6 +92,7 @@ export class TagRenderingOptions implements TagDependantUIElementConstructor {
|
|||
*/
|
||||
tagsPreprocessor?: ((tags: any) => void)
|
||||
}) {
|
||||
|
||||
this.options = options;
|
||||
}
|
||||
|
||||
|
@ -129,29 +137,24 @@ export class TagRenderingOptions implements TagDependantUIElementConstructor {
|
|||
class TagRendering extends UIElement implements TagDependantUIElement {
|
||||
|
||||
|
||||
private _priority: number;
|
||||
private _userDetails: UIEventSource<UserDetails>;
|
||||
private _priority: number;
|
||||
|
||||
Priority(): number {
|
||||
return this._priority;
|
||||
}
|
||||
|
||||
private _question: string;
|
||||
private _primer: string;
|
||||
private _mapping: { k: TagsFilter, txt: string, priority?: number, substitute?: boolean }[];
|
||||
private _renderMapping: { k: TagsFilter, txt: string, priority?: number, substitute?: boolean }[];
|
||||
private _question: UIElement;
|
||||
private _mapping: { k: TagsFilter, txt: string | UIElement, priority?: number }[];
|
||||
|
||||
private _tagsPreprocessor?: ((tags: any) => any);
|
||||
private _freeform: {
|
||||
key: string, template: string,
|
||||
renderTemplate: string,
|
||||
|
||||
placeholder?: string,
|
||||
key: string,
|
||||
template: string | UIElement,
|
||||
renderTemplate: string | UIElement,
|
||||
placeholder?: string | UIElement,
|
||||
extraTags?: TagsFilter
|
||||
};
|
||||
|
||||
private readonly _questionElement: UIElement;
|
||||
private readonly _textField: TextField<TagsFilter>; // Only here to update
|
||||
|
||||
private readonly _questionElement: InputElement<TagsFilter>;
|
||||
|
||||
private readonly _saveButton: UIElement;
|
||||
private readonly _skipButton: UIElement;
|
||||
|
@ -165,19 +168,20 @@ class TagRendering extends UIElement implements TagDependantUIElement {
|
|||
constructor(tags: UIEventSource<any>, changes: Changes, options: {
|
||||
priority?: number
|
||||
|
||||
question?: string,
|
||||
primer?: string,
|
||||
question?: string | UIElement,
|
||||
|
||||
freeform?: {
|
||||
key: string, template: string,
|
||||
renderTemplate: string
|
||||
placeholder?: string,
|
||||
key: string,
|
||||
template: string | UIElement,
|
||||
renderTemplate: string | UIElement,
|
||||
placeholder?: string | UIElement,
|
||||
extraTags?: TagsFilter,
|
||||
},
|
||||
tagsPreprocessor?: ((tags: any) => any),
|
||||
mappings?: { k: TagsFilter, txt: string, priority?: number, substitute?: boolean }[]
|
||||
mappings?: { k: TagsFilter, txt: string | UIElement, priority?: number, substitute?: boolean }[]
|
||||
}) {
|
||||
super(tags);
|
||||
this.ListenTo(Locale.language);
|
||||
const self = this;
|
||||
this.ListenTo(this._questionSkipped);
|
||||
this.ListenTo(this._editMode);
|
||||
|
@ -185,9 +189,10 @@ class TagRendering extends UIElement implements TagDependantUIElement {
|
|||
this._userDetails = changes.login.userDetails;
|
||||
this.ListenTo(this._userDetails);
|
||||
|
||||
this._question = options.question;
|
||||
if (options.question !== undefined) {
|
||||
this._question = Translations.W(options.question);
|
||||
}
|
||||
this._priority = options.priority ?? 0;
|
||||
this._primer = options.primer ?? "";
|
||||
this._tagsPreprocessor = function (properties) {
|
||||
if (options.tagsPreprocessor === undefined) {
|
||||
return properties;
|
||||
|
@ -201,97 +206,38 @@ class TagRendering extends UIElement implements TagDependantUIElement {
|
|||
};
|
||||
|
||||
this._mapping = [];
|
||||
this._renderMapping = [];
|
||||
this._freeform = options.freeform;
|
||||
|
||||
// Prepare the choices for the Radio buttons
|
||||
const choices: UIElement[] = [];
|
||||
const usedChoices: string [] = [];
|
||||
|
||||
for (const choice of options.mappings ?? []) {
|
||||
if (choice.k === null) {
|
||||
this._mapping.push(choice);
|
||||
continue;
|
||||
}
|
||||
let choiceSubbed = choice;
|
||||
let choiceSubbed = {
|
||||
k: choice.k,
|
||||
txt: choice.txt,
|
||||
priority: choice.priority
|
||||
};
|
||||
|
||||
if (choice.substitute) {
|
||||
choiceSubbed = {
|
||||
k: choice.k.substituteValues(
|
||||
options.tagsPreprocessor(this._source.data)),
|
||||
txt: this.ApplyTemplate(choice.txt),
|
||||
substitute: false,
|
||||
txt: choice.txt,
|
||||
priority: choice.priority
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
const txt = choiceSubbed.txt
|
||||
// Choices is what is shown in the radio buttons
|
||||
if (usedChoices.indexOf(txt) < 0) {
|
||||
|
||||
choices.push(new FixedUiElement(txt));
|
||||
usedChoices.push(txt);
|
||||
// This is used to convert the radio button index into tags needed to add
|
||||
this._mapping.push(choiceSubbed);
|
||||
} else {
|
||||
this._renderMapping.push(choiceSubbed); // only used while rendering
|
||||
}
|
||||
this._mapping.push({
|
||||
k: choiceSubbed.k,
|
||||
txt: choiceSubbed.txt
|
||||
});
|
||||
}
|
||||
|
||||
// Map radiobutton choice and textfield answer onto tagfilter. That tagfilter will be pushed into the changes later on
|
||||
const pickChoice = (i => {
|
||||
if (i === undefined || i === null) {
|
||||
return undefined
|
||||
}
|
||||
return self._mapping[i].k
|
||||
});
|
||||
const pickString =
|
||||
(string) => {
|
||||
if (string === "" || string === undefined) {
|
||||
return undefined;
|
||||
}
|
||||
const tag = new Tag(self._freeform.key, string);
|
||||
if (self._freeform.extraTags === undefined) {
|
||||
return tag;
|
||||
}
|
||||
return new And([
|
||||
self._freeform.extraTags,
|
||||
tag
|
||||
]
|
||||
);
|
||||
};
|
||||
|
||||
|
||||
// Prepare the actual input element -> pick an appropriate implementation
|
||||
let inputElement: UIInputElement<TagsFilter>;
|
||||
|
||||
|
||||
if (this._freeform !== undefined && this._mapping !== undefined) {
|
||||
// Radio buttons with 'other'
|
||||
inputElement = new UIRadioButtonWithOther(
|
||||
choices,
|
||||
this._freeform.template,
|
||||
this._freeform.placeholder,
|
||||
pickChoice,
|
||||
pickString
|
||||
);
|
||||
this._questionElement = inputElement;
|
||||
} else if (this._mapping !== [] && this._mapping.length > 0) {
|
||||
// This is a classic radio selection element
|
||||
inputElement = new UIRadioButton(new UIEventSource(choices), pickChoice, false)
|
||||
this._questionElement = inputElement;
|
||||
} else if (this._freeform !== undefined) {
|
||||
this._textField = new TextField(new UIEventSource<string>(this._freeform.placeholder), pickString);
|
||||
inputElement = this._textField;
|
||||
this._questionElement = new FixedUiElement(
|
||||
"<div>" + this._freeform.template.replace("$$$", inputElement.Render()) + "</div>")
|
||||
} else {
|
||||
throw "Invalid questionRendering, expected at least choices or a freeform"
|
||||
}
|
||||
|
||||
|
||||
this._questionElement = this.InputElementFor(options);
|
||||
const save = () => {
|
||||
const selection = inputElement.GetValue().data;
|
||||
const selection = self._questionElement.GetValue().data;
|
||||
if (selection) {
|
||||
changes.addTag(tags.data.id, selection);
|
||||
}
|
||||
|
@ -305,54 +251,157 @@ class TagRendering extends UIElement implements TagDependantUIElement {
|
|||
}
|
||||
|
||||
// Setup the save button and it's action
|
||||
this._saveButton = new SaveButton(inputElement.GetValue())
|
||||
this._saveButton = new SaveButton(this._questionElement.GetValue())
|
||||
.onClick(save);
|
||||
|
||||
this._editButton = new FixedUiElement("");
|
||||
if (this._question !== undefined) {
|
||||
this._editButton = new FixedUiElement("<img class='editbutton' src='./assets/pencil.svg' alt='edit'>")
|
||||
.onClick(() => {
|
||||
console.log("Click", self._editButton);
|
||||
if (self._textField) {
|
||||
self._textField.value.setData(self._source.data["name"] ?? "");
|
||||
}
|
||||
|
||||
self._editMode.setData(true);
|
||||
self._questionElement.GetValue().setData(self.CurrentValue());
|
||||
});
|
||||
} else {
|
||||
this._editButton = new FixedUiElement("");
|
||||
}
|
||||
|
||||
|
||||
const cancelContents = this._editMode.map((isEditing) => {
|
||||
if (isEditing) {
|
||||
return "<span class='skip-button'>Annuleren</span>";
|
||||
return "<span class='skip-button'>"+Translations.t.general.cancel.R()+"</span>";
|
||||
} else {
|
||||
return "<span class='skip-button'>Overslaan (Ik weet het niet zeker...)</span>";
|
||||
return "<span class='skip-button'>"+Translations.t.general.skip.R()+"</span>";
|
||||
}
|
||||
});
|
||||
}, [Locale.language]);
|
||||
// And at last, set up the skip button
|
||||
this._skipButton = new VariableUiElement(cancelContents).onClick(cancel);
|
||||
this._skipButton = new VariableUiElement(cancelContents).onClick(cancel) ;
|
||||
}
|
||||
|
||||
|
||||
private InputElementFor(options: {
|
||||
freeform?: {
|
||||
key: string,
|
||||
template: string | UIElement,
|
||||
renderTemplate: string | UIElement,
|
||||
placeholder?: string | UIElement,
|
||||
extraTags?: TagsFilter,
|
||||
},
|
||||
mappings?: { k: TagsFilter, txt: string | UIElement, priority?: number, substitute?: boolean }[]
|
||||
}):
|
||||
InputElement<TagsFilter> {
|
||||
|
||||
const elements = [];
|
||||
|
||||
if (options.mappings !== undefined) {
|
||||
|
||||
const previousTexts= [];
|
||||
for (const mapping of options.mappings) {
|
||||
if(mapping.k === null){
|
||||
continue;
|
||||
}
|
||||
if(previousTexts.indexOf(mapping.txt) >= 0){
|
||||
continue;
|
||||
}
|
||||
previousTexts.push(mapping.txt);
|
||||
|
||||
elements.push(this.InputElementForMapping(mapping));
|
||||
}
|
||||
}
|
||||
|
||||
if (options.freeform !== undefined) {
|
||||
elements.push(this.InputForFreeForm(options.freeform));
|
||||
}
|
||||
|
||||
|
||||
if (elements.length == 0) {
|
||||
console.warn("WARNING: no tagrendering with following options:", options);
|
||||
return new FixedInputElement("This should not happen: no tag renderings defined", undefined);
|
||||
}
|
||||
if (elements.length == 1) {
|
||||
return elements[0];
|
||||
}
|
||||
|
||||
return new RadioButton(elements, false);
|
||||
|
||||
}
|
||||
|
||||
private ApplyTemplate(template: string): string {
|
||||
const tags = this._tagsPreprocessor(this._source.data);
|
||||
return TagUtils.ApplyTemplate(template, tags);
|
||||
|
||||
private InputElementForMapping(mapping: { k: TagsFilter, txt: string | UIElement }) {
|
||||
return new FixedInputElement(mapping.txt, mapping.k);
|
||||
}
|
||||
|
||||
|
||||
private InputForFreeForm(freeform): InputElement<TagsFilter> {
|
||||
if (freeform === undefined) {
|
||||
return undefined;
|
||||
}
|
||||
|
||||
|
||||
const pickString =
|
||||
(string) => {
|
||||
if (string === "" || string === undefined) {
|
||||
return undefined;
|
||||
}
|
||||
const tag = new Tag(freeform.key, string);
|
||||
if (freeform.extraTags === undefined) {
|
||||
return tag;
|
||||
}
|
||||
return new And([
|
||||
tag,
|
||||
freeform.extraTags
|
||||
]
|
||||
);
|
||||
};
|
||||
|
||||
const toString =
|
||||
(tag) => {
|
||||
if (tag instanceof And) {
|
||||
return toString(tag.and[0])
|
||||
} else if (tag instanceof Tag) {
|
||||
return tag.value
|
||||
}
|
||||
return undefined;
|
||||
}
|
||||
|
||||
|
||||
let inputElement: InputElement<TagsFilter>;
|
||||
const textField = new TextField({
|
||||
placeholder: this._freeform.placeholder,
|
||||
fromString: pickString,
|
||||
toString: toString
|
||||
});
|
||||
|
||||
const prepost = Translations.W(freeform.template).InnerRender().split("$$$");
|
||||
return new InputElementWrapper(prepost[0], textField, prepost[1]);
|
||||
}
|
||||
|
||||
|
||||
IsKnown(): boolean {
|
||||
const tags = TagUtils.proprtiesToKV(this._source.data);
|
||||
|
||||
for (const oneOnOneElement of this._mapping.concat(this._renderMapping)) {
|
||||
for (const oneOnOneElement of this._mapping) {
|
||||
if (oneOnOneElement.k === null || oneOnOneElement.k.matches(tags)) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
return this._freeform !== undefined && this._source.data[this._freeform.key] !== undefined;
|
||||
}
|
||||
|
||||
private CurrentValue(): TagsFilter {
|
||||
const tags = TagUtils.proprtiesToKV(this._source.data);
|
||||
|
||||
for (const oneOnOneElement of this._mapping) {
|
||||
if (oneOnOneElement.k !== null && oneOnOneElement.k.matches(tags)) {
|
||||
return oneOnOneElement.k;
|
||||
}
|
||||
}
|
||||
if (this._freeform === undefined) {
|
||||
return undefined;
|
||||
}
|
||||
|
||||
return new Tag(this._freeform.key, this._source.data[this._freeform.key]);
|
||||
}
|
||||
|
||||
|
||||
IsQuestioning(): boolean {
|
||||
if (this.IsKnown()) {
|
||||
return false;
|
||||
|
@ -368,10 +417,10 @@ class TagRendering extends UIElement implements TagDependantUIElement {
|
|||
return true;
|
||||
}
|
||||
|
||||
private RenderAnwser(): string {
|
||||
private RenderAnwser(): UIElement {
|
||||
const tags = TagUtils.proprtiesToKV(this._source.data);
|
||||
|
||||
let freeform = "";
|
||||
let freeform: UIElement = new FixedUiElement("");
|
||||
let freeformScore = -10;
|
||||
if (this._freeform !== undefined && this._source.data[this._freeform.key] !== undefined) {
|
||||
freeform = this.ApplyTemplate(this._freeform.renderTemplate);
|
||||
|
@ -379,58 +428,59 @@ class TagRendering extends UIElement implements TagDependantUIElement {
|
|||
}
|
||||
|
||||
|
||||
let highestScore = -100;
|
||||
let highestTemplate = undefined;
|
||||
for (const oneOnOneElement of this._mapping.concat(this._renderMapping)) {
|
||||
if (oneOnOneElement.k == null ||
|
||||
oneOnOneElement.k.matches(tags)) {
|
||||
// We have found a matching key -> we use the template, but only if it scores better
|
||||
let score = oneOnOneElement.priority ??
|
||||
(oneOnOneElement.k === null ? -1 : 0);
|
||||
if (score > highestScore) {
|
||||
highestScore = score;
|
||||
highestTemplate = oneOnOneElement.txt
|
||||
}
|
||||
let highestScore = -100;
|
||||
let highestTemplate = undefined;
|
||||
for (const oneOnOneElement of this._mapping) {
|
||||
if (oneOnOneElement.k == null ||
|
||||
oneOnOneElement.k.matches(tags)) {
|
||||
// We have found a matching key -> we use the template, but only if it scores better
|
||||
let score = oneOnOneElement.priority ??
|
||||
(oneOnOneElement.k === null ? -1 : 0);
|
||||
if (score > highestScore) {
|
||||
highestScore = score;
|
||||
highestTemplate = oneOnOneElement.txt
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (freeformScore > highestScore) {
|
||||
return freeform;
|
||||
}
|
||||
if (freeformScore > highestScore) {
|
||||
return freeform;
|
||||
}
|
||||
|
||||
if (highestTemplate !== undefined) {
|
||||
// we render the found template
|
||||
return this.ApplyTemplate(highestTemplate);
|
||||
}
|
||||
|
||||
if (highestTemplate !== undefined) {
|
||||
// we render the found template
|
||||
return this._primer + this.ApplyTemplate(highestTemplate);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
protected InnerRender(): string {
|
||||
|
||||
InnerRender(): string {
|
||||
if (this.IsQuestioning() || this._editMode.data) {
|
||||
// Not yet known or questioning, we have to ask a question
|
||||
|
||||
const question = this._question.Render();
|
||||
|
||||
return "<div class='question'>" +
|
||||
"<span class='question-text'>" + this._question + "</span>" +
|
||||
(this._question !== "" ? "<br/>" : "") +
|
||||
this._questionElement.Render() +
|
||||
"<span class='question-text'>" + question + "</span>" +
|
||||
(this._question.IsEmpty() ? "" : "<br/>") +
|
||||
"<div>" + this._questionElement.Render() + "</div>" +
|
||||
this._skipButton.Render() +
|
||||
this._saveButton.Render() +
|
||||
"</div>"
|
||||
}
|
||||
|
||||
if (this.IsKnown()) {
|
||||
const html = this.RenderAnwser();
|
||||
if (html == "") {
|
||||
const answer = this.RenderAnwser()
|
||||
if (answer.IsEmpty()) {
|
||||
return "";
|
||||
}
|
||||
const html = answer.Render();
|
||||
let editButton = "";
|
||||
if(this._userDetails.data.loggedIn){
|
||||
if (this._userDetails.data.loggedIn && this._question !== undefined) {
|
||||
editButton = this._editButton.Render();
|
||||
}
|
||||
|
||||
|
||||
return "<span class='answer'>" +
|
||||
"<span class='answer-text'>" + html + "</span>" +
|
||||
editButton +
|
||||
|
@ -441,13 +491,26 @@ class TagRendering extends UIElement implements TagDependantUIElement {
|
|||
|
||||
}
|
||||
|
||||
|
||||
Priority(): number {
|
||||
return this._priority;
|
||||
}
|
||||
|
||||
private ApplyTemplate(template: string | UIElement): UIElement {
|
||||
if(template === undefined || template === null){
|
||||
throw "Trying to apply a template, but the template is null/undefined"
|
||||
}
|
||||
const tags = this._tagsPreprocessor(this._source.data);
|
||||
if (template instanceof UIElement) {
|
||||
template = template.Render();
|
||||
}
|
||||
return new FixedUiElement(TagUtils.ApplyTemplate(template, tags));
|
||||
}
|
||||
|
||||
|
||||
InnerUpdate(htmlElement: HTMLElement) {
|
||||
super.InnerUpdate(htmlElement);
|
||||
this._questionElement.Update();
|
||||
this._saveButton.Update();
|
||||
this._skipButton.Update();
|
||||
this._textField?.Update();
|
||||
this._editButton.Update();
|
||||
this._questionElement.Update(); // Another manual update for them
|
||||
}
|
||||
|
||||
}
|
|
@ -6,7 +6,6 @@ import {OsmConnection} from "./OsmConnection";
|
|||
import {OsmNode, OsmObject} from "./OsmObject";
|
||||
import {ElementStorage} from "./ElementStorage";
|
||||
import {UIEventSource} from "../UI/UIEventSource";
|
||||
import {Question, QuestionDefinition} from "./Question";
|
||||
import {And, Tag, TagsFilter} from "./TagsFilter";
|
||||
|
||||
export class Changes {
|
||||
|
|
|
@ -19,7 +19,7 @@ import { LayerDefinition } from "../Customizations/LayerDefinition";
|
|||
*/
|
||||
export class FilteredLayer {
|
||||
|
||||
public readonly name: string;
|
||||
public readonly name: string | UIElement;
|
||||
public readonly filters: TagsFilter;
|
||||
public readonly isDisplayed: UIEventSource<boolean> = new UIEventSource(true);
|
||||
public readonly layerDef: LayerDefinition;
|
||||
|
@ -33,6 +33,7 @@ export class FilteredLayer {
|
|||
/** The featurecollection from overpass
|
||||
*/
|
||||
private _dataFromOverpass;
|
||||
private _wayHandling: number;
|
||||
/** List of new elements, geojson features
|
||||
*/
|
||||
private _newElements = [];
|
||||
|
@ -40,8 +41,8 @@ export class FilteredLayer {
|
|||
* The leaflet layer object which should be removed on rerendering
|
||||
*/
|
||||
private _geolayer;
|
||||
private _selectedElement: UIEventSource<any>;
|
||||
private _showOnPopup: (tags: UIEventSource<any>) => UIElement;
|
||||
private _selectedElement: UIEventSource<{ feature: any }>;
|
||||
private _showOnPopup: (tags: UIEventSource<any>, feature: any) => UIElement;
|
||||
|
||||
constructor(
|
||||
layerDef: LayerDefinition,
|
||||
|
@ -51,6 +52,8 @@ export class FilteredLayer {
|
|||
showOnPopup: ((tags: UIEventSource<any>) => UIElement)
|
||||
) {
|
||||
this.layerDef = layerDef;
|
||||
|
||||
this._wayHandling = layerDef.wayHandling;
|
||||
this._selectedElement = selectedElement;
|
||||
this._showOnPopup = showOnPopup;
|
||||
this._style = layerDef.style;
|
||||
|
@ -84,10 +87,18 @@ export class FilteredLayer {
|
|||
public SetApplicableData(geojson: any): any {
|
||||
const leftoverFeatures = [];
|
||||
const selfFeatures = [];
|
||||
for (const feature of geojson.features) {
|
||||
for (let feature of geojson.features) {
|
||||
// feature.properties contains all the properties
|
||||
var tags = TagUtils.proprtiesToKV(feature.properties);
|
||||
if (this.filters.matches(tags)) {
|
||||
feature.properties["_surface"] = GeoOperations.surfaceAreaInSqMeters(feature);
|
||||
if (feature.geometry.type !== "Point") {
|
||||
if (this._wayHandling === LayerDefinition.WAYHANDLING_CENTER_AND_WAY) {
|
||||
selfFeatures.push(GeoOperations.centerpoint(feature));
|
||||
} else if (this._wayHandling === LayerDefinition.WAYHANDLING_CENTER_ONLY) {
|
||||
feature = GeoOperations.centerpoint(feature);
|
||||
}
|
||||
}
|
||||
selfFeatures.push(feature);
|
||||
} else {
|
||||
leftoverFeatures.push(feature);
|
||||
|
@ -199,8 +210,8 @@ export class FilteredLayer {
|
|||
|
||||
layer.on("click", function (e) {
|
||||
console.log("Selected ", feature)
|
||||
self._selectedElement.setData(feature.properties);
|
||||
const uiElement = self._showOnPopup(eventSource);
|
||||
self._selectedElement.setData({feature: feature});
|
||||
const uiElement = self._showOnPopup(eventSource, feature);
|
||||
const popup = L.popup()
|
||||
.setContent(uiElement.Render())
|
||||
.setLatLng(e.latlng)
|
||||
|
|
|
@ -6,6 +6,15 @@ export class GeoOperations {
|
|||
return turf.area(feature);
|
||||
}
|
||||
|
||||
static centerpoint(feature: any)
|
||||
{
|
||||
const newFeature= turf.center(feature);
|
||||
newFeature.properties = feature.properties;
|
||||
newFeature.id = feature.id;
|
||||
|
||||
return newFeature;
|
||||
}
|
||||
|
||||
static featureIsContainedInAny(feature: any,
|
||||
shouldNotContain: any[],
|
||||
maxOverlapPercentage: number): boolean {
|
||||
|
|
|
@ -8,6 +8,7 @@ export class Imgur {
|
|||
title: string, description: string, blobs: FileList,
|
||||
handleSuccessfullUpload: ((imageURL: string) => void),
|
||||
allDone: (() => void),
|
||||
onFail: ((reason: string) => void),
|
||||
offset:number = 0) {
|
||||
|
||||
if (blobs.length == offset) {
|
||||
|
@ -24,7 +25,8 @@ export class Imgur {
|
|||
handleSuccessfullUpload,
|
||||
allDone,
|
||||
offset + 1);
|
||||
}
|
||||
},
|
||||
onFail
|
||||
);
|
||||
|
||||
|
||||
|
@ -60,7 +62,6 @@ export class Imgur {
|
|||
}
|
||||
|
||||
|
||||
console.log(data);
|
||||
const licenseInfo = new LicenseInfo();
|
||||
|
||||
licenseInfo.licenseShortName = data.license;
|
||||
|
@ -75,7 +76,8 @@ export class Imgur {
|
|||
}
|
||||
|
||||
static uploadImage(title: string, description: string, blob,
|
||||
handleSuccessfullUpload: ((imageURL: string) => void)) {
|
||||
handleSuccessfullUpload: ((imageURL: string) => void),
|
||||
onFail: (reason:string) => void) {
|
||||
|
||||
const apiUrl = 'https://api.imgur.com/3/image';
|
||||
const apiKey = '7070e7167f0a25a';
|
||||
|
@ -106,7 +108,8 @@ export class Imgur {
|
|||
response = JSON.parse(response);
|
||||
handleSuccessfullUpload(response.data.link);
|
||||
}).fail((reason) => {
|
||||
console.log("Uploading to IMGUR failed", reason)
|
||||
console.log("Uploading to IMGUR failed", reason);
|
||||
onFail(reason)
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
@ -57,8 +57,7 @@ export class LayerUpdater {
|
|||
}
|
||||
|
||||
private handleFail(reason: any) {
|
||||
console.log("QUERY FAILED", reason);
|
||||
console.log("Retrying in 1s")
|
||||
console.log("QUERY FAILED (retrying in 1 sec)", reason);
|
||||
this.previousBounds = undefined;
|
||||
const self = this;
|
||||
window.setTimeout(
|
||||
|
@ -73,7 +72,6 @@ export class LayerUpdater {
|
|||
}
|
||||
console.log("Zoom level: ",this._map.map.getZoom(), "Least needed zoom:", this._minzoom)
|
||||
if (this._map.map.getZoom() < this._minzoom || this._map.Location.data.zoom < this._minzoom) {
|
||||
console.log("Not running query: zoom not sufficient");
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
@ -17,7 +17,6 @@ export class UserDetails {
|
|||
|
||||
export class OsmConnection {
|
||||
|
||||
|
||||
private auth = new osmAuth({
|
||||
oauth_consumer_key: 'hivV7ec2o49Two8g9h8Is1VIiVOgxQ1iYexCbvem',
|
||||
oauth_secret: 'wDBRTCem0vxD7txrg1y6p5r8nvmz8tAhET7zDASI',
|
||||
|
@ -123,6 +122,7 @@ export class OsmConnection {
|
|||
public preferenceSources : any = {}
|
||||
|
||||
public GetPreference(key: string) : UIEventSource<string>{
|
||||
key = "mapcomplete-"+key;
|
||||
if (this.preferenceSources[key] !== undefined) {
|
||||
return this.preferenceSources[key];
|
||||
}
|
||||
|
|
|
@ -48,12 +48,18 @@ export class OsmImageUploadHandler {
|
|||
title: title,
|
||||
description: description,
|
||||
handleURL: function (url) {
|
||||
let freeIndex = 0;
|
||||
while (tags["image:" + freeIndex] !== undefined) {
|
||||
freeIndex++;
|
||||
|
||||
let key = "image";
|
||||
if (tags["image"] !== undefined) {
|
||||
|
||||
let freeIndex = 0;
|
||||
while (tags["image:" + freeIndex] !== undefined) {
|
||||
freeIndex++;
|
||||
}
|
||||
key = "image:" + freeIndex;
|
||||
}
|
||||
console.log("Adding image:" + freeIndex, url);
|
||||
changes.addChange(tags.id, "image:" + freeIndex, url);
|
||||
console.log("Adding image:" + key, url);
|
||||
changes.addChange(tags.id, key, url);
|
||||
self._slideShow.MoveTo(-1); // set the last (thus newly added) image) to view
|
||||
},
|
||||
allDone: function () {
|
||||
|
|
|
@ -32,7 +32,7 @@ export class Overpass {
|
|||
|
||||
queryGeoJson(bbox: string, continuation: ((any) => void), onFail: ((reason) => void)): void {
|
||||
let query = this.buildQuery(bbox);
|
||||
|
||||
|
||||
if(Overpass.testUrl !== null){
|
||||
console.log("Using testing URL")
|
||||
query = Overpass.testUrl;
|
||||
|
@ -44,7 +44,7 @@ export class Overpass {
|
|||
console.log("Query failed")
|
||||
onFail(status);
|
||||
}
|
||||
|
||||
|
||||
if(json.elements === [] && json.remarks.indexOf("runtime error") > 0){
|
||||
console.log("Timeout or other runtime error");
|
||||
return;
|
||||
|
|
|
@ -1,508 +0,0 @@
|
|||
import {Changes} from "./Changes";
|
||||
import {UIElement} from "../UI/UIElement";
|
||||
import {UIEventSource} from "../UI/UIEventSource";
|
||||
|
||||
export class QuestionUI extends UIElement {
|
||||
private readonly _q: Question;
|
||||
private readonly _tags: UIEventSource<any>;
|
||||
/**
|
||||
* The ID of the calling question - used to trigger it's onsave
|
||||
*/
|
||||
private readonly _qid;
|
||||
|
||||
constructor(q: Question, qid: number, tags: UIEventSource<any>) {
|
||||
super(tags);
|
||||
this._q = q;
|
||||
this._tags = tags;
|
||||
this._qid = qid;
|
||||
}
|
||||
|
||||
|
||||
private RenderRadio() {
|
||||
let radios = "";
|
||||
let c = 0;
|
||||
for (let answer of this._q.question.answers) {
|
||||
const human = answer.text;
|
||||
const ansId = "q" + this._qid + "-answer" + c;
|
||||
radios +=
|
||||
"<input type='radio' name='q" + this._qid + "' id='" + ansId + "' value='" + c + "' />" +
|
||||
"<label for='" + ansId + "'>" + human + "</label>" +
|
||||
"<br />";
|
||||
c++;
|
||||
}
|
||||
return radios;
|
||||
}
|
||||
|
||||
private RenderRadioText() {
|
||||
let radios = "";
|
||||
let c = 0;
|
||||
for (let answer of this._q.question.answers) {
|
||||
const human = answer.text;
|
||||
const ansId = "q" + this._qid + "-answer" + c;
|
||||
radios +=
|
||||
"<input type='radio' name='q" + this._qid + "' id='" + ansId + "' value='" + c + "' />" +
|
||||
"<label for='" + ansId + "'>" + human + "</label>" +
|
||||
"<br />";
|
||||
c++;
|
||||
}
|
||||
const ansId = "q" + this._qid + "-answer" + c;
|
||||
|
||||
radios +=
|
||||
"<input type='radio' name='q" + this._qid + "' id='" + ansId + "' value='" + c + "' />" +
|
||||
"<label for='" + ansId + "'><input type='text' id='q-" + this._qid + "-textbox' onclick='checkRadioButton(\"" + ansId + "\")'/></label>" +
|
||||
"<br />";
|
||||
|
||||
return radios;
|
||||
}
|
||||
|
||||
|
||||
InnerRender(): string {
|
||||
|
||||
if (!this._q.Applicable(this._tags.data)) {
|
||||
return "";
|
||||
}
|
||||
|
||||
|
||||
const q = this._q.question;
|
||||
|
||||
|
||||
let answers = "";
|
||||
if (q.type == "radio") {
|
||||
answers += this.RenderRadio();
|
||||
} else if (q.type == "text") {
|
||||
answers += "<input type='text' id='q-" + this._qid + "-textbox'/><br/>"
|
||||
} else if (q.type == "radio+text") {
|
||||
answers += this.RenderRadioText();
|
||||
} else {
|
||||
alert("PLZ RENDER TYPE " + q.type);
|
||||
}
|
||||
|
||||
|
||||
const embeddedScriptSave = 'questionAnswered(' + this._qid + ', "' + this._tags.data.id + '", false )';
|
||||
const embeddedScriptSkip = 'questionAnswered(' + this._qid + ', "' + this._tags.data.id + '", true )';
|
||||
const saveButton = "<input class='save-button' type='button' onclick='" + embeddedScriptSave + "' value='Opslaan' />";
|
||||
const skip = "<input class='skip-button' type='button' onclick='" + embeddedScriptSkip + "' value='Ik ben niet zeker (vraag overslaan)' />";
|
||||
return q.question + "<br/> " + answers + saveButton + skip;
|
||||
}
|
||||
|
||||
InnerUpdate(htmlElement: HTMLElement) {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
export class QuestionDefinition {
|
||||
|
||||
|
||||
static noNameOrNameQuestion(question: string, noExplicitName : string, severity : number) : QuestionDefinition{
|
||||
const q = new QuestionDefinition(question);
|
||||
|
||||
q.type = 'radio+text';
|
||||
q.addAnwser(noExplicitName, "noname","yes");
|
||||
q.addUnrequiredTag("name", "*");
|
||||
q.addUnrequiredTag("noname", "yes");
|
||||
|
||||
q.key = "name";
|
||||
q.severity = severity;
|
||||
return q;
|
||||
}
|
||||
|
||||
static textQuestion(
|
||||
question: string,
|
||||
key: string,
|
||||
severity: number
|
||||
): QuestionDefinition {
|
||||
const q = new QuestionDefinition(question);
|
||||
q.type = 'text';
|
||||
q.key = key;
|
||||
q.severity = severity;
|
||||
q.addUnrequiredTag(key, '*');
|
||||
return q;
|
||||
}
|
||||
|
||||
static radioQuestionSimple(
|
||||
question: string,
|
||||
severity: number,
|
||||
key: string,
|
||||
answers: { text: string, value: string }[]) {
|
||||
|
||||
|
||||
const answers0: {
|
||||
text: string,
|
||||
tags: { k: string, v: string }[],
|
||||
}[] = [];
|
||||
for (const i in answers) {
|
||||
const answer = answers[i];
|
||||
answers0.push({text: answer.text, tags: [{k: key, v: answer.value}]})
|
||||
}
|
||||
|
||||
var q = this.radioQuestion(question, severity, answers0);
|
||||
q.key = key;
|
||||
q.addUnrequiredTag(key, '*');
|
||||
return q;
|
||||
}
|
||||
|
||||
static radioAndTextQuestion(
|
||||
question: string,
|
||||
severity: number,
|
||||
key: string,
|
||||
answers: { text: string, value: string }[]) {
|
||||
|
||||
const q = this.radioQuestionSimple(question, severity, key, answers);
|
||||
q.type = 'radio+text';
|
||||
return q;
|
||||
|
||||
}
|
||||
|
||||
static radioQuestion(
|
||||
question: string,
|
||||
severity: number,
|
||||
answers:
|
||||
{
|
||||
text: string,
|
||||
tags: { k: string, v: string }[],
|
||||
}[]
|
||||
): QuestionDefinition {
|
||||
|
||||
|
||||
const q = new QuestionDefinition(question);
|
||||
q.severity = severity;
|
||||
q.type = 'radio';
|
||||
q.answers = answers;
|
||||
for (const i in answers) {
|
||||
const answer = answers[i];
|
||||
for (const j in answer.tags) {
|
||||
const tag = answer.tags[j];
|
||||
q.addUnrequiredTag(tag.k, tag.v);
|
||||
}
|
||||
}
|
||||
|
||||
return q;
|
||||
}
|
||||
|
||||
|
||||
static GrbNoNumberQuestion() : QuestionDefinition{
|
||||
const q = new QuestionDefinition("Heeft dit gebouw een huisnummer?");
|
||||
q.type = "radio";
|
||||
q.severity = 10;
|
||||
q.answers = [{
|
||||
text: "Ja, het OSM-huisnummer is correct",
|
||||
tags: [{k: "fixme", v: ""}]
|
||||
}, {
|
||||
|
||||
text: "Nee, het is een enkele garage",
|
||||
tags: [{k: "building", v: "garage"}, {k: "fixme", v: ""}]
|
||||
}, {
|
||||
|
||||
text: "Nee, het zijn meerdere garages",
|
||||
tags: [{k: "building", v: "garages"}, {k: "fixme", v: ""}]
|
||||
}
|
||||
|
||||
|
||||
];
|
||||
q.addRequiredTag("fixme", "GRB thinks that this has number no number")
|
||||
return q;
|
||||
}
|
||||
|
||||
static GrbHouseNumberQuestion() : QuestionDefinition{
|
||||
|
||||
|
||||
const q = new QuestionDefinition("Wat is het huisnummer?");
|
||||
q.type = "radio+text";
|
||||
q.severity = 10;
|
||||
|
||||
q.answers = [{
|
||||
text: "Het OSM-huisnummer is correct",
|
||||
tags: [{k: "fixme", v: ""}],
|
||||
}]
|
||||
q.key = "addr:housenumber";
|
||||
|
||||
|
||||
q.addRequiredTag("fixme", "*");
|
||||
|
||||
return q;
|
||||
}
|
||||
|
||||
|
||||
private constructor(question: string) {
|
||||
this.question = question;
|
||||
}
|
||||
|
||||
/**
|
||||
* Question for humans
|
||||
*/
|
||||
public question: string;
|
||||
|
||||
/**
|
||||
* 'type' indicates how the answers are rendered and must be one of:
|
||||
* 'text' for a free to fill text field
|
||||
* 'radio' for radiobuttons
|
||||
* 'radio+text' for radiobuttons and a freefill text field
|
||||
* 'dropdown' for a dropdown menu
|
||||
* 'number' for a number field
|
||||
*
|
||||
* If 'text' or 'number' is specified, 'key' is used as tag for the answer.
|
||||
* If 'radio' or 'dropdown' is specified, the answers are used from 'tags'
|
||||
*
|
||||
*/
|
||||
public type: string = 'radio';
|
||||
/**
|
||||
* Only used for 'text' or 'number' questions
|
||||
*/
|
||||
public key: string = null;
|
||||
|
||||
public answers: {
|
||||
text: string,
|
||||
tags: { k: string, v: string }[]
|
||||
}[];
|
||||
|
||||
/**
|
||||
* Indicates that the element must have _all_ the tags defined below
|
||||
* Dictionary 'key' => [values]; empty list is wildcard
|
||||
*/
|
||||
private mustHaveAllTags = [];
|
||||
|
||||
/**
|
||||
* Indicates that the element must _not_ have any of the tags defined below.
|
||||
* Dictionary 'key' => [values]
|
||||
*/
|
||||
private mustNotHaveTags = [];
|
||||
|
||||
/**
|
||||
* Severity: how important the question is
|
||||
* The higher, the sooner it'll be shown
|
||||
*/
|
||||
public severity: number = 0;
|
||||
|
||||
addRequiredTag(key: string, value: string) {
|
||||
if (this.mustHaveAllTags[key] === undefined) {
|
||||
this.mustHaveAllTags[key] = [value];
|
||||
} else {
|
||||
if(this.mustHaveAllTags[key] === []){
|
||||
// Wildcard
|
||||
return;
|
||||
}
|
||||
this.mustHaveAllTags[key].push(value);
|
||||
}
|
||||
|
||||
if (value === '*') {
|
||||
this.mustHaveAllTags[key] = [];
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
addUnrequiredTag(key: string, value: string) {
|
||||
let valueList = this.mustNotHaveTags[key];
|
||||
|
||||
if (valueList === undefined) {
|
||||
valueList = [value];
|
||||
this.mustNotHaveTags[key] = valueList;
|
||||
} else {
|
||||
if (valueList === []) {
|
||||
return;
|
||||
}
|
||||
valueList.push(value);
|
||||
}
|
||||
|
||||
if (value === '*') {
|
||||
this.mustNotHaveTags[key] = [];
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
private addAnwser(anwser: string, key: string, value: string) {
|
||||
if (this.answers === undefined) {
|
||||
this.answers = [{text: anwser, tags: [{k: key, v: value}]}];
|
||||
} else {
|
||||
this.answers.push({text: anwser, tags: [{k: key, v: value}]});
|
||||
}
|
||||
this.addUnrequiredTag(key, value);
|
||||
}
|
||||
|
||||
public isApplicable(alreadyExistingTags): boolean {
|
||||
for (let k in this.mustHaveAllTags) {
|
||||
|
||||
var actual = alreadyExistingTags[k];
|
||||
if (actual === undefined) {
|
||||
return false;
|
||||
}
|
||||
|
||||
let possibleVals = this.mustHaveAllTags[k];
|
||||
if (possibleVals.length == 0) {
|
||||
// Wildcard
|
||||
continue;
|
||||
}
|
||||
|
||||
let index = possibleVals.indexOf(actual);
|
||||
if (index < 0) {
|
||||
return false
|
||||
}
|
||||
}
|
||||
|
||||
for (var k in this.mustNotHaveTags) {
|
||||
var actual = alreadyExistingTags[k];
|
||||
if (actual === undefined) {
|
||||
continue;
|
||||
}
|
||||
let impossibleVals = this.mustNotHaveTags[k];
|
||||
if (impossibleVals.length == 0) {
|
||||
// Wildcard
|
||||
return false;
|
||||
}
|
||||
|
||||
let index = impossibleVals.indexOf(actual);
|
||||
if (index >= 0) {
|
||||
return false
|
||||
}
|
||||
}
|
||||
|
||||
return true;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
export class Question {
|
||||
|
||||
|
||||
// All the questions are stored in here, to be able to retrieve them globaly. This is a workaround, see below
|
||||
static questions = Question.InitCallbackFunction();
|
||||
|
||||
static InitCallbackFunction(): Question[] {
|
||||
|
||||
// This needs some explanation, as it is a workaround
|
||||
Question.questions = [];
|
||||
// The html in a popup is only created when the user actually clicks to open it
|
||||
// This means that we can not bind code to an HTML-element (as it doesn't exist yet)
|
||||
// We work around this, by letting the 'save' button just call the function 'questionAnswered' with the ID of the question
|
||||
// THis defines and registers this global function
|
||||
|
||||
|
||||
/**
|
||||
* Calls back to the question with either the answer or 'skip'
|
||||
* @param questionId
|
||||
* @param elementId
|
||||
*/
|
||||
function questionAnswered(questionId, elementId, dontKnow) {
|
||||
if (dontKnow) {
|
||||
Question.questions[questionId].Skip(elementId);
|
||||
} else {
|
||||
Question.questions[questionId].OnSave(elementId);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
function checkRadioButton(id) {
|
||||
// @ts-ignore
|
||||
document.getElementById(id).checked = true;
|
||||
}
|
||||
|
||||
// must cast as any to set property on window
|
||||
// @ts-ignore
|
||||
const _global = (window /* browser */ || global /* node */) as any;
|
||||
_global.questionAnswered = questionAnswered;
|
||||
_global.checkRadioButton = checkRadioButton;
|
||||
return [];
|
||||
}
|
||||
|
||||
|
||||
public readonly question: QuestionDefinition;
|
||||
private _changeHandler: Changes;
|
||||
private readonly _qId;
|
||||
public skippedElements: string[] = [];
|
||||
|
||||
constructor(
|
||||
changeHandler: Changes,
|
||||
question: QuestionDefinition) {
|
||||
|
||||
this.question = question;
|
||||
|
||||
this._qId = Question.questions.length;
|
||||
this._changeHandler = changeHandler;
|
||||
Question.questions.push(this);
|
||||
}
|
||||
|
||||
/**
|
||||
* SHould this question be asked?
|
||||
* Returns false if question is already there or if a premise is missing
|
||||
*/
|
||||
public Applicable(tags): boolean {
|
||||
|
||||
if (this.skippedElements.indexOf(tags.id) >= 0) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return this.question.isApplicable(tags);
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* @param elementId: the OSM-id of the element to perform the change on, format 'way/123', 'node/456' or 'relation/789'
|
||||
* @constructor
|
||||
*/
|
||||
protected OnSave(elementId: string) {
|
||||
let tagsToApply: { k: string, v: string }[] = [];
|
||||
const q: QuestionDefinition = this.question;
|
||||
let tp = this.question.type;
|
||||
if (tp === "radio") {
|
||||
const selected = document.querySelector('input[name="q' + this._qId + '"]:checked');
|
||||
if (selected === null) {
|
||||
console.log("No answer selected");
|
||||
return
|
||||
}
|
||||
let index = (selected as any).value;
|
||||
tagsToApply = q.answers[index].tags;
|
||||
} else if (tp === "text") {
|
||||
// @ts-ignore
|
||||
let value = document.getElementById("q-" + this._qId + "-textbox").value;
|
||||
if (value === undefined || value.length == 0) {
|
||||
console.log("Answer too short");
|
||||
return;
|
||||
}
|
||||
tagsToApply = [{k: q.key, v: value}];
|
||||
} else if (tp === "radio+text") {
|
||||
const selected = document.querySelector('input[name="q' + this._qId + '"]:checked');
|
||||
if (selected === null) {
|
||||
console.log("No answer selected");
|
||||
return
|
||||
}
|
||||
let index = (selected as any).value;
|
||||
if (index < q.answers.length) {
|
||||
// A 'proper' answer was selected
|
||||
tagsToApply = q.answers[index].tags;
|
||||
} else {
|
||||
// The textfield was selected
|
||||
// @ts-ignore
|
||||
let value = document.getElementById("q-" + this._qId + "-textbox").value;
|
||||
if (value === undefined || value.length < 3) {
|
||||
console.log("Answer too short");
|
||||
return;
|
||||
}
|
||||
tagsToApply = [{k: q.key, v: value}];
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
console.log("Question.ts: Applying tags",tagsToApply," to element ", elementId);
|
||||
|
||||
for (const toApply of tagsToApply) {
|
||||
this._changeHandler.addChange(elementId, toApply.k, toApply.v);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates the HTML question for this tag collection
|
||||
*/
|
||||
public CreateHtml(tags: UIEventSource<any>): UIElement {
|
||||
return new QuestionUI(this, this._qId, tags);
|
||||
}
|
||||
|
||||
|
||||
private Skip(elementId: any) {
|
||||
this.skippedElements.push(elementId);
|
||||
console.log("SKIP");
|
||||
// Yeah, this is cheating below
|
||||
// It is an easy way to notify the UIElement that something has changed
|
||||
this._changeHandler._allElements.getElement(elementId).ping();
|
||||
}
|
||||
}
|
|
@ -10,16 +10,16 @@ import {UIElement} from "../UI/UIElement";
|
|||
export class StrayClickHandler {
|
||||
private _basemap: Basemap;
|
||||
private _lastMarker;
|
||||
private _leftMessage: UIEventSource<() => UIElement>;
|
||||
private _fullScreenMessage: UIEventSource<UIElement>;
|
||||
private _uiToShow: (() => UIElement);
|
||||
|
||||
constructor(
|
||||
basemap: Basemap,
|
||||
selectElement: UIEventSource<any>,
|
||||
leftMessage: UIEventSource<() => UIElement>,
|
||||
selectElement: UIEventSource<{ feature: any }>,
|
||||
fullScreenMessage: UIEventSource<UIElement>,
|
||||
uiToShow: (() => UIElement)) {
|
||||
this._basemap = basemap;
|
||||
this._leftMessage = leftMessage;
|
||||
this._fullScreenMessage = fullScreenMessage;
|
||||
this._uiToShow = uiToShow;
|
||||
const self = this;
|
||||
const map = basemap.map;
|
||||
|
@ -32,15 +32,16 @@ export class StrayClickHandler {
|
|||
self._lastMarker = L.marker([lastClick.lat, lastClick.lon]);
|
||||
const uiElement = uiToShow();
|
||||
const popup = L.popup().setContent(uiElement.Render());
|
||||
uiElement.Activate();
|
||||
uiElement.Update();
|
||||
uiElement.Activate();
|
||||
self._lastMarker.addTo(map);
|
||||
self._lastMarker.bindPopup(popup).openPopup();
|
||||
|
||||
self._lastMarker.on("click", () => {
|
||||
leftMessage.setData(self._uiToShow);
|
||||
fullScreenMessage.setData(self._uiToShow());
|
||||
});
|
||||
|
||||
uiElement.Update();
|
||||
uiElement.Activate();
|
||||
});
|
||||
|
||||
selectElement.addCallback(() => {
|
||||
|
|
|
@ -56,6 +56,9 @@ When a map feature is clicked, a popup shows the information, images and questio
|
|||
The answers given by the user are sent (after a few seconds) to OpenStreetMap directly - if the user is logged in. If not logged in, the user is prompted to do so.
|
||||
|
||||
|
||||
The UI-event-source is a class where the entire system is built upon, it acts as an observable object: another object can register for changes to update when needed.
|
||||
|
||||
|
||||
### Searching images
|
||||
|
||||
Images are fetched from:
|
||||
|
|
|
@ -123,6 +123,7 @@ export class AddButton extends UIElement {
|
|||
const self = this;
|
||||
|
||||
htmlElement.onclick = function (event) {
|
||||
// @ts-ignore
|
||||
if(event.consumed){
|
||||
return;
|
||||
}
|
||||
|
|
|
@ -18,7 +18,7 @@ export class Button extends UIElement {
|
|||
}
|
||||
|
||||
|
||||
protected InnerRender(): string {
|
||||
InnerRender(): string {
|
||||
|
||||
return "<form>" +
|
||||
"<button id='button-"+this.id+"' type='button' "+this._clss+">" + this._text.Render() + "</button>" +
|
||||
|
|
|
@ -4,6 +4,7 @@ import { FilteredLayer } from "../../Logic/FilteredLayer";
|
|||
|
||||
|
||||
export class CheckBox extends UIElement{
|
||||
private data: UIEventSource<boolean>;
|
||||
|
||||
private readonly _data: UIEventSource<boolean>;
|
||||
private readonly _showEnabled: string|UIElement;
|
||||
|
@ -21,7 +22,7 @@ export class CheckBox extends UIElement{
|
|||
|
||||
}
|
||||
|
||||
protected InnerRender(): string {
|
||||
InnerRender(): string {
|
||||
if (this._data.data) {
|
||||
return this._showEnabled;
|
||||
} else {
|
||||
|
|
31
UI/Base/Combine.ts
Normal file
|
@ -0,0 +1,31 @@
|
|||
import {UIElement} from "../UIElement";
|
||||
import Translations from "../i18n/Translations";
|
||||
|
||||
export default class Combine extends UIElement {
|
||||
private uiElements: (string | UIElement)[];
|
||||
|
||||
constructor(uiElements: (string | UIElement)[]) {
|
||||
super(undefined);
|
||||
this.uiElements = uiElements;
|
||||
}
|
||||
|
||||
InnerRender(): string {
|
||||
let elements = "";
|
||||
for (const element of this.uiElements) {
|
||||
if (element instanceof UIElement) {
|
||||
elements += element.Render();
|
||||
} else {
|
||||
elements += element;
|
||||
}
|
||||
}
|
||||
return elements;
|
||||
}
|
||||
|
||||
protected InnerUpdate(htmlElement: HTMLElement) {
|
||||
for (const element of this.uiElements) {
|
||||
if (element instanceof UIElement) {
|
||||
element.Update();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -1,61 +0,0 @@
|
|||
import {UIEventSource} from "../UIEventSource";
|
||||
import {UIElement} from "../UIElement";
|
||||
|
||||
export class DropDownUI extends UIElement {
|
||||
|
||||
selectedElement: UIEventSource<string>
|
||||
private _label: string;
|
||||
private _values: { value: string; shown: string }[];
|
||||
|
||||
constructor(label: string, values: { value: string, shown: string }[],
|
||||
selectedElement: UIEventSource<string> = undefined) {
|
||||
super(undefined);
|
||||
this._label = label;
|
||||
this._values = values;
|
||||
this.selectedElement = selectedElement ?? new UIEventSource<string>(values[0].value);
|
||||
if(selectedElement.data === undefined){
|
||||
this.selectedElement.setData(values[0].value)
|
||||
}
|
||||
const self = this;
|
||||
this.selectedElement.addCallback(() => {
|
||||
self.InnerUpdate();
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
protected InnerRender(): string {
|
||||
|
||||
let options = "";
|
||||
for (const value of this._values) {
|
||||
options += "<option value='" + value.value + "'>" + value.shown + "</option>"
|
||||
}
|
||||
|
||||
return "<form>" +
|
||||
"<label for='dropdown-" + this.id + "'>" + this._label + "</label>" +
|
||||
"<select name='dropdown-" + this.id + "' id='dropdown-" + this.id + "'>" +
|
||||
options +
|
||||
"</select>" +
|
||||
"</form>";
|
||||
}
|
||||
|
||||
InnerUpdate() {
|
||||
const self = this;
|
||||
const e = document.getElementById("dropdown-" + this.id);
|
||||
if(e === null){
|
||||
return;
|
||||
}
|
||||
// @ts-ignore
|
||||
if (this.selectedElement.data !== e.value) {
|
||||
// @ts-ignore
|
||||
e.value = this.selectedElement.data;
|
||||
}
|
||||
e.onchange = function () {
|
||||
// @ts-ignore
|
||||
const selectedValue = e.options[e.selectedIndex].value;
|
||||
console.log("Putting data", selectedValue)
|
||||
self.selectedElement.setData(selectedValue);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
|
@ -5,10 +5,10 @@ export class FixedUiElement extends UIElement {
|
|||
|
||||
constructor(html: string) {
|
||||
super(undefined);
|
||||
this._html = html;
|
||||
this._html = html ?? "";
|
||||
}
|
||||
|
||||
protected InnerRender(): string {
|
||||
InnerRender(): string {
|
||||
return this._html;
|
||||
}
|
||||
|
||||
|
|
|
@ -1,59 +0,0 @@
|
|||
import {UIElement} from "../UIElement";
|
||||
import {UIEventSource} from "../UIEventSource";
|
||||
import {UIInputElement} from "./UIInputElement";
|
||||
|
||||
|
||||
export class TextField<T> extends UIInputElement<T> {
|
||||
|
||||
public value: UIEventSource<string> = new UIEventSource<string>("");
|
||||
/**
|
||||
* Pings and has the value data
|
||||
*/
|
||||
public enterPressed = new UIEventSource<string>(undefined);
|
||||
private _placeholder: UIEventSource<string>;
|
||||
private _mapping: (string) => T;
|
||||
|
||||
constructor(placeholder: UIEventSource<string>,
|
||||
mapping: ((string) => T)) {
|
||||
super(placeholder);
|
||||
this._placeholder = placeholder;
|
||||
this._mapping = mapping;
|
||||
}
|
||||
|
||||
GetValue(): UIEventSource<T> {
|
||||
return this.value.map(this._mapping);
|
||||
}
|
||||
|
||||
protected InnerRender(): string {
|
||||
return "<form onSubmit='return false' class='form-text-field'>" +
|
||||
"<input type='text' placeholder='" + (this._placeholder.data ?? "") + "' id='text-" + this.id + "'>" +
|
||||
"</form>";
|
||||
}
|
||||
|
||||
InnerUpdate(htmlElement: HTMLElement) {
|
||||
super.InnerUpdate(htmlElement);
|
||||
const field = document.getElementById('text-' + this.id);
|
||||
const self = this;
|
||||
field.oninput = () => {
|
||||
// @ts-ignore
|
||||
self.value.setData(field.value);
|
||||
};
|
||||
|
||||
field.addEventListener("keyup", function (event) {
|
||||
if (event.key === "Enter") {
|
||||
// @ts-ignore
|
||||
self.enterPressed.setData(field.value);
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
}
|
||||
|
||||
Clear() {
|
||||
const field = document.getElementById('text-' + this.id);
|
||||
if (field !== undefined) {
|
||||
// @ts-ignore
|
||||
field.value = "";
|
||||
}
|
||||
}
|
||||
}
|
|
@ -1,8 +0,0 @@
|
|||
import {UIElement} from "../UIElement";
|
||||
import {UIEventSource} from "../UIEventSource";
|
||||
|
||||
export abstract class UIInputElement<T> extends UIElement{
|
||||
|
||||
abstract GetValue() : UIEventSource<T>;
|
||||
|
||||
}
|
|
@ -1,109 +0,0 @@
|
|||
import {UIElement} from "../UIElement";
|
||||
import {UIEventSource} from "../UIEventSource";
|
||||
import {UIInputElement} from "./UIInputElement";
|
||||
|
||||
export class UIRadioButton<T> extends UIInputElement<T> {
|
||||
|
||||
public readonly SelectedElementIndex: UIEventSource<number>
|
||||
= new UIEventSource<number>(null);
|
||||
|
||||
private readonly _elements: UIEventSource<UIElement[]>
|
||||
private _selectFirstAsDefault: boolean;
|
||||
private _valueMapping: (i: number) => T;
|
||||
|
||||
constructor(elements: UIEventSource<UIElement[]>,
|
||||
valueMapping: ((i: number) => T),
|
||||
selectFirstAsDefault = true) {
|
||||
super(elements);
|
||||
this._elements = elements;
|
||||
this._selectFirstAsDefault = selectFirstAsDefault;
|
||||
const self = this;
|
||||
this._valueMapping = valueMapping;
|
||||
this.SelectedElementIndex.addCallback(() => {
|
||||
self.InnerUpdate(undefined);
|
||||
})
|
||||
}
|
||||
|
||||
GetValue(): UIEventSource<T> {
|
||||
return this.SelectedElementIndex.map(this._valueMapping);
|
||||
}
|
||||
|
||||
|
||||
private IdFor(i) {
|
||||
return 'radio-' + this.id + '-' + i;
|
||||
}
|
||||
|
||||
protected InnerRender(): string {
|
||||
|
||||
let body = "";
|
||||
let i = 0;
|
||||
for (const el of this._elements.data) {
|
||||
const htmlElement =
|
||||
'<input type="radio" id="' + this.IdFor(i) + '" name="radiogroup-' + this.id + '">' +
|
||||
'<label for="' + this.IdFor(i) + '">' + el.Render() + '</label>' +
|
||||
'<br>';
|
||||
body += htmlElement;
|
||||
|
||||
i++;
|
||||
}
|
||||
|
||||
return "<form id='" + this.id + "-form'>" + body + "</form>";
|
||||
}
|
||||
|
||||
InnerUpdate(htmlElement: HTMLElement) {
|
||||
const self = this;
|
||||
|
||||
function checkButtons() {
|
||||
for (let i = 0; i < self._elements.data.length; i++) {
|
||||
const el = document.getElementById(self.IdFor(i));
|
||||
// @ts-ignore
|
||||
if (el.checked) {
|
||||
self.SelectedElementIndex.setData(i);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
const el = document.getElementById(this.id);
|
||||
el.addEventListener("change",
|
||||
function () {
|
||||
checkButtons();
|
||||
}
|
||||
);
|
||||
|
||||
if (this.SelectedElementIndex.data == null) {
|
||||
if (this._selectFirstAsDefault) {
|
||||
const el = document.getElementById(this.IdFor(0));
|
||||
if (el) {
|
||||
// @ts-ignore
|
||||
el.checked = true;
|
||||
checkButtons();
|
||||
}
|
||||
}
|
||||
} else {
|
||||
|
||||
// We check that what is selected matches the previous rendering
|
||||
var checked = -1;
|
||||
var expected = this.SelectedElementIndex.data;
|
||||
if (expected) {
|
||||
|
||||
for (let i = 0; i < self._elements.data.length; i++) {
|
||||
const el = document.getElementById(self.IdFor(i));
|
||||
// @ts-ignore
|
||||
if (el.checked) {
|
||||
checked = i;
|
||||
}
|
||||
}
|
||||
if (expected != checked) {
|
||||
const el = document.getElementById(this.IdFor(expected));
|
||||
// @ts-ignore
|
||||
el.checked = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
|
@ -1,72 +0,0 @@
|
|||
import {UIInputElement} from "./UIInputElement";
|
||||
import {UIEventSource} from "../UIEventSource";
|
||||
import {UIRadioButton} from "./UIRadioButton";
|
||||
import {UIElement} from "../UIElement";
|
||||
import {TextField} from "./TextField";
|
||||
import {FixedUiElement} from "./FixedUiElement";
|
||||
|
||||
|
||||
export class UIRadioButtonWithOther<T> extends UIInputElement<T> {
|
||||
private readonly _radioSelector: UIRadioButton<T>;
|
||||
private readonly _freeformText: TextField<T>;
|
||||
private readonly _value: UIEventSource<T> = new UIEventSource<T>(undefined)
|
||||
|
||||
constructor(choices: UIElement[],
|
||||
otherChoiceTemplate: string,
|
||||
placeholder: string,
|
||||
choiceToValue: ((i: number) => T),
|
||||
stringToValue: ((string: string) => T)) {
|
||||
super(undefined);
|
||||
const self = this;
|
||||
|
||||
this._freeformText = new TextField(
|
||||
new UIEventSource<string>(placeholder),
|
||||
stringToValue);
|
||||
|
||||
|
||||
const otherChoiceElement = new FixedUiElement(
|
||||
otherChoiceTemplate.replace("$$$", this._freeformText.Render()));
|
||||
choices.push(otherChoiceElement);
|
||||
|
||||
this._radioSelector = new UIRadioButton(new UIEventSource(choices),
|
||||
(i) => {
|
||||
if (i === undefined || i === null) {
|
||||
return undefined;
|
||||
}
|
||||
if (i + 1 >= choices.length) {
|
||||
return this._freeformText.GetValue().data
|
||||
}
|
||||
return choiceToValue(i);
|
||||
},
|
||||
false);
|
||||
|
||||
this._radioSelector.GetValue().addCallback(
|
||||
(i) => {
|
||||
self._value.setData(i);
|
||||
});
|
||||
this._freeformText.GetValue().addCallback((str) => {
|
||||
self._value.setData(str);
|
||||
}
|
||||
);
|
||||
this._freeformText.onClick(() => {
|
||||
self._radioSelector.SelectedElementIndex.setData(choices.length - 1);
|
||||
})
|
||||
|
||||
|
||||
}
|
||||
|
||||
GetValue(): UIEventSource<T> {
|
||||
return this._value;
|
||||
}
|
||||
|
||||
protected InnerRender(): string {
|
||||
return this._radioSelector.Render();
|
||||
}
|
||||
|
||||
InnerUpdate(htmlElement: HTMLElement) {
|
||||
super.InnerUpdate(htmlElement);
|
||||
this._radioSelector.Update();
|
||||
this._freeformText.Update();
|
||||
}
|
||||
|
||||
}
|
|
@ -12,16 +12,8 @@ export class VariableUiElement extends UIElement {
|
|||
|
||||
}
|
||||
|
||||
protected InnerRender(): string {
|
||||
InnerRender(): string {
|
||||
return this._html.data;
|
||||
}
|
||||
|
||||
InnerUpdate(htmlElement: HTMLElement) {
|
||||
super.InnerUpdate(htmlElement);
|
||||
if(this._innerUpdate !== undefined){
|
||||
this._innerUpdate(htmlElement);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
|
@ -1,6 +1,7 @@
|
|||
import {UIElement} from "./UIElement";
|
||||
import {UIEventSource} from "./UIEventSource";
|
||||
import {OsmConnection} from "../Logic/OsmConnection";
|
||||
import Translations from "./i18n/Translations";
|
||||
|
||||
export class CenterMessageBox extends UIElement {
|
||||
|
||||
|
@ -34,17 +35,17 @@ export class CenterMessageBox extends UIElement {
|
|||
|
||||
}
|
||||
|
||||
protected InnerRender(): string {
|
||||
InnerRender(): string {
|
||||
|
||||
if (this._centermessage.data != "") {
|
||||
return this._centermessage.data;
|
||||
}
|
||||
if (this._queryRunning.data) {
|
||||
return "Data wordt geladen...";
|
||||
return Translations.t.centerMessage.loadingData.Render();
|
||||
} else if (this._zoomInMore.data) {
|
||||
return "Zoom in om de data te zien en te bewerken";
|
||||
return Translations.t.centerMessage.zoomIn.Render();
|
||||
}
|
||||
return "Klaar!";
|
||||
return Translations.t.centerMessage.ready.Render();
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -10,10 +10,18 @@ import {TagRenderingOptions} from "../Customizations/TagRendering";
|
|||
import {OsmLink} from "../Customizations/Questions/OsmLink";
|
||||
import {WikipediaLink} from "../Customizations/Questions/WikipediaLink";
|
||||
import {And} from "../Logic/TagsFilter";
|
||||
import {TagDependantUIElement} from "../Customizations/UIElementConstructor";
|
||||
import {TagDependantUIElement, TagDependantUIElementConstructor} from "../Customizations/UIElementConstructor";
|
||||
import Translations from "./i18n/Translations";
|
||||
|
||||
export class FeatureInfoBox extends UIElement {
|
||||
|
||||
/**
|
||||
* The actual GEOJSON-object, with geometry and stuff
|
||||
*/
|
||||
private _feature: any;
|
||||
/**
|
||||
* The tags, wrapped in a global event source
|
||||
*/
|
||||
private _tagsES: UIEventSource<any>;
|
||||
private _changes: Changes;
|
||||
private _userDetails: UIEventSource<UserDetails>;
|
||||
|
@ -24,31 +32,49 @@ export class FeatureInfoBox extends UIElement {
|
|||
private _wikipedialink: UIElement;
|
||||
|
||||
|
||||
|
||||
private _infoboxes: TagDependantUIElement[];
|
||||
private _questions: QuestionPicker;
|
||||
|
||||
private _oneSkipped = Translations.t.general.oneSkippedQuestion.Clone();
|
||||
private _someSkipped = Translations.t.general.skippedQuestions.Clone();
|
||||
|
||||
constructor(
|
||||
feature: any,
|
||||
tagsES: UIEventSource<any>,
|
||||
title: TagRenderingOptions,
|
||||
elementsToShow: TagRenderingOptions[],
|
||||
title: TagRenderingOptions | UIElement,
|
||||
elementsToShow: TagDependantUIElementConstructor[],
|
||||
changes: Changes,
|
||||
userDetails: UIEventSource<UserDetails>
|
||||
) {
|
||||
super(tagsES);
|
||||
this._feature = feature;
|
||||
this._tagsES = tagsES;
|
||||
this._changes = changes;
|
||||
this._userDetails = userDetails;
|
||||
this.ListenTo(userDetails);
|
||||
|
||||
const deps = {tags:this._tagsES , changes:this._changes}
|
||||
|
||||
const deps = {tags: this._tagsES, changes: this._changes}
|
||||
|
||||
this._infoboxes = [];
|
||||
elementsToShow = elementsToShow ?? []
|
||||
|
||||
const self = this;
|
||||
for (const tagRenderingOption of elementsToShow) {
|
||||
this._infoboxes.push(
|
||||
self._infoboxes.push(
|
||||
tagRenderingOption.construct(deps));
|
||||
}
|
||||
function initTags() {
|
||||
self._infoboxes = []
|
||||
for (const tagRenderingOption of elementsToShow) {
|
||||
self._infoboxes.push(
|
||||
tagRenderingOption.construct(deps));
|
||||
}
|
||||
self.Update();
|
||||
}
|
||||
|
||||
this._someSkipped.onClick(initTags)
|
||||
this._oneSkipped.onClick(initTags)
|
||||
|
||||
|
||||
title = title ?? new TagRenderingOptions(
|
||||
{
|
||||
|
@ -56,10 +82,14 @@ export class FeatureInfoBox extends UIElement {
|
|||
}
|
||||
)
|
||||
|
||||
this._title = new TagRenderingOptions(title.options).construct(deps);
|
||||
this._osmLink =new OsmLink().construct(deps);
|
||||
if (title instanceof UIElement) {
|
||||
this._title = title;
|
||||
} else {
|
||||
this._title = new TagRenderingOptions(title.options).construct(deps);
|
||||
}
|
||||
this._osmLink = new OsmLink().construct(deps);
|
||||
this._wikipedialink = new WikipediaLink().construct(deps);
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
@ -67,13 +97,16 @@ export class FeatureInfoBox extends UIElement {
|
|||
|
||||
|
||||
const info = [];
|
||||
const questions : TagDependantUIElement[] = [];
|
||||
|
||||
const questions: TagDependantUIElement[] = [];
|
||||
let skippedQuestions = 0;
|
||||
for (const infobox of this._infoboxes) {
|
||||
if (infobox.IsKnown()) {
|
||||
info.push(infobox);
|
||||
} else if (infobox.IsQuestioning()) {
|
||||
questions.push(infobox);
|
||||
} else {
|
||||
// This question is neither known nor questioning -> it was skipped
|
||||
skippedQuestions++;
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -93,6 +126,10 @@ export class FeatureInfoBox extends UIElement {
|
|||
}
|
||||
|
||||
questionsHtml = mostImportantQuestion.Render();
|
||||
} else if (skippedQuestions == 1) {
|
||||
questionsHtml = this._oneSkipped.Render();
|
||||
} else if (skippedQuestions > 0) {
|
||||
questionsHtml = this._someSkipped.Render();
|
||||
}
|
||||
|
||||
return "<div class='featureinfobox'>" +
|
||||
|
@ -115,4 +152,6 @@ export class FeatureInfoBox extends UIElement {
|
|||
"</div>";
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
|
|
@ -1,14 +1,16 @@
|
|||
/**
|
||||
* Keeps 'messagebox' and 'messageboxmobile' in sync, shows a 'close' button on the latter one
|
||||
*/
|
||||
import {UIEventSource} from "./UIEventSource";
|
||||
import {UIElement} from "./UIElement";
|
||||
import {VariableUiElement} from "./Base/VariableUIElement";
|
||||
import Translations from "./i18n/Translations";
|
||||
|
||||
export class MessageBoxHandler {
|
||||
private _uielement: UIEventSource<() => UIElement>;
|
||||
/**
|
||||
* Handles the full screen popup on mobile
|
||||
*/
|
||||
export class FullScreenMessageBoxHandler {
|
||||
|
||||
private _uielement: UIEventSource<UIElement>;
|
||||
|
||||
constructor(uielement: UIEventSource<() => UIElement>,
|
||||
constructor(uielement: UIEventSource<UIElement>,
|
||||
onClear: (() => void)) {
|
||||
this._uielement = uielement;
|
||||
this.listenTo(uielement);
|
||||
|
@ -22,14 +24,13 @@ export class MessageBoxHandler {
|
|||
}
|
||||
}
|
||||
|
||||
new VariableUiElement(new UIEventSource<string>("<h2>Naar de kaart</h2>"),
|
||||
() => {
|
||||
document.getElementById("to-the-map").onclick = function () {
|
||||
uielement.setData(undefined);
|
||||
onClear();
|
||||
}
|
||||
}
|
||||
).AttachTo("to-the-map");
|
||||
Translations.t.general.returnToTheMap
|
||||
.onClick(() => {
|
||||
console.log("Clicked 'return to the map'")
|
||||
uielement.setData(undefined);
|
||||
onClear();
|
||||
})
|
||||
.AttachTo("to-the-map-h2");
|
||||
|
||||
|
||||
}
|
||||
|
@ -45,7 +46,6 @@ export class MessageBoxHandler {
|
|||
update() {
|
||||
const wrapper = document.getElementById("messagesboxmobilewrapper");
|
||||
const gen = this._uielement.data;
|
||||
console.log("Generator: ", gen);
|
||||
if (gen === undefined) {
|
||||
wrapper.classList.add("hidden")
|
||||
if (location.hash !== "") {
|
||||
|
@ -55,12 +55,8 @@ export class MessageBoxHandler {
|
|||
}
|
||||
location.hash = "#element"
|
||||
wrapper.classList.remove("hidden");
|
||||
/* gen()
|
||||
?.HideOnEmpty(true)
|
||||
?.AttachTo("messagesbox")
|
||||
?.Activate();*/
|
||||
|
||||
gen()
|
||||
gen
|
||||
?.HideOnEmpty(true)
|
||||
?.AttachTo("messagesboxmobile")
|
||||
?.Activate();
|
|
@ -23,10 +23,10 @@ export class ImageCarouselConstructor implements TagDependantUIElementConstructo
|
|||
return 0;
|
||||
}
|
||||
|
||||
construct(tags: UIEventSource<any>, changes: Changes): TagDependantUIElement {
|
||||
return new ImageCarousel(tags, changes);
|
||||
construct(dependencies: { tags: UIEventSource<any>, changes: Changes }): TagDependantUIElement {
|
||||
return new ImageCarousel(dependencies.tags, dependencies.changes);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
export class ImageCarousel extends TagDependantUIElement {
|
||||
|
|
|
@ -34,14 +34,14 @@ class ImageCarouselWithUpload extends TagDependantUIElement {
|
|||
const changes = dependencies.changes;
|
||||
this._imageElement = new ImageCarousel(tags, changes);
|
||||
const userDetails = changes.login.userDetails;
|
||||
const license = changes.login.GetPreference( "mapcomplete-pictures-license");
|
||||
const license = changes.login.GetPreference( "pictures-license");
|
||||
this._pictureUploader = new OsmImageUploadHandler(tags,
|
||||
userDetails, license,
|
||||
changes, this._imageElement.slideshow).getUI();
|
||||
|
||||
}
|
||||
|
||||
protected InnerRender(): string {
|
||||
InnerRender(): string {
|
||||
return this._imageElement.Render() +
|
||||
this._pictureUploader.Render();
|
||||
}
|
||||
|
|
|
@ -3,20 +3,21 @@ import {UIEventSource} from "./UIEventSource";
|
|||
import $ from "jquery"
|
||||
import {Imgur} from "../Logic/Imgur";
|
||||
import {UserDetails} from "../Logic/OsmConnection";
|
||||
import {DropDownUI} from "./Base/DropDownUI";
|
||||
import {DropDown} from "./Input/DropDown";
|
||||
import {VariableUiElement} from "./Base/VariableUIElement";
|
||||
import Translations from "./i18n/Translations";
|
||||
|
||||
export class ImageUploadFlow extends UIElement {
|
||||
private _licensePicker: UIElement;
|
||||
private _selectedLicence: UIEventSource<string>;
|
||||
private _licenseExplanation: UIElement;
|
||||
private _isUploading: UIEventSource<number> = new UIEventSource<number>(0)
|
||||
private _didFail: UIEventSource<boolean> = new UIEventSource<boolean>(false);
|
||||
private _uploadOptions: (license: string) => { title: string; description: string; handleURL: (url: string) => void; allDone: (() => void) };
|
||||
private _userdetails: UIEventSource<UserDetails>;
|
||||
|
||||
constructor(
|
||||
userInfo: UIEventSource<UserDetails>,
|
||||
preferedLicense : UIEventSource<string>,
|
||||
preferedLicense: UIEventSource<string>,
|
||||
uploadOptions: ((license: string) =>
|
||||
{
|
||||
title: string,
|
||||
|
@ -30,70 +31,63 @@ export class ImageUploadFlow extends UIElement {
|
|||
this.ListenTo(userInfo);
|
||||
this._uploadOptions = uploadOptions;
|
||||
this.ListenTo(this._isUploading);
|
||||
this.ListenTo(this._didFail);
|
||||
|
||||
const licensePicker = new DropDownUI("Jouw foto wordt gepubliceerd ",
|
||||
|
||||
const licensePicker = new DropDown(Translations.t.image.willBePublished,
|
||||
[
|
||||
{value: "CC0", shown: "in het publiek domein"},
|
||||
{value: "CC-BY-SA 4.0", shown: "onder een CC-BY-SA-licentie"},
|
||||
{value: "CC-BY 4.0", shown: "onder een CC-BY-licentie"}
|
||||
{value: "CC0", shown: Translations.t.image.cco},
|
||||
{value: "CC-BY-SA 4.0", shown: Translations.t.image.ccbs},
|
||||
{value: "CC-BY 4.0", shown: Translations.t.image.ccb}
|
||||
],
|
||||
preferedLicense
|
||||
);
|
||||
this._licensePicker = licensePicker;
|
||||
this._selectedLicence = licensePicker.selectedElement;
|
||||
this._selectedLicence = licensePicker.GetValue();
|
||||
|
||||
|
||||
const licenseExplanations = {
|
||||
"CC-BY-SA 4.0":
|
||||
"<b>Creative Commonse met naamsvermelding en gelijk delen</b><br/>" +
|
||||
"Je foto mag door iedereen gratis gebruikt worden, als ze je naam vermelden én ze afgeleide werken met deze licentie en attributie delen.",
|
||||
"CC-BY 4.0":
|
||||
"<b>Creative Commonse met naamsvermelding</b> <br/>" +
|
||||
"Je foto mag door iedereen gratis gebruikt worden, als ze je naam vermelden",
|
||||
"CC0":
|
||||
"<b>Geen copyright</b><br/> Je foto mag door iedereen voor alles gebruikt worden"
|
||||
}
|
||||
this._licenseExplanation = new VariableUiElement(
|
||||
this._selectedLicence.map((license) => {
|
||||
return licenseExplanations[license]
|
||||
})
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
protected InnerRender(): string {
|
||||
InnerRender(): string {
|
||||
|
||||
if (!this._userdetails.data.loggedIn) {
|
||||
return "<div class='activate-osm-authentication'>Gelieve je aan te melden om een foto toe te voegen of vragen te beantwoorden</div>";
|
||||
return `<div class='activate-osm-authentication'>${Translations.t.image.pleaseLogin.Render()}</div>`;
|
||||
}
|
||||
|
||||
let uploadingMessage = "";
|
||||
if (this._isUploading.data == 1) {
|
||||
return "<b>Bezig met een foto te uploaden...</b>"
|
||||
return `<b>${Translations.t.image.uploadingPicture.Render()}</b>`
|
||||
}
|
||||
if (this._isUploading.data > 0) {
|
||||
return "<b>Bezig met uploaden, nog " + this._isUploading.data + " foto's te gaan...</b>"
|
||||
uploadingMessage = "<b>Uploading multiple pictures, " + this._isUploading.data + " left...</b>"
|
||||
}
|
||||
|
||||
if(this._didFail.data){
|
||||
uploadingMessage += "<b>Some images failed to upload. Imgur migth be down or you might block third-party API's (e.g. by using Brave or UMatrix)</b><br/>"
|
||||
}
|
||||
|
||||
return "" +
|
||||
"<div class='imageflow'>" +
|
||||
|
||||
|
||||
"<label for='fileselector-" + this.id + "'>" +
|
||||
|
||||
|
||||
"<div class='imageflow-file-input-wrapper'>" +
|
||||
"<img src='./assets/camera-plus.svg' alt='upload image'/> " +
|
||||
"<span class='imageflow-add-picture'>Voeg foto toe</span>" +
|
||||
"<div class='break'></div>"+
|
||||
`<span class='imageflow-add-picture'>${Translations.t.image.addPicture.R()}</span>` +
|
||||
"<div class='break'></div>" +
|
||||
"</div>" +
|
||||
this._licensePicker.Render() +
|
||||
|
||||
|
||||
this._licensePicker.Render() + "<br/>" +
|
||||
uploadingMessage +
|
||||
|
||||
"</label>" +
|
||||
|
||||
|
||||
"<input id='fileselector-" + this.id + "' " +
|
||||
"type='file' " +
|
||||
"class='imageflow-file-input' " +
|
||||
"accept='image/*' name='picField' size='24' multiple='multiple' alt=''" +
|
||||
"/>" +
|
||||
|
||||
|
||||
"</div>"
|
||||
;
|
||||
}
|
||||
|
@ -128,11 +122,12 @@ export class ImageUploadFlow extends UIElement {
|
|||
function () {
|
||||
console.log("All uploads completed")
|
||||
opts.allDone();
|
||||
},
|
||||
function(failReason) {
|
||||
|
||||
}
|
||||
)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
100
UI/Input/DropDown.ts
Normal file
|
@ -0,0 +1,100 @@
|
|||
import {UIEventSource} from "../UIEventSource";
|
||||
import {UIElement} from "../UIElement";
|
||||
import {InputElement} from "./InputElement";
|
||||
import instantiate = WebAssembly.instantiate;
|
||||
import {FixedUiElement} from "../Base/FixedUiElement";
|
||||
import Translations from "../i18n/Translations";
|
||||
|
||||
export class DropDown<T> extends InputElement<T> {
|
||||
|
||||
private readonly _label: UIElement;
|
||||
private readonly _values: { value: T; shown: UIElement }[];
|
||||
|
||||
private readonly _value;
|
||||
|
||||
constructor(label: string | UIElement,
|
||||
values: { value: T, shown: string | UIElement }[],
|
||||
value: UIEventSource<T> = undefined) {
|
||||
super(undefined);
|
||||
this._value = value ?? new UIEventSource<T>(undefined);
|
||||
this._label = Translations.W(label);
|
||||
this._values = values.map(v => {
|
||||
return {
|
||||
value: v.value,
|
||||
shown: Translations.W(v.shown)
|
||||
}
|
||||
}
|
||||
);
|
||||
for (const v of this._values) {
|
||||
this.ListenTo(v.shown._source);
|
||||
}
|
||||
this.ListenTo(this._value)
|
||||
|
||||
}
|
||||
|
||||
GetValue(): UIEventSource<T> {
|
||||
return this._value;
|
||||
}
|
||||
|
||||
ShowValue(t: T): boolean {
|
||||
if (!this.IsValid(t)) {
|
||||
return false;
|
||||
}
|
||||
this._value.setData(t);
|
||||
}
|
||||
|
||||
IsValid(t: T): boolean {
|
||||
for (const value of this._values) {
|
||||
if (value.value === t) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
|
||||
InnerRender(): string {
|
||||
if(this._values.length <=1){
|
||||
return "";
|
||||
}
|
||||
|
||||
let options = "";
|
||||
for (let i = 0; i < this._values.length; i++) {
|
||||
options += "<option value='" + i + "'>" + this._values[i].shown.InnerRender() + "</option>"
|
||||
|
||||
}
|
||||
return "<form>" +
|
||||
"<label for='dropdown-" + this.id + "'>" + this._label.Render() + "</label>" +
|
||||
"<select name='dropdown-" + this.id + "' id='dropdown-" + this.id + "'>" +
|
||||
options +
|
||||
"</select>" +
|
||||
"</form>";
|
||||
}
|
||||
|
||||
protected InnerUpdate(element) {
|
||||
|
||||
|
||||
var e = document.getElementById("dropdown-" + this.id);
|
||||
if(e === null){
|
||||
return;
|
||||
}
|
||||
const self = this;
|
||||
e.onchange = (() => {
|
||||
// @ts-ignore
|
||||
var index = parseInt(e.selectedIndex);
|
||||
self._value.setData(self._values[index].value);
|
||||
|
||||
});
|
||||
|
||||
var t = this._value.data;
|
||||
for (let i = 0; i < this._values.length ; i++) {
|
||||
const value = this._values[i];
|
||||
if (value.value == t) {
|
||||
// @ts-ignore
|
||||
e.selectedIndex = i;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
35
UI/Input/FixedInputElement.ts
Normal file
|
@ -0,0 +1,35 @@
|
|||
import {InputElement} from "./InputElement";
|
||||
import {UIEventSource} from "../UIEventSource";
|
||||
import {UIElement} from "../UIElement";
|
||||
import {FixedUiElement} from "../Base/FixedUiElement";
|
||||
|
||||
|
||||
export class FixedInputElement<T> extends InputElement<T> {
|
||||
private rendering: UIElement;
|
||||
private value: UIEventSource<T>;
|
||||
|
||||
constructor(rendering: UIElement | string, value: T) {
|
||||
super(undefined);
|
||||
this.value = new UIEventSource<T>(value);
|
||||
this.rendering = typeof (rendering) === 'string' ? new FixedUiElement(rendering) : rendering;
|
||||
}
|
||||
|
||||
GetValue(): UIEventSource<T> {
|
||||
return this.value;
|
||||
}
|
||||
|
||||
ShowValue(t: T): boolean {
|
||||
return false;
|
||||
}
|
||||
|
||||
InnerRender(): string {
|
||||
return this.rendering.Render();
|
||||
}
|
||||
|
||||
IsValid(t: T): boolean {
|
||||
return t == this.value.data;
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
11
UI/Input/InputElement.ts
Normal file
|
@ -0,0 +1,11 @@
|
|||
import {UIElement} from "../UIElement";
|
||||
import {UIEventSource} from "../UIEventSource";
|
||||
import {FixedUiElement} from "../Base/FixedUiElement";
|
||||
|
||||
export abstract class InputElement<T> extends UIElement{
|
||||
|
||||
abstract GetValue() : UIEventSource<T>;
|
||||
|
||||
abstract IsValid(t: T) : boolean;
|
||||
|
||||
}
|
41
UI/Input/InputElementWrapper.ts
Normal file
|
@ -0,0 +1,41 @@
|
|||
import {InputElement} from "./InputElement";
|
||||
import {UIEventSource} from "../UIEventSource";
|
||||
import {UIElement} from "../UIElement";
|
||||
import {FixedUiElement} from "../Base/FixedUiElement";
|
||||
|
||||
|
||||
export class InputElementWrapper<T> extends InputElement<T>{
|
||||
private pre: UIElement ;
|
||||
private input: InputElement<T>;
|
||||
private post: UIElement ;
|
||||
|
||||
constructor(
|
||||
pre: UIElement | string,
|
||||
input: InputElement<T>,
|
||||
post: UIElement | string
|
||||
|
||||
) {
|
||||
super(undefined);
|
||||
this.pre = typeof(pre) === 'string' ? new FixedUiElement(pre) : pre
|
||||
this.input = input;
|
||||
this.post =typeof(post) === 'string' ? new FixedUiElement(post) : post
|
||||
}
|
||||
|
||||
|
||||
GetValue(): UIEventSource<T> {
|
||||
return this.input.GetValue();
|
||||
}
|
||||
|
||||
ShowValue(t: T) {
|
||||
return this.input.ShowValue(t);
|
||||
}
|
||||
|
||||
InnerRender(): string {
|
||||
return this.pre.Render() + this.input.Render() + this.post.Render();
|
||||
}
|
||||
|
||||
IsValid(t: T): boolean {
|
||||
return this.input.IsValid(t);
|
||||
}
|
||||
|
||||
}
|
146
UI/Input/RadioButton.ts
Normal file
|
@ -0,0 +1,146 @@
|
|||
import {UIElement} from "../UIElement";
|
||||
import {UIEventSource} from "../UIEventSource";
|
||||
import {InputElement} from "./InputElement";
|
||||
|
||||
export class RadioButton<T> extends InputElement<T> {
|
||||
|
||||
private readonly _selectedElementIndex: UIEventSource<number>
|
||||
= new UIEventSource<number>(null);
|
||||
|
||||
private value: UIEventSource<T>;
|
||||
private readonly _elements: InputElement<T>[]
|
||||
private _selectFirstAsDefault: boolean;
|
||||
|
||||
|
||||
constructor(elements: InputElement<T>[],
|
||||
selectFirstAsDefault = true) {
|
||||
super(undefined);
|
||||
this._elements = elements;
|
||||
this._selectFirstAsDefault = selectFirstAsDefault;
|
||||
const self = this;
|
||||
|
||||
|
||||
this.value =
|
||||
UIEventSource.flatten(this._selectedElementIndex.map(
|
||||
(selectedIndex) => {
|
||||
if (selectedIndex !== undefined && selectedIndex !== null) {
|
||||
return elements[selectedIndex].GetValue()
|
||||
}
|
||||
}
|
||||
), elements.map(e => e.GetValue()));
|
||||
|
||||
this.value.addCallback((t) => {
|
||||
self.ShowValue(t);
|
||||
})
|
||||
|
||||
|
||||
for (let i = 0; i < elements.length; i++) {
|
||||
// If an element is clicked, the radio button corresponding with it should be selected as well
|
||||
elements[i].onClick(() => {
|
||||
self._selectedElementIndex.setData(i);
|
||||
});
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
IsValid(t: T): boolean {
|
||||
for (const inputElement of this._elements) {
|
||||
if (inputElement.IsValid(t)) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
GetValue(): UIEventSource<T> {
|
||||
return this.value;
|
||||
}
|
||||
|
||||
|
||||
private IdFor(i) {
|
||||
return 'radio-' + this.id + '-' + i;
|
||||
}
|
||||
|
||||
InnerRender(): string {
|
||||
|
||||
let body = "";
|
||||
let i = 0;
|
||||
for (const el of this._elements) {
|
||||
const htmlElement =
|
||||
'<input type="radio" id="' + this.IdFor(i) + '" name="radiogroup-' + this.id + '">' +
|
||||
'<label for="' + this.IdFor(i) + '">' + el.Render() + '</label>' +
|
||||
'<br>';
|
||||
body += htmlElement;
|
||||
|
||||
i++;
|
||||
}
|
||||
|
||||
return "<form id='" + this.id + "-form'>" + body + "</form>";
|
||||
}
|
||||
|
||||
public ShowValue(t: T): boolean {
|
||||
if (t === undefined) {
|
||||
return false;
|
||||
}
|
||||
if (!this.IsValid(t)) {
|
||||
return false;
|
||||
}
|
||||
// We check that what is selected matches the previous rendering
|
||||
for (let i = 0; i < this._elements.length; i++) {
|
||||
const e = this._elements[i];
|
||||
if (e.IsValid(t)) {
|
||||
this._selectedElementIndex.setData(i);
|
||||
e.GetValue().setData(t);
|
||||
const radio = document.getElementById(this.IdFor(i));
|
||||
// @ts-ignore
|
||||
radio?.checked = true;
|
||||
return;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
InnerUpdate(htmlElement: HTMLElement) {
|
||||
const self = this;
|
||||
|
||||
function checkButtons() {
|
||||
for (let i = 0; i < self._elements.length; i++) {
|
||||
const el = document.getElementById(self.IdFor(i));
|
||||
// @ts-ignore
|
||||
if (el.checked) {
|
||||
self._selectedElementIndex.setData(i);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
const el = document.getElementById(this.id);
|
||||
el.addEventListener("change",
|
||||
function () {
|
||||
checkButtons();
|
||||
}
|
||||
);
|
||||
if (this._selectedElementIndex.data !== null) {
|
||||
const el = document.getElementById(this.IdFor(this._selectedElementIndex.data));
|
||||
if (el) {
|
||||
// @ts-ignore
|
||||
el.checked = true;
|
||||
checkButtons();
|
||||
}
|
||||
} else if (this._selectFirstAsDefault) {
|
||||
this.ShowValue(this.value.data);
|
||||
if (this._selectedElementIndex.data === null || this._selectedElementIndex.data === undefined) {
|
||||
const el = document.getElementById(this.IdFor(0));
|
||||
if (el) {
|
||||
// @ts-ignore
|
||||
el.checked = true;
|
||||
checkButtons();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
};
|
||||
|
||||
|
||||
}
|
119
UI/Input/TextField.ts
Normal file
|
@ -0,0 +1,119 @@
|
|||
import {UIElement} from "../UIElement";
|
||||
import {UIEventSource} from "../UIEventSource";
|
||||
import {InputElement} from "./InputElement";
|
||||
import {FixedUiElement} from "../Base/FixedUiElement";
|
||||
import Translations from "../i18n/Translations";
|
||||
|
||||
|
||||
export class TextField<T> extends InputElement<T> {
|
||||
|
||||
private value: UIEventSource<string>;
|
||||
private mappedValue: UIEventSource<T>;
|
||||
/**
|
||||
* Pings and has the value data
|
||||
*/
|
||||
public enterPressed = new UIEventSource<string>(undefined);
|
||||
private _placeholder: UIElement;
|
||||
private _fromString?: (string: string) => T;
|
||||
private _toString: (t: T) => string;
|
||||
|
||||
constructor(options: {
|
||||
placeholder?: string | UIElement,
|
||||
toString: (t: T) => string,
|
||||
fromString: (string: string) => T,
|
||||
value?: UIEventSource<T>
|
||||
}) {
|
||||
super(undefined);
|
||||
const self = this;
|
||||
this.value = new UIEventSource<string>("");
|
||||
|
||||
this.mappedValue = options?.value ?? new UIEventSource<T>(undefined);
|
||||
this.mappedValue.addCallback(() => self.InnerUpdate());
|
||||
|
||||
// @ts-ignore
|
||||
this._fromString = options.fromString ?? ((str) => (str))
|
||||
this.value.addCallback((str) => this.mappedValue.setData(options.fromString(str)));
|
||||
this.mappedValue.addCallback((t) => this.value.setData(options.toString(t)));
|
||||
|
||||
|
||||
this._placeholder = Translations.W(options.placeholder ?? "");
|
||||
this.ListenTo(this._placeholder._source);
|
||||
this._toString = options.toString ?? ((t) => ("" + t));
|
||||
|
||||
|
||||
this.mappedValue.addCallback((t) => {
|
||||
if (t === undefined || t === null) {
|
||||
return;
|
||||
}
|
||||
const field = document.getElementById('text-' + this.id);
|
||||
if (field === undefined || field === null) {
|
||||
return;
|
||||
}
|
||||
// @ts-ignore
|
||||
field.value = options.toString(t);
|
||||
})
|
||||
}
|
||||
|
||||
GetValue(): UIEventSource<T> {
|
||||
return this.mappedValue;
|
||||
}
|
||||
|
||||
ShowValue(t: T): boolean {
|
||||
if (!this.IsValid(t)) {
|
||||
return false;
|
||||
}
|
||||
this.mappedValue.setData(t);
|
||||
}
|
||||
|
||||
InnerRender(): string {
|
||||
return "<form onSubmit='return false' class='form-text-field'>" +
|
||||
"<input type='text' placeholder='" + this._placeholder.InnerRender() + "' id='text-" + this.id + "'>" +
|
||||
"</form>";
|
||||
}
|
||||
|
||||
InnerUpdate() {
|
||||
const field = document.getElementById('text-' + this.id);
|
||||
if (field === null) {
|
||||
return;
|
||||
}
|
||||
const self = this;
|
||||
field.oninput = () => {
|
||||
// @ts-ignore
|
||||
self.value.setData(field.value);
|
||||
};
|
||||
|
||||
field.addEventListener("keyup", function (event) {
|
||||
if (event.key === "Enter") {
|
||||
// @ts-ignore
|
||||
self.enterPressed.setData(field.value);
|
||||
}
|
||||
});
|
||||
|
||||
if (this.IsValid(this.mappedValue.data)) {
|
||||
const expected = this._toString(this.mappedValue.data);
|
||||
// @ts-ignore
|
||||
if (field.value !== expected) {
|
||||
// @ts-ignore
|
||||
field.value = expected;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
IsValid(t: T): boolean {
|
||||
if(t === undefined || t === null){
|
||||
return false;
|
||||
}
|
||||
const result = this._toString(t);
|
||||
return result !== undefined && result !== null;
|
||||
}
|
||||
|
||||
Clear() {
|
||||
const field = document.getElementById('text-' + this.id);
|
||||
if (field !== undefined) {
|
||||
// @ts-ignore
|
||||
field.value = "";
|
||||
}
|
||||
}
|
||||
}
|
|
@ -21,7 +21,7 @@ export class PendingChanges extends UIElement {
|
|||
})
|
||||
}
|
||||
|
||||
protected InnerRender(): string {
|
||||
InnerRender(): string {
|
||||
if (this._isSaving.data) {
|
||||
return "<span class='alert'>Saving</span>";
|
||||
}
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
import {UIEventSource} from "./UIEventSource";
|
||||
import {UIElement} from "./UIElement";
|
||||
import Translations from "./i18n/Translations";
|
||||
|
||||
export class SaveButton extends UIElement {
|
||||
private _value: UIEventSource<any>;
|
||||
|
@ -12,14 +13,14 @@ export class SaveButton extends UIElement {
|
|||
this._value = value;
|
||||
}
|
||||
|
||||
protected InnerRender(): string {
|
||||
InnerRender(): string {
|
||||
if (this._value.data === undefined ||
|
||||
this._value.data === null
|
||||
|| this._value.data === ""
|
||||
) {
|
||||
return "<span class='save-non-active'>Opslaan</span>"
|
||||
return "<span class='save-non-active'>"+Translations.t.general.save.Render()+"</span>"
|
||||
}
|
||||
return "<span class='save'>Opslaan</span>";
|
||||
return "<span class='save'>"+Translations.t.general.save.Render()+"</span>";
|
||||
}
|
||||
|
||||
}
|
|
@ -1,15 +1,26 @@
|
|||
import {UIElement} from "./UIElement";
|
||||
import {TextField} from "./Base/TextField";
|
||||
import {TextField} from "./Input/TextField";
|
||||
import {UIEventSource} from "./UIEventSource";
|
||||
import {FixedUiElement} from "./Base/FixedUiElement";
|
||||
import {Geocoding} from "../Logic/Geocoding";
|
||||
import {Basemap} from "../Logic/Basemap";
|
||||
import {VariableUiElement} from "./Base/VariableUIElement";
|
||||
import Translation from "./i18n/Translation";
|
||||
import Locale from "./i18n/Locale";
|
||||
import Translations from "./i18n/Translations";
|
||||
|
||||
|
||||
export class SearchAndGo extends UIElement {
|
||||
|
||||
private _placeholder = new UIEventSource("Zoek naar een locatie...")
|
||||
private _searchField = new TextField(this._placeholder);
|
||||
private _placeholder = new UIEventSource<Translation>(Translations.t.general.search.search)
|
||||
private _searchField = new TextField<string>({
|
||||
placeholder: new VariableUiElement(
|
||||
this._placeholder.map(uiElement => uiElement.InnerRender(), [Locale.language])
|
||||
),
|
||||
fromString: str => str,
|
||||
toString: str => str
|
||||
}
|
||||
);
|
||||
|
||||
private _foundEntries = new UIEventSource([]);
|
||||
private _map: Basemap;
|
||||
|
@ -33,14 +44,14 @@ export class SearchAndGo extends UIElement {
|
|||
|
||||
// Triggered by 'enter' or onclick
|
||||
private RunSearch() {
|
||||
const searchString = this._searchField.value.data;
|
||||
const searchString = this._searchField.GetValue().data;
|
||||
this._searchField.Clear();
|
||||
this._placeholder.setData("Bezig met zoeken...");
|
||||
this._placeholder.setData(Translations.t.general.search.searching);
|
||||
const self = this;
|
||||
Geocoding.Search(searchString, this._map, (result) => {
|
||||
|
||||
if (result.length == 0) {
|
||||
this._placeholder.setData("Niets gevonden");
|
||||
this._placeholder.setData(Translations.t.general.search.nothing);
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -50,16 +61,15 @@ export class SearchAndGo extends UIElement {
|
|||
[bb[1], bb[3]]
|
||||
]
|
||||
self._map.map.fitBounds(bounds);
|
||||
this._placeholder.setData("Zoek naar een locatie...");
|
||||
this._placeholder.setData(Translations.t.general.search.search);
|
||||
},
|
||||
() => {
|
||||
this._placeholder.setData("Niets gevonden: er ging iets mis");
|
||||
this._placeholder.setData(Translations.t.general.search.error);
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
protected InnerRender(): string {
|
||||
// "<img class='search' src='./assets/search.svg' alt='Search'> " +
|
||||
InnerRender(): string {
|
||||
return this._searchField.Render() +
|
||||
this._goButton.Render();
|
||||
|
||||
|
|
|
@ -15,17 +15,17 @@ export class SimpleAddUI extends UIElement {
|
|||
private _addButtons: UIElement[];
|
||||
private _lastClickLocation: UIEventSource<{ lat: number; lon: number }>;
|
||||
private _changes: Changes;
|
||||
private _selectedElement: UIEventSource<any>;
|
||||
private _selectedElement: UIEventSource<{feature: any}>;
|
||||
private _dataIsLoading: UIEventSource<boolean>;
|
||||
private _userDetails: UIEventSource<UserDetails>;
|
||||
|
||||
constructor(zoomlevel: UIEventSource<{ zoom: number }>,
|
||||
lastClickLocation: UIEventSource<{ lat: number, lon: number }>,
|
||||
changes: Changes,
|
||||
selectedElement: UIEventSource<any>,
|
||||
selectedElement: UIEventSource<{feature: any}>,
|
||||
dataIsLoading: UIEventSource<boolean>,
|
||||
userDetails: UIEventSource<UserDetails>,
|
||||
addButtons: { name: string; icon: string; tags: Tag[]; layerToAddTo: FilteredLayer }[],
|
||||
addButtons: { name: UIElement; icon: string; tags: Tag[]; layerToAddTo: FilteredLayer }[],
|
||||
) {
|
||||
super(zoomlevel);
|
||||
this._zoomlevel = zoomlevel;
|
||||
|
@ -42,37 +42,36 @@ export class SimpleAddUI extends UIElement {
|
|||
// <button type='button'> looks SO retarded
|
||||
// the default type of button is 'submit', which performs a POST and page reload
|
||||
const button =
|
||||
new Button(new FixedUiElement("Voeg hier een " + option.name + " toe"),
|
||||
new Button(new FixedUiElement("Add a " + option.name.Render() + " here"),
|
||||
this.CreatePoint(option));
|
||||
this._addButtons.push(button);
|
||||
}
|
||||
}
|
||||
|
||||
private CreatePoint(option: { name: string; icon: string; tags: Tag[]; layerToAddTo: FilteredLayer }) {
|
||||
private CreatePoint(option: {icon: string; tags: Tag[]; layerToAddTo: FilteredLayer }) {
|
||||
const self = this;
|
||||
return () => {
|
||||
|
||||
console.log("Creating a new ", option.name, " at last click location");
|
||||
const loc = self._lastClickLocation.data;
|
||||
let feature = self._changes.createElement(option.tags, loc.lat, loc.lon);
|
||||
option.layerToAddTo.AddNewElement(feature);
|
||||
self._selectedElement.setData(feature.properties);
|
||||
self._selectedElement.setData({feature: feature});
|
||||
}
|
||||
}
|
||||
|
||||
protected InnerRender(): string {
|
||||
const header = "<h2>Geen selectie</h2>" +
|
||||
"Je klikte ergens waar er nog geen gezochte data is.<br/>";
|
||||
InnerRender(): string {
|
||||
const header = "<h2>No data here</h2>" +
|
||||
"You clicked somewhere where no data is known yet.<br/>";
|
||||
if (!this._userDetails.data.loggedIn) {
|
||||
return header + "<a class='activate-osm-authentication'>Gelieve je aan te melden om een nieuw punt toe te voegen</a>"
|
||||
return header + "<a class='activate-osm-authentication'>Please log in to add a new point</a>"
|
||||
}
|
||||
|
||||
if (this._zoomlevel.data.zoom < 19) {
|
||||
return header + "Zoom verder in om een element toe te voegen.";
|
||||
return header + "Zoom in further to add a point.";
|
||||
}
|
||||
|
||||
if (this._dataIsLoading.data) {
|
||||
return header + "De data is nog aan het laden. Nog even geduld, dan kan je een punt toevoegen";
|
||||
return header + "The data is still loading. Please wait a bit before you add a new point";
|
||||
}
|
||||
|
||||
var html = "";
|
||||
|
@ -83,10 +82,6 @@ export class SimpleAddUI extends UIElement {
|
|||
}
|
||||
|
||||
InnerUpdate(htmlElement: HTMLElement) {
|
||||
super.InnerUpdate(htmlElement);
|
||||
for (const button of this._addButtons) {
|
||||
button.Update();
|
||||
}
|
||||
this._userDetails.data.osmConnection.registerActivateOsmAUthenticationClass();
|
||||
}
|
||||
|
||||
|
|
|
@ -1,8 +1,7 @@
|
|||
import {UIEventSource} from "./UIEventSource";
|
||||
import instantiate = WebAssembly.instantiate;
|
||||
|
||||
export abstract class UIElement {
|
||||
|
||||
|
||||
private static nextId: number = 0;
|
||||
|
||||
public readonly id: string;
|
||||
|
@ -20,12 +19,13 @@ export abstract class UIElement {
|
|||
|
||||
public ListenTo(source: UIEventSource<any>) {
|
||||
if (source === undefined) {
|
||||
return;
|
||||
return this;
|
||||
}
|
||||
const self = this;
|
||||
source.addCallback(() => {
|
||||
self.Update();
|
||||
})
|
||||
return this;
|
||||
}
|
||||
|
||||
private _onClick: () => void;
|
||||
|
@ -35,14 +35,13 @@ export abstract class UIElement {
|
|||
this.Update();
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
Update(): void {
|
||||
let element = document.getElementById(this.id);
|
||||
if (element === null || element === undefined) {
|
||||
if (element === undefined || element === null) {
|
||||
// The element is not painted
|
||||
return;
|
||||
}
|
||||
|
||||
element.innerHTML = this.InnerRender();
|
||||
if (this._hideIfEmpty) {
|
||||
if (element.innerHTML === "") {
|
||||
|
@ -84,7 +83,8 @@ export abstract class UIElement {
|
|||
}
|
||||
|
||||
// Called after the HTML has been replaced. Can be used for css tricks
|
||||
InnerUpdate(htmlElement : HTMLElement){}
|
||||
protected InnerUpdate(htmlElement: HTMLElement) {
|
||||
}
|
||||
|
||||
Render(): string {
|
||||
return "<span class='uielement' id='" + this.id + "'>" + this.InnerRender() + "</span>"
|
||||
|
@ -93,15 +93,14 @@ export abstract class UIElement {
|
|||
AttachTo(divId: string) {
|
||||
let element = document.getElementById(divId);
|
||||
if (element === null) {
|
||||
console.log("SEVERE: could not attach UIElement to ", divId);
|
||||
return;
|
||||
throw "SEVERE: could not attach UIElement to " + divId;
|
||||
}
|
||||
element.innerHTML = this.Render();
|
||||
this.Update();
|
||||
return this;
|
||||
}
|
||||
|
||||
protected abstract InnerRender(): string;
|
||||
public abstract InnerRender(): string;
|
||||
|
||||
public Activate(): void {
|
||||
for (const i in this) {
|
||||
|
@ -121,5 +120,6 @@ export abstract class UIElement {
|
|||
public IsEmpty(): boolean {
|
||||
return this.InnerRender() === "";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
|
@ -1,6 +1,6 @@
|
|||
export class UIEventSource<T>{
|
||||
|
||||
public data : T;
|
||||
public data: T;
|
||||
private _callbacks = [];
|
||||
|
||||
constructor(data: T) {
|
||||
|
@ -27,15 +27,32 @@ export class UIEventSource<T>{
|
|||
}
|
||||
}
|
||||
|
||||
public map<J>(f: ((T) => J),
|
||||
extraSources : UIEventSource<any>[] = []): UIEventSource<J> {
|
||||
const self = this;
|
||||
public static flatten<X>(source: UIEventSource<UIEventSource<X>>, possibleSources: UIEventSource<any>[]): UIEventSource<X> {
|
||||
const sink = new UIEventSource<X>(source.data?.data);
|
||||
|
||||
source.addCallback((latestData) => {
|
||||
sink.setData(latestData?.data);
|
||||
});
|
||||
|
||||
for (const possibleSource of possibleSources) {
|
||||
possibleSource.addCallback(() => {
|
||||
sink.setData(source.data?.data);
|
||||
|
||||
})
|
||||
}
|
||||
|
||||
return sink;
|
||||
}
|
||||
|
||||
public map<J>(f: ((T) => J),
|
||||
extraSources: UIEventSource<any>[] = []): UIEventSource<J> {
|
||||
const self = this;
|
||||
|
||||
const update = function () {
|
||||
newSource.setData(f(self.data));
|
||||
newSource.ping();
|
||||
}
|
||||
|
||||
|
||||
this.addCallback(update);
|
||||
for (const extraSource of extraSources) {
|
||||
extraSource.addCallback(update);
|
||||
|
@ -49,5 +66,16 @@ export class UIEventSource<T>{
|
|||
|
||||
}
|
||||
|
||||
|
||||
public syncWith(otherSource: UIEventSource<T>){
|
||||
this.addCallback((latest) => otherSource.setData(latest));
|
||||
const self = this;
|
||||
otherSource.addCallback((latest) => self.setData(latest));
|
||||
if(this.data === undefined){
|
||||
this.setData(otherSource.data);
|
||||
}else{
|
||||
otherSource.setData(this.data);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
|
@ -5,6 +5,7 @@ import {Basemap} from "../Logic/Basemap";
|
|||
import L from "leaflet";
|
||||
import {FixedUiElement} from "./Base/FixedUiElement";
|
||||
import {VariableUiElement} from "./Base/VariableUIElement";
|
||||
import Translations from "./i18n/Translations";
|
||||
|
||||
/**
|
||||
* Handles and updates the user badge
|
||||
|
@ -15,12 +16,15 @@ export class UserBadge extends UIElement {
|
|||
private _logout: UIElement;
|
||||
private _basemap: Basemap;
|
||||
private _homeButton: UIElement;
|
||||
private _languagePicker: UIElement;
|
||||
|
||||
|
||||
constructor(userDetails: UIEventSource<UserDetails>,
|
||||
pendingChanges: UIElement,
|
||||
languagePicker: UIElement,
|
||||
basemap: Basemap) {
|
||||
super(userDetails);
|
||||
this._languagePicker = languagePicker;
|
||||
this._userDetails = userDetails;
|
||||
this._pendingChanges = pendingChanges;
|
||||
this._basemap = basemap;
|
||||
|
@ -57,10 +61,10 @@ export class UserBadge extends UIElement {
|
|||
|
||||
}
|
||||
|
||||
protected InnerRender(): string {
|
||||
InnerRender(): string {
|
||||
const user = this._userDetails.data;
|
||||
if (!user.loggedIn) {
|
||||
return "<div class='activate-osm-authentication'>Klik hier om aan te melden bij OSM</div>";
|
||||
return "<div class='activate-osm-authentication'>" + Translations.t.general.loginWithOpenStreetMap.R()+ "</div>";
|
||||
}
|
||||
|
||||
|
||||
|
@ -113,6 +117,7 @@ export class UserBadge extends UIElement {
|
|||
" <a href='https://www.openstreetmap.org/user/" + user.name + "/history' target='_blank'><img class='small-userbadge-icon' src='./assets/star.svg' alt='star'/> " + user.csCount +
|
||||
"</a></span> " +
|
||||
this._logout.Render() +
|
||||
this._languagePicker.Render() +
|
||||
this._pendingChanges.Render() +
|
||||
"</p>" +
|
||||
|
||||
|
|
24
UI/i18n/Locale.ts
Normal file
|
@ -0,0 +1,24 @@
|
|||
import {UIEventSource} from "../UIEventSource";
|
||||
import {OsmConnection} from "../../Logic/OsmConnection";
|
||||
|
||||
|
||||
export default class Locale {
|
||||
public static language: UIEventSource<string> = Locale.getInitialLanguage();
|
||||
|
||||
private static getInitialLanguage() {
|
||||
// The key to save in local storage
|
||||
const LANGUAGE_KEY = 'language'
|
||||
|
||||
const lng = new UIEventSource("en");
|
||||
const saved = localStorage.getItem(LANGUAGE_KEY);
|
||||
lng.setData(saved);
|
||||
|
||||
|
||||
lng.addCallback(data => {
|
||||
console.log("Selected language", data);
|
||||
localStorage.setItem(LANGUAGE_KEY, data)
|
||||
});
|
||||
|
||||
return lng;
|
||||
}
|
||||
}
|
43
UI/i18n/Translation.ts
Normal file
|
@ -0,0 +1,43 @@
|
|||
import { UIElement } from "../UIElement"
|
||||
import Locale from "./Locale"
|
||||
import {FixedUiElement} from "../Base/FixedUiElement";
|
||||
|
||||
|
||||
export default class Translation extends UIElement {
|
||||
get txt(): string {
|
||||
const txt = this.translations[Locale.language.data];
|
||||
if (txt !== undefined) {
|
||||
return txt;
|
||||
}
|
||||
const en = this.translations["en"];
|
||||
console.warn("No translation for language ", Locale.language.data, "for", en);
|
||||
if (en !== undefined) {
|
||||
return en;
|
||||
}
|
||||
for (const i in this.translations) {
|
||||
return this.translations[i]; // Return a random language
|
||||
}
|
||||
return "Missing translation"
|
||||
}
|
||||
|
||||
InnerRender(): string {
|
||||
return this.txt
|
||||
}
|
||||
|
||||
public readonly translations: object
|
||||
|
||||
constructor(translations: object) {
|
||||
super(Locale.language)
|
||||
this.translations = translations
|
||||
}
|
||||
|
||||
|
||||
public R(): string {
|
||||
return new Translation(this.translations).Render();
|
||||
}
|
||||
|
||||
public Clone(){
|
||||
return new Translation(this.translations)
|
||||
}
|
||||
|
||||
}
|
394
UI/i18n/Translations.ts
Normal file
|
@ -0,0 +1,394 @@
|
|||
import Translation from "./Translation";
|
||||
import T from "./Translation";
|
||||
import {UIElement} from "../UIElement";
|
||||
import {FixedUiElement} from "../Base/FixedUiElement";
|
||||
|
||||
|
||||
export default class Translations {
|
||||
|
||||
constructor() {
|
||||
throw "Translations is static. If you want to intitialize a new translation, use the singular form"
|
||||
}
|
||||
|
||||
|
||||
static t = {
|
||||
cyclofix: {
|
||||
title: new T({
|
||||
en: 'Cyclofix bicycle infrastructure',
|
||||
nl: 'Cyclofix fietsinfrastructuur',
|
||||
fr: 'TODO: FRENCH TRANSLATION'
|
||||
}),
|
||||
description: new T({
|
||||
en: "On this map we want to collect data about the whereabouts of bicycle pumps and public racks in Brussels." +
|
||||
"As a result, cyclists will be able to quickly find the nearest infrastructure for their needs.",
|
||||
nl: "Op deze kaart willen we gegevens verzamelen over de locatie van fietspompen en openbare stelplaatsen in Brussel." +
|
||||
"Hierdoor kunnen fietsers snel de dichtstbijzijnde infrastructuur vinden die voldoet aan hun behoeften.",
|
||||
fr: "Sur cette carte, nous voulons collecter des données sur la localisation des pompes à vélo et des supports publics à Bruxelles." +
|
||||
"Les cyclistes pourront ainsi trouver rapidement l'infrastructure la plus proche de leurs besoins."
|
||||
}),
|
||||
freeFormPlaceholder: new T({en: 'specify', nl: 'specifieer', fr: 'TODO: fr'}),
|
||||
parking: {
|
||||
name: new T({en: 'bike parking', nl: 'fietsparking', fr: 'TODO: fr'}),
|
||||
title: new T({en: 'Bike parking', nl: 'Fietsparking', fr: 'TODO: fr'}),
|
||||
type: {
|
||||
render: new T({
|
||||
en: 'This is a bicycle parking of the type: {bicycle_parking}',
|
||||
nl: 'Dit is een fietsenparking van het type: {bicycle_parking}',
|
||||
fr: 'TODO: fr'
|
||||
}),
|
||||
template: new T({en: 'Some other type: $$$', nl: 'Een ander type: $$$', fr: 'TODO: fr'}),
|
||||
question: new T({
|
||||
en: 'What is the type of this bicycle parking?',
|
||||
nl: 'Van welk type is deze fietsenparking?',
|
||||
fr: 'TODO: fr'
|
||||
}),
|
||||
eg: new T({en: ", for example", nl: ", bijvoorbeeld"}),
|
||||
stands: new T({en: 'Staple racks', nl: 'Nietjes', fr: 'TODO: fr'}),
|
||||
wall_loops: new T({en: 'Wheel rack/loops', nl: 'Wielrek/lussen', fr: 'TODO: fr'}),
|
||||
handlebar_holder: new T({en: 'Handlebar holder', nl: 'Stuurhouder', fr: 'TODO: fr'}),
|
||||
shed: new T({en: 'Shed', nl: 'Schuur', fr: 'TODO: fr'}),
|
||||
rack: new T({en: 'Rack', nl: 'Rek', fr: 'TODO: fr'}),
|
||||
"two-tier": new T({en: 'Two-tiered', nl: 'Dubbel (twee verdiepingen)', fr: 'TODO: fr'}),
|
||||
},
|
||||
|
||||
operator: {
|
||||
render: new T({
|
||||
en: 'This bike parking is operated by {operator}',
|
||||
nl: 'Deze fietsenparking wordt beheerd door {operator}',
|
||||
fr: 'TODO: fr'
|
||||
}),
|
||||
template: new T({en: 'A different operator: $$$', nl: 'Een andere beheerder: $$$', fr: 'TODO: fr'}),
|
||||
question: new T({
|
||||
en: 'Who operates this bike station (name of university, shop, city...)?',
|
||||
nl: 'Wie beheert deze fietsenparking (naam universiteit, winkel, stad...)?',
|
||||
fr: 'TODO: fr'
|
||||
}),
|
||||
private: new T({
|
||||
en: 'Operated by a private person',
|
||||
nl: 'Wordt beheerd door een privépersoon',
|
||||
fr: 'TODO: fr'
|
||||
}),
|
||||
}
|
||||
},
|
||||
station: {
|
||||
name: new T({
|
||||
en: 'bike station (repair, pump or both)',
|
||||
nl: 'fietsstation (herstel, pomp of allebei)',
|
||||
fr: 'TODO: fr'
|
||||
}),
|
||||
title: new T({en: 'Bike station', nl: 'Fietsstation', fr: 'TODO: fr'}),
|
||||
manometer: {
|
||||
question: new T({
|
||||
en: 'Does the pump have a pressure indicator or manometer?',
|
||||
nl: 'Heeft deze pomp een luchtdrukmeter?',
|
||||
fr: 'TODO: fr'
|
||||
}),
|
||||
yes: new T({en: 'There is a manometer', nl: 'Er is een luchtdrukmeter', fr: 'TODO: fr'}),
|
||||
no: new T({en: 'There is no manometer', nl: 'Er is geen luchtdrukmeter', fr: 'TODO: fr'}),
|
||||
broken: new T({
|
||||
en: 'There is manometer but it is broken',
|
||||
nl: 'Er is een luchtdrukmeter maar die is momenteel defect',
|
||||
fr: 'TODO: fr'
|
||||
})
|
||||
},
|
||||
electric: {
|
||||
question: new T({
|
||||
en: 'Is this an electric bike pump?',
|
||||
nl: 'Is dit een electrische fietspomp?',
|
||||
fr: 'TODO: fr'
|
||||
}),
|
||||
manual: new T({en: 'Manual pump', nl: 'Manuele pomp', fr: 'TODO: fr'}),
|
||||
electric: new T({en: 'Electrical pump', nl: 'Electrische pomp', fr: 'TODO: fr'})
|
||||
},
|
||||
operational: {
|
||||
question: new T({
|
||||
en: 'Is the bike pump still operational?',
|
||||
nl: 'Werkt de fietspomp nog?',
|
||||
fr: 'TODO: fr'
|
||||
}),
|
||||
operational: new T({
|
||||
en: 'The bike pump is operational',
|
||||
nl: 'De fietspomp werkt nog',
|
||||
fr: 'TODO: fr'
|
||||
}),
|
||||
broken: new T({en: 'The bike pump is broken', nl: 'De fietspomp is kapot', fr: 'TODO: fr'})
|
||||
},
|
||||
valves: {
|
||||
question: new T({
|
||||
en: 'What valves are supported?',
|
||||
nl: 'Welke ventielen werken er met de pomp?',
|
||||
fr: 'TODO: fr'
|
||||
}),
|
||||
default: new T({
|
||||
en: 'There is a default head, so Dunlop, Sclaverand and auto',
|
||||
nl: 'Er is een standaard aansluiting, die dus voor Dunlop, Sclaverand en auto\'s werkt',
|
||||
fr: 'TODO: fr'
|
||||
}),
|
||||
dunlop: new T({en: 'Only Dunlop', nl: 'Enkel Dunlop', fr: 'TODO: fr'}),
|
||||
sclaverand: new T({
|
||||
en: 'Only Sclaverand (also known as Presta)',
|
||||
nl: 'Enkel Sclaverand (ook gekend als Presta)',
|
||||
fr: 'TODO: fr'
|
||||
}),
|
||||
auto: new T({en: 'Only for cars', nl: 'Enkel voor auto\'s', fr: 'TODO: fr'}),
|
||||
render: new T({
|
||||
en: 'This pump supports the following valves: {valves}',
|
||||
nl: 'Deze pomp werkt met de volgende ventielen: {valves}',
|
||||
fr: 'TODO: fr'
|
||||
}),
|
||||
template: new T({
|
||||
en: 'Some other valve(s): $$$',
|
||||
nl: 'Een ander type ventiel(en): $$$',
|
||||
fr: 'TODO: fr'
|
||||
})
|
||||
},
|
||||
chain: {
|
||||
question: new T({
|
||||
en: 'Does this bike station have a special tool to repair your bike chain?',
|
||||
nl: 'Heeft dit fietsstation een speciale reparatieset voor je ketting?',
|
||||
fr: 'TODO: fr'
|
||||
}),
|
||||
yes: new T({
|
||||
en: 'There is a chain tool',
|
||||
nl: 'Er is een reparatieset voor je ketting',
|
||||
fr: 'TODO: fr'
|
||||
}),
|
||||
no: new T({
|
||||
en: 'There is no chain tool',
|
||||
nl: 'Er is geen reparatieset voor je ketting',
|
||||
fr: 'TODO: fr'
|
||||
}),
|
||||
},
|
||||
operator: {
|
||||
render: new T({
|
||||
en: 'This bike station is operated by {operator}',
|
||||
nl: 'Dit fietsstation wordt beheerd door {operator}',
|
||||
fr: 'TODO: fr'
|
||||
}),
|
||||
template: new T({en: 'A different operator: $$$', nl: 'Een andere beheerder: $$$', fr: 'TODO: fr'}),
|
||||
question: new T({
|
||||
en: 'Who operates this bike station (name of university, shop, city...)?',
|
||||
nl: 'Wie beheert dit fietsstation (naam universiteit, winkel, stad...)?',
|
||||
fr: 'TODO: fr'
|
||||
}),
|
||||
private: new T({
|
||||
en: 'Operated by a private person',
|
||||
nl: 'Wordt beheerd door een privépersoon',
|
||||
fr: 'TODO: fr'
|
||||
}),
|
||||
},
|
||||
services: {
|
||||
question: new T({
|
||||
en: 'Which services are available at this bike station?',
|
||||
nl: 'Welke functies biedt dit fietsstation?',
|
||||
fr: 'TODO: fr'
|
||||
}),
|
||||
pump: new T({
|
||||
en: 'There is only a pump available',
|
||||
nl: 'Er is enkel een pomp beschikbaar',
|
||||
fr: 'TODO: fr'
|
||||
}),
|
||||
tools: new T({
|
||||
en: 'There are only tools (screwdrivers, pliers...) available',
|
||||
nl: 'Er is enkel gereedschap beschikbaar (schroevendraaier, tang...)',
|
||||
fr: 'TODO: fr'
|
||||
}),
|
||||
both: new T({
|
||||
en: 'There are both tools and a pump available',
|
||||
nl: 'Er is zowel een pomp als gereedschap beschikbaar',
|
||||
fr: 'TODO: fr'
|
||||
}),
|
||||
},
|
||||
stand: {
|
||||
question: new T({
|
||||
en: 'Does this bike station have a hook to suspend your bike with or a stand to elevate it?',
|
||||
nl: 'Heeft dit fietsstation een haak of standaard om je fiets op te hangen/zetten?',
|
||||
fr: 'TODO: fr'
|
||||
}),
|
||||
yes: new T({en: 'There is a hook or stand', nl: 'Er is een haak of standaard', fr: 'TODO: fr'}),
|
||||
no: new T({en: 'There is no hook or stand', nl: 'Er is geen haak of standaard', fr: 'TODO: fr'}),
|
||||
}
|
||||
},
|
||||
shop: {
|
||||
name: new T({en: 'bike shop', nl: 'fietswinkel', fr: 'TODO: fr'}),
|
||||
|
||||
title: new T({en: 'Bike shop', nl: 'Fietszaak', fr: 'TODO: fr'}),
|
||||
titleRepair: new T({en: 'Bike repair', nl: 'Fietsenmaker', fr: 'TODO: fr'}),
|
||||
titleShop: new T({en: 'Bike repair/shop', nl: 'Fietswinkel', fr: 'TODO: fr'}),
|
||||
|
||||
titleNamed: new T({en: 'Bike repair/shop', nl: 'Fietszaak {name}', fr: 'TODO: fr'}),
|
||||
titleRepairNamed: new T({en: 'Bike shop', nl: 'Fietsenmaker {name}', fr: 'TODO: fr'}),
|
||||
titleShopNamed: new T({en: 'Bike repair/shop', nl: 'Fietswinkel {name}', fr: 'TODO: fr'}),
|
||||
|
||||
|
||||
|
||||
retail: {
|
||||
question: new T({
|
||||
en: 'Does this shop sell bikes?',
|
||||
nl: 'Verkoopt deze winkel fietsen?',
|
||||
fr: 'TODO: fr'
|
||||
}),
|
||||
yes: new T({en: 'This shop sells bikes', nl: 'Deze winkel verkoopt fietsen', fr: 'TODO: fr'}),
|
||||
no: new T({
|
||||
en: 'This shop doesn\'t sell bikes',
|
||||
nl: 'Deze winkel verkoopt geen fietsen',
|
||||
fr: 'TODO: fr'
|
||||
}),
|
||||
},
|
||||
repair: {
|
||||
question: new T({
|
||||
en: 'Does this shop repair bikes?',
|
||||
nl: 'Verkoopt deze winkel fietsen?',
|
||||
fr: 'TODO: fr'
|
||||
}),
|
||||
yes: new T({en: 'This shop repairs bikes', nl: 'Deze winkel herstelt fietsen', fr: 'TODO: fr'}),
|
||||
no: new T({
|
||||
en: 'This shop doesn\'t repair bikes',
|
||||
nl: 'Deze winkel herstelt geen fietsen',
|
||||
fr: 'TODO: fr'
|
||||
}),
|
||||
sold: new T({en: 'This shop only repairs bikes bought here', nl: 'Deze winkel herstelt enkel fietsen die hier werden gekocht', fr: 'TODO: fr'}),
|
||||
brand: new T({en: 'This shop only repairs bikes of a certain brand', nl: 'Deze winkel herstelt enkel fietsen van een bepaald merk', fr: 'TODO: fr'}),
|
||||
},
|
||||
rental: {
|
||||
question: new T({
|
||||
en: 'Does this shop rent out bikes?',
|
||||
nl: 'Verhuurt deze winkel fietsen?',
|
||||
fr: 'TODO: fr'
|
||||
}),
|
||||
yes: new T({en: 'This shop rents out bikes', nl: 'Deze winkel verhuurt fietsen', fr: 'TODO: fr'}),
|
||||
no: new T({
|
||||
en: 'This shop doesn\'t rent out bikes',
|
||||
nl: 'Deze winkel verhuurt geen fietsen',
|
||||
fr: 'TODO: fr'
|
||||
}),
|
||||
},
|
||||
pump: {
|
||||
question: new T({
|
||||
en: 'Does this shop offer a bike pump for use by anyone?',
|
||||
nl: 'Biedt deze winkel een fietspomp aan voor iedereen?',
|
||||
fr: 'TODO: fr'
|
||||
}),
|
||||
yes: new T({
|
||||
en: 'This shop offers a bike pump for anyone',
|
||||
nl: 'Deze winkel biedt geen fietspomp aan voor eender wie',
|
||||
fr: 'TODO: fr'
|
||||
}),
|
||||
no: new T({
|
||||
en: 'This shop doesn\'t offer a bike pump for anyone',
|
||||
nl: 'Deze winkel biedt een fietspomp aan voor iedereen',
|
||||
fr: 'TODO: fr'
|
||||
})
|
||||
},
|
||||
qName: {
|
||||
question: new T({en: 'What is the name of this bicycle shop?', nl: 'Wat is de naam van deze fietszaak?', fr: 'TODO: fr'}),
|
||||
render: new T({en: 'This bicycle shop is called {name}', nl: 'Deze fietszaak heet <b>{name}</b>', fr: 'TODO: fr'}),
|
||||
template: new T({en: 'This bicycle shop is called: $$$', nl: 'Deze fietszaak heet: <b>$$$</b>', fr: 'TODO: fr'})
|
||||
},
|
||||
secondHand: {
|
||||
question: new T({en: 'Does this shop sell second-hand bikes?', nl: 'Verkoopt deze winkel tweedehands fietsen?', fr: 'TODO: fr'}),
|
||||
yes: new T({en: 'This shop sells second-hand bikes', nl: 'Deze winkel verkoopt tweedehands fietsen', fr: 'TODO: fr'}),
|
||||
no: new T({en: 'This shop doesn\'t sell second-hand bikes', nl: 'Deze winkel verkoopt geen tweedehands fietsen', fr: 'TODO: fr'}),
|
||||
only: new T({en: 'This shop only sells second-hand bikes', nl: 'Deze winkel verkoopt enkel tweedehands fietsen', fr: 'TODO: fr'}),
|
||||
},
|
||||
diy: {
|
||||
question: new T({en: 'Are there tools here to repair your own bike?', nl: 'Biedt deze winkel gereedschap aan om je fiets zelf te herstellen?', fr: 'TODO: fr'}),
|
||||
yes: new T({en: 'This shop offers tools for DIY repair', nl: 'Deze winkel biedt gereedschap aan om je fiets zelf te herstellen', fr: 'TODO: fr'}),
|
||||
no: new T({en: 'This shop doesn\'t offer tools for DIY repair', nl: 'Deze winkel biedt geen gereedschap aan om je fiets zelf te herstellen', fr: 'TODO: fr'}),
|
||||
}
|
||||
}
|
||||
},
|
||||
image: {
|
||||
addPicture: new T({en: 'Add picture', nl: 'Voeg foto toe', fr: 'TODO: fr'}),
|
||||
uploadingPicture: new T({
|
||||
en: 'Uploading your picture...',
|
||||
nl: 'Bezig met een foto te uploaden...',
|
||||
fr: 'TODO: fr'
|
||||
}),
|
||||
pleaseLogin: new T({
|
||||
en: 'Please login to add a picure or to answer questions',
|
||||
nl: 'Gelieve je aan te melden om een foto toe te voegen of vragen te beantwoorden',
|
||||
fr: 'TODO: fr'
|
||||
}),
|
||||
willBePublished: new T({
|
||||
en: 'Your picture will be published: ',
|
||||
nl: 'Jouw foto wordt gepubliceerd: ',
|
||||
fr: 'TODO: fr'
|
||||
}),
|
||||
cco: new T({en: 'in the public domain', nl: 'in het publiek domein', fr: 'TODO: fr'}),
|
||||
ccbs: new T({en: 'under the CC-BY-SA-license', nl: 'onder de CC-BY-SA-licentie', fr: 'TODO: fr'}),
|
||||
ccb: new T({en: 'under the CC-BY-license', nl: 'onder de CC-BY-licentie', fr: 'TODO: fr'})
|
||||
},
|
||||
centerMessage: {
|
||||
loadingData: new T({en: 'Loading data...', nl: 'Data wordt geladen...', fr: 'TODO: fr'}),
|
||||
zoomIn: new T({
|
||||
en: 'Zoom in to view or edit the data',
|
||||
nl: 'Zoom in om de data te zien en te bewerken',
|
||||
fr: 'TODO: fr'
|
||||
}),
|
||||
ready: new T({en: 'Done!', nl: 'Klaar!', fr: 'TODO: fr'}),
|
||||
},
|
||||
general: {
|
||||
loginWithOpenStreetMap: new T({en: "Login with OpenStreetMap", nl: "Aanmelden met OpenStreetMap"}),
|
||||
getStarted: new T({
|
||||
en: "<span class='activate-osm-authentication'>Login with OpenStreetMap</span> or <a href='https://www.openstreetmap.org/user/new' target='_blank'>make a free account to get started</a>",
|
||||
nl: "<span class='activate-osm-authentication'>Meld je aan met je OpenStreetMap-account</span> of <a href='https://www.openstreetmap.org/user/new' target='_blank'>maak snel en gratis een account om te beginnen/a>",
|
||||
}),
|
||||
welcomeBack: new T({
|
||||
en: "You are logged in, welcome back!",
|
||||
nl: "Je bent aangemeld. Welkom terug!"
|
||||
}),
|
||||
search: {
|
||||
search: new Translation({
|
||||
en: "Search a location",
|
||||
nl: "Zoek naar een locatie"
|
||||
}),
|
||||
searching: new Translation({
|
||||
en: "Searching...",
|
||||
nl: "Aan het zoeken..."
|
||||
}),
|
||||
nothing: new Translation({
|
||||
en: "Nothing found...",
|
||||
nl: "Niet gevonden..."
|
||||
}),
|
||||
error: new Translation({
|
||||
en: "Something went wrong...",
|
||||
nl: "Niet gelukt..."
|
||||
})
|
||||
|
||||
},
|
||||
returnToTheMap: new T({
|
||||
en: "Return to the map",
|
||||
nl: "Naar de kaart"
|
||||
}),
|
||||
save: new T({
|
||||
en: "Save",
|
||||
nl: "Opslaan"
|
||||
}),
|
||||
cancel: new T({
|
||||
en: "Cancel",
|
||||
nl: "Annuleren"
|
||||
}),
|
||||
skip: new T({
|
||||
en: "Skip this question",
|
||||
nl: "Vraag overslaan"
|
||||
}),
|
||||
oneSkippedQuestion: new T({
|
||||
en: "One question is skipped",
|
||||
nl: "Een vraag is overgeslaan"
|
||||
}),
|
||||
skippedQuestions: new T({
|
||||
en: "Some questions are skipped",
|
||||
nl: "Sommige vragen zijn overgeslaan"
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
public static W(s: string | UIElement): UIElement {
|
||||
if (s instanceof UIElement) {
|
||||
return s;
|
||||
}
|
||||
return new FixedUiElement(s);
|
||||
}
|
||||
|
||||
}
|
|
@ -9,9 +9,10 @@
|
|||
<rect x="34.3118" y="72.5698" width="28" height="5" fill="white"/>
|
||||
<rect x="65.3118" y="60.5698" width="4" height="8" fill="white"/>
|
||||
<rect x="68.3118" y="64.5699" width="3" height="4" fill="white"/>
|
||||
<rect x="66" y="72.2385" width="21.8167" height="3.68967" transform="rotate(-44.3049 66 72.2385)" fill="#F00D0D"/>
|
||||
<rect x="56" y="42" width="5" height="10" fill="#171615"/>
|
||||
</g>
|
||||
<rect x="68.4303" y="56.8712" width="22.1163" height="3.52552" transform="rotate(43.5782 68.4303 56.8712)" fill="#F00D0D"/>
|
||||
<rect x="72.4167" y="53.8615" width="29.0549" height="7.85787" transform="rotate(43.5782 72.4167 53.8615)" fill="#F00D0D"/>
|
||||
<path d="M68.2141 73.9097L88.6128 54L94.0003 59.5199L73.6016 79.4295L68.2141 73.9097Z" fill="#F00D0D"/>
|
||||
<defs>
|
||||
<filter id="filter0_d" x="-3" y="2" width="102.479" height="102.479" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
|
||||
<feFlood flood-opacity="0" result="BackgroundImageFix"/>
|
Before Width: | Height: | Size: 6.2 KiB After Width: | Height: | Size: 6.3 KiB |
BIN
assets/bike/cyclofix.jpeg
Normal file
After Width: | Height: | Size: 136 KiB |
18
assets/bike/drinking_water.svg
Normal file
|
@ -0,0 +1,18 @@
|
|||
<svg width="98" height="124" viewBox="0 0 98 124" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="M55.0445 114.094C53.2614 117.981 47.7386 117.981 45.9555 114.094L15.2124 47.085C13.6928 43.7729 16.1129 40 19.7569 40L81.2431 40C84.8871 40 87.3072 43.7729 85.7876 47.085L55.0445 114.094Z" fill="#6BC4F7"/>
|
||||
<circle cx="49" cy="49" r="49" fill="#6BC4F7"/>
|
||||
<g filter="url(#filter0_d)">
|
||||
<path d="M79 41.8705C79 39.3976 77.4079 35.6726 74.1327 30.4823C71.8064 26.7956 69.5171 23.8005 69.4208 23.6747C69.0964 23.2513 68.5726 23 68.0144 23C67.4562 23 66.9322 23.2514 66.6078 23.6748C66.3787 23.9738 61.828 29.939 59.0942 35.3688C54.8849 28.8794 50.9494 23.7307 50.9067 23.6748C50.5821 23.2513 50.0582 23 49.5 23C48.9418 23 48.4179 23.2513 48.0934 23.6747C48.0468 23.7357 43.367 29.8581 38.753 37.1701C38.2587 37.9536 37.7856 38.7192 37.3295 39.4706C34.9483 35.6504 32.5162 32.4661 32.3922 32.3043C32.0677 31.8809 31.5438 31.6296 30.9856 31.6296C30.4274 31.6296 29.9036 31.8809 29.5791 32.3043C29.4828 32.43 27.1935 35.4252 24.8672 39.1119C21.5921 44.3021 20 48.0271 20 50.5C20 55.6193 24.0504 59.8732 29.3205 60.6234C30.1402 70.3329 38.8775 78 49.5 78C60.6619 78 69.7429 69.5347 69.7429 59.1295C69.7429 57.2539 69.2077 54.9089 68.1449 52.1097C74.1423 52.0443 79 47.4766 79 41.8705V41.8705ZM23.457 50.5C23.457 49.457 24.0257 46.8053 27.8344 40.7656C28.9755 38.9562 30.126 37.2947 30.9856 36.0929C32.1576 37.7318 33.8718 40.2278 35.3741 42.8008C31.9223 48.9002 29.9183 53.7824 29.3954 57.3607C26.0053 56.6784 23.457 53.8613 23.457 50.5V50.5ZM49.5 74.7773C40.2443 74.7773 32.7142 67.7578 32.7142 59.1295C32.7142 56.3792 34.2766 50.6239 41.7201 38.8241C44.7375 34.0407 47.784 29.7745 49.5 27.4354C51.213 29.7702 54.2519 34.0258 57.2673 38.8042C64.7212 50.6167 66.2857 56.3773 66.2857 59.1296C66.2858 67.7578 58.7557 74.7773 49.5 74.7773V74.7773ZM68.0144 48.8887C67.5836 48.8887 67.156 48.8549 66.7362 48.7879C65.3713 45.8533 63.5372 42.506 61.2717 38.8163C62.8077 35.0043 66.1199 30.1147 68.0149 27.4638C68.8707 28.6601 70.0148 30.3125 71.153 32.1162C74.9727 38.1694 75.543 40.8257 75.543 41.8705C75.543 45.7402 72.1656 48.8887 68.0144 48.8887V48.8887Z" fill="white"/>
|
||||
</g>
|
||||
<defs>
|
||||
<filter id="filter0_d" x="16" y="23" width="67" height="63" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
|
||||
<feFlood flood-opacity="0" result="BackgroundImageFix"/>
|
||||
<feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"/>
|
||||
<feOffset dy="4"/>
|
||||
<feGaussianBlur stdDeviation="2"/>
|
||||
<feColorMatrix type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.25 0"/>
|
||||
<feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow"/>
|
||||
<feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow" result="shape"/>
|
||||
</filter>
|
||||
</defs>
|
||||
</svg>
|
After Width: | Height: | Size: 2.7 KiB |
|
@ -2,85 +2,10 @@
|
|||
<path d="M52.1412 111.419C50.4633 115.605 44.5366 115.605 42.8588 111.419L24.7014 66.1099C23.385 62.8252 25.8039 59.25 29.3426 59.25L65.6574 59.25C69.1962 59.25 71.615 62.8252 70.2986 66.11L52.1412 111.419Z" fill="#5675DF"/>
|
||||
<ellipse cx="48.5" cy="47.5" rx="48.5" ry="47.5" fill="#5675DF"/>
|
||||
<g filter="url(#filter0_d)">
|
||||
<circle cx="39" cy="66" r="2" stroke="white" stroke-width="2"/>
|
||||
<path d="M42.2812 53.1875V71H36.2812V25.5H53.0625C58.0417 25.5 61.9375 26.7708 64.75 29.3125C67.5833 31.8542 69 35.2188 69 39.4062C69 43.8229 67.6146 47.2292 64.8438 49.625C62.0938 52 58.1458 53.1875 53 53.1875H42.2812ZM42.2812 48.2812H53.0625C56.2708 48.2812 58.7292 47.5312 60.4375 46.0312C62.1458 44.5104 63 42.3229 63 39.4688C63 36.7604 62.1458 34.5938 60.4375 32.9688C58.7292 31.3438 56.3854 30.5 53.4062 30.4375H42.2812V48.2812Z" fill="white"/>
|
||||
</g>
|
||||
<g filter="url(#filter1_d)">
|
||||
<path d="M37.375 67H25L31.75 51.4H38.5H43.375H48.625M48.625 51.4L46.75 47H49.375H52M48.625 51.4L49.375 53.4L50.875 56.6L55 67M48.625 51.4L45.0625 57.4L42.925 61M41.5 63.4L42.925 61M34.375 55.8L38.125 64.6L30.625 47L32.875 51.8M40.375 65.4L42.925 61" stroke="white" stroke-width="2"/>
|
||||
</g>
|
||||
<g filter="url(#filter2_d)">
|
||||
<circle cx="23" cy="67" r="9" stroke="white" stroke-width="2"/>
|
||||
</g>
|
||||
<g filter="url(#filter3_d)">
|
||||
<circle cx="55" cy="67" r="9" stroke="white" stroke-width="2"/>
|
||||
</g>
|
||||
<path d="M61 77V59.0476V55.9524L62.4814 54.4851C64.4301 52.5549 67.5699 52.5549 69.5186 54.4851L71 55.9524V58.4286V77" stroke="white" stroke-width="2"/>
|
||||
<line x1="66" y1="53" x2="66" y2="16" stroke="white" stroke-width="2"/>
|
||||
<g filter="url(#filter4_d)">
|
||||
<circle cx="66" cy="23" r="13" fill="white"/>
|
||||
</g>
|
||||
<g filter="url(#filter5_d)">
|
||||
<circle cx="66" cy="23" r="11" fill="#496DEB"/>
|
||||
</g>
|
||||
<g filter="url(#filter6_d)">
|
||||
<path d="M64.1729 24.9902V30H62.4854V17.2031H67.2051C68.6055 17.2031 69.7012 17.5605 70.4922 18.2754C71.2891 18.9902 71.6875 19.9365 71.6875 21.1143C71.6875 22.3564 71.2979 23.3145 70.5186 23.9883C69.7451 24.6562 68.6348 24.9902 67.1875 24.9902H64.1729ZM64.1729 23.6104H67.2051C68.1074 23.6104 68.7988 23.3994 69.2793 22.9775C69.7598 22.5498 70 21.9346 70 21.1318C70 20.3701 69.7598 19.7607 69.2793 19.3037C68.7988 18.8467 68.1396 18.6094 67.3018 18.5918H64.1729V23.6104Z" fill="white"/>
|
||||
</g>
|
||||
<line x1="43" y1="78" x2="72" y2="78" stroke="white" stroke-width="2"/>
|
||||
<defs>
|
||||
<filter id="filter0_d" x="32" y="63" width="14" height="14" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
|
||||
<feFlood flood-opacity="0" result="BackgroundImageFix"/>
|
||||
<feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"/>
|
||||
<feOffset dy="4"/>
|
||||
<feGaussianBlur stdDeviation="2"/>
|
||||
<feColorMatrix type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.25 0"/>
|
||||
<feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow"/>
|
||||
<feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow" result="shape"/>
|
||||
</filter>
|
||||
<filter id="filter1_d" x="19.4777" y="46" width="40.4518" height="30" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
|
||||
<feFlood flood-opacity="0" result="BackgroundImageFix"/>
|
||||
<feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"/>
|
||||
<feOffset dy="4"/>
|
||||
<feGaussianBlur stdDeviation="2"/>
|
||||
<feColorMatrix type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.25 0"/>
|
||||
<feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow"/>
|
||||
<feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow" result="shape"/>
|
||||
</filter>
|
||||
<filter id="filter2_d" x="9" y="57" width="28" height="28" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
|
||||
<feFlood flood-opacity="0" result="BackgroundImageFix"/>
|
||||
<feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"/>
|
||||
<feOffset dy="4"/>
|
||||
<feGaussianBlur stdDeviation="2"/>
|
||||
<feColorMatrix type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.25 0"/>
|
||||
<feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow"/>
|
||||
<feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow" result="shape"/>
|
||||
</filter>
|
||||
<filter id="filter3_d" x="41" y="57" width="28" height="28" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
|
||||
<feFlood flood-opacity="0" result="BackgroundImageFix"/>
|
||||
<feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"/>
|
||||
<feOffset dy="4"/>
|
||||
<feGaussianBlur stdDeviation="2"/>
|
||||
<feColorMatrix type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.25 0"/>
|
||||
<feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow"/>
|
||||
<feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow" result="shape"/>
|
||||
</filter>
|
||||
<filter id="filter4_d" x="49" y="10" width="34" height="34" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
|
||||
<feFlood flood-opacity="0" result="BackgroundImageFix"/>
|
||||
<feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"/>
|
||||
<feOffset dy="4"/>
|
||||
<feGaussianBlur stdDeviation="2"/>
|
||||
<feColorMatrix type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.25 0"/>
|
||||
<feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow"/>
|
||||
<feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow" result="shape"/>
|
||||
</filter>
|
||||
<filter id="filter5_d" x="51" y="12" width="30" height="30" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
|
||||
<feFlood flood-opacity="0" result="BackgroundImageFix"/>
|
||||
<feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"/>
|
||||
<feOffset dy="4"/>
|
||||
<feGaussianBlur stdDeviation="2"/>
|
||||
<feColorMatrix type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.25 0"/>
|
||||
<feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow"/>
|
||||
<feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow" result="shape"/>
|
||||
</filter>
|
||||
<filter id="filter6_d" x="58.4854" y="17.2031" width="17.2021" height="20.7969" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
|
||||
<filter id="filter0_d" x="32.2812" y="25.5" width="40.7188" height="53.5" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
|
||||
<feFlood flood-opacity="0" result="BackgroundImageFix"/>
|
||||
<feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"/>
|
||||
<feOffset dy="4"/>
|
||||
|
|
Before Width: | Height: | Size: 6 KiB After Width: | Height: | Size: 1.5 KiB |
93
assets/bike/parking_old.svg
Normal file
|
@ -0,0 +1,93 @@
|
|||
<svg width="97" height="123" viewBox="0 0 97 123" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="M52.1412 111.419C50.4633 115.605 44.5366 115.605 42.8588 111.419L24.7014 66.1099C23.385 62.8252 25.8039 59.25 29.3426 59.25L65.6574 59.25C69.1962 59.25 71.615 62.8252 70.2986 66.11L52.1412 111.419Z" fill="#5675DF"/>
|
||||
<ellipse cx="48.5" cy="47.5" rx="48.5" ry="47.5" fill="#5675DF"/>
|
||||
<g filter="url(#filter0_d)">
|
||||
<circle cx="39" cy="66" r="2" stroke="white" stroke-width="2"/>
|
||||
</g>
|
||||
<g filter="url(#filter1_d)">
|
||||
<path d="M37.375 67H25L31.75 51.4H38.5H43.375H48.625M48.625 51.4L46.75 47H49.375H52M48.625 51.4L49.375 53.4L50.875 56.6L55 67M48.625 51.4L45.0625 57.4L42.925 61M41.5 63.4L42.925 61M34.375 55.8L38.125 64.6L30.625 47L32.875 51.8M40.375 65.4L42.925 61" stroke="white" stroke-width="2"/>
|
||||
</g>
|
||||
<g filter="url(#filter2_d)">
|
||||
<circle cx="23" cy="67" r="9" stroke="white" stroke-width="2"/>
|
||||
</g>
|
||||
<g filter="url(#filter3_d)">
|
||||
<circle cx="55" cy="67" r="9" stroke="white" stroke-width="2"/>
|
||||
</g>
|
||||
<path d="M61 77V59.0476V55.9524L62.4814 54.4851C64.4301 52.5549 67.5699 52.5549 69.5186 54.4851L71 55.9524V58.4286V77" stroke="white" stroke-width="2"/>
|
||||
<line x1="66" y1="53" x2="66" y2="16" stroke="white" stroke-width="2"/>
|
||||
<g filter="url(#filter4_d)">
|
||||
<circle cx="66" cy="23" r="13" fill="white"/>
|
||||
</g>
|
||||
<g filter="url(#filter5_d)">
|
||||
<circle cx="66" cy="23" r="11" fill="#496DEB"/>
|
||||
</g>
|
||||
<g filter="url(#filter6_d)">
|
||||
<path d="M64.1729 24.9902V30H62.4854V17.2031H67.2051C68.6055 17.2031 69.7012 17.5605 70.4922 18.2754C71.2891 18.9902 71.6875 19.9365 71.6875 21.1143C71.6875 22.3564 71.2979 23.3145 70.5186 23.9883C69.7451 24.6562 68.6348 24.9902 67.1875 24.9902H64.1729ZM64.1729 23.6104H67.2051C68.1074 23.6104 68.7988 23.3994 69.2793 22.9775C69.7598 22.5498 70 21.9346 70 21.1318C70 20.3701 69.7598 19.7607 69.2793 19.3037C68.7988 18.8467 68.1396 18.6094 67.3018 18.5918H64.1729V23.6104Z" fill="white"/>
|
||||
</g>
|
||||
<line x1="43" y1="78" x2="72" y2="78" stroke="white" stroke-width="2"/>
|
||||
<defs>
|
||||
<filter id="filter0_d" x="32" y="63" width="14" height="14" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
|
||||
<feFlood flood-opacity="0" result="BackgroundImageFix"/>
|
||||
<feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"/>
|
||||
<feOffset dy="4"/>
|
||||
<feGaussianBlur stdDeviation="2"/>
|
||||
<feColorMatrix type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.25 0"/>
|
||||
<feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow"/>
|
||||
<feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow" result="shape"/>
|
||||
</filter>
|
||||
<filter id="filter1_d" x="19.4777" y="46" width="40.4518" height="30" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
|
||||
<feFlood flood-opacity="0" result="BackgroundImageFix"/>
|
||||
<feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"/>
|
||||
<feOffset dy="4"/>
|
||||
<feGaussianBlur stdDeviation="2"/>
|
||||
<feColorMatrix type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.25 0"/>
|
||||
<feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow"/>
|
||||
<feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow" result="shape"/>
|
||||
</filter>
|
||||
<filter id="filter2_d" x="9" y="57" width="28" height="28" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
|
||||
<feFlood flood-opacity="0" result="BackgroundImageFix"/>
|
||||
<feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"/>
|
||||
<feOffset dy="4"/>
|
||||
<feGaussianBlur stdDeviation="2"/>
|
||||
<feColorMatrix type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.25 0"/>
|
||||
<feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow"/>
|
||||
<feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow" result="shape"/>
|
||||
</filter>
|
||||
<filter id="filter3_d" x="41" y="57" width="28" height="28" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
|
||||
<feFlood flood-opacity="0" result="BackgroundImageFix"/>
|
||||
<feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"/>
|
||||
<feOffset dy="4"/>
|
||||
<feGaussianBlur stdDeviation="2"/>
|
||||
<feColorMatrix type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.25 0"/>
|
||||
<feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow"/>
|
||||
<feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow" result="shape"/>
|
||||
</filter>
|
||||
<filter id="filter4_d" x="49" y="10" width="34" height="34" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
|
||||
<feFlood flood-opacity="0" result="BackgroundImageFix"/>
|
||||
<feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"/>
|
||||
<feOffset dy="4"/>
|
||||
<feGaussianBlur stdDeviation="2"/>
|
||||
<feColorMatrix type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.25 0"/>
|
||||
<feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow"/>
|
||||
<feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow" result="shape"/>
|
||||
</filter>
|
||||
<filter id="filter5_d" x="51" y="12" width="30" height="30" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
|
||||
<feFlood flood-opacity="0" result="BackgroundImageFix"/>
|
||||
<feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"/>
|
||||
<feOffset dy="4"/>
|
||||
<feGaussianBlur stdDeviation="2"/>
|
||||
<feColorMatrix type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.25 0"/>
|
||||
<feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow"/>
|
||||
<feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow" result="shape"/>
|
||||
</filter>
|
||||
<filter id="filter6_d" x="58.4854" y="17.2031" width="17.2021" height="20.7969" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
|
||||
<feFlood flood-opacity="0" result="BackgroundImageFix"/>
|
||||
<feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"/>
|
||||
<feOffset dy="4"/>
|
||||
<feGaussianBlur stdDeviation="2"/>
|
||||
<feColorMatrix type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.25 0"/>
|
||||
<feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow"/>
|
||||
<feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow" result="shape"/>
|
||||
</filter>
|
||||
</defs>
|
||||
</svg>
|
After Width: | Height: | Size: 6 KiB |
64
assets/walkbybrussels/icons_wbb-02.svg
Normal file
|
@ -0,0 +1,64 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- Generator: Adobe Illustrator 24.2.1, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
|
||||
<svg version="1.1" id="Laag_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
|
||||
viewBox="0 0 100 100" style="enable-background:new 0 0 100 100;" xml:space="preserve">
|
||||
<style type="text/css">
|
||||
.st0{fill:#003B8B;}
|
||||
.st1{fill:#72B154;}
|
||||
.st2{fill:#FDC400;}
|
||||
.st3{fill:none;}
|
||||
.st4{fill:#E64335;}
|
||||
.st5{fill:#9C9B9A;}
|
||||
.st6{fill:#020203;}
|
||||
.st7{fill:#0081C1;}
|
||||
.st8{clip-path:url(#SVGID_2_);}
|
||||
.st9{fill:none;stroke:#003B8B;stroke-width:9;stroke-linecap:round;}
|
||||
.st10{clip-path:url(#SVGID_4_);}
|
||||
.st11{clip-path:url(#SVGID_6_);}
|
||||
.st12{fill:#FFFFFF;}
|
||||
</style>
|
||||
<g>
|
||||
<path class="st3" d="M72.79,34.66l-3.1,2.84c-0.25,0.23-0.6,0.16-0.78-0.07l-5.58-7.15c-0.09-0.12-0.14-0.27-0.13-0.42
|
||||
c-0.01,0.15,0.04,0.31,0.13,0.42l5.58,7.15c0.18,0.23,0.52,0.3,0.78,0.07L72.79,34.66c0.24-0.22,0.24-0.6,0.06-0.83
|
||||
C73.03,34.07,73.03,34.44,72.79,34.66z"/>
|
||||
<path class="st3" d="M47.92,43.19C47.92,43.2,47.92,43.2,47.92,43.19l6.69,8.57c4.21-4.4,7.98-8.6,11.05-12.32
|
||||
c-3.07,3.71-6.84,7.92-11.05,12.31L47.92,43.19z"/>
|
||||
<path class="st3" d="M50.85,55.61c-0.56,0.56-1.13,1.14-1.7,1.7c-0.32,0.32-0.64,0.64-0.96,0.95c-1.26,1.24-2.54,2.49-3.84,3.74
|
||||
c-1.29,1.24-2.59,2.48-3.9,3.69c-0.3,0.29-0.61,0.57-0.92,0.86c-0.68,0.64-1.37,1.27-2.05,1.89l0,0.01
|
||||
c-8.62,7.19-17.24,14.39-25.86,21.58c0,0.01-0.01,0.01-0.01,0.01c-0.43,0.32-0.86,0.63-1.28,0.94c-1.55,0.77-4.15,0.96-5.6-0.8
|
||||
c-0.05-0.07-0.1-0.13-0.15-0.2C4.23,89.49,4,88.96,3.86,88.4C4,88.97,4.23,89.51,4.58,90c0.05,0.07,0.1,0.14,0.15,0.2
|
||||
c1.4,1.74,3.81,2.1,5.6,0.8c0.57-0.29,0.99-0.65,1.28-0.94c5.32-3.94,11.27-8.75,17.36-14.01l7.58-6.73
|
||||
c0.31-0.28,0.62-0.56,0.93-0.85c0-0.02,0-0.02,0-0.02c0.68-0.62,1.37-1.25,2.05-1.89c0.31-0.28,0.61-0.57,0.92-0.85
|
||||
c1.31-1.22,2.61-2.45,3.9-3.69c1.29-1.24,2.57-2.49,3.84-3.74c0.32-0.32,0.64-0.64,0.96-0.95c0.58-0.57,1.14-1.13,1.7-1.7
|
||||
c0.36-0.37,0.72-0.73,1.08-1.09l-0.01-0.01C51.57,54.89,51.21,55.25,50.85,55.61z M4.73,90.19c1.45,1.77,4.05,1.58,5.6,0.8
|
||||
C8.54,92.29,6.13,91.93,4.73,90.19z M36.55,69.31l-7.58,6.73c-6.08,5.27-12.04,10.07-17.36,14.01c0-0.01,0.01-0.01,0.01-0.01
|
||||
c8.62-7.19,17.23-14.38,25.86-21.58C37.17,68.75,36.86,69.03,36.55,69.31z"/>
|
||||
<path class="st3" d="M95.13,6.33c-6.07,0.59-10.41,1.65-13.37,2.76c-3.1,1.16-4.75,2.35-5.55,3.08c0.81-0.72,2.45-1.91,5.54-3.07
|
||||
C84.71,7.98,89.06,6.93,95.13,6.33z"/>
|
||||
<path class="st3" d="M87.49,26.75c-2.56,2.35-5.62,3.54-8.32,4.18C81.86,30.29,84.92,29.1,87.49,26.75
|
||||
c1.58-1.44,5.57-6.32,8.83-20.55c0,0,0,0,0,0C93.05,20.43,89.06,25.31,87.49,26.75z"/>
|
||||
<path class="st4" d="M99.16,3.59c-0.75-0.96-1.89-1.48-3.05-1.39c-6.05,0.5-17.01,2.07-22.35,6.96c-4.32,3.96-6.41,9.52-7.38,13.33
|
||||
c-0.83,0.1-1.61,0.47-2.26,1.06l-3.1,2.84c-0.88,0.8-1.43,1.95-1.49,3.29c-8.09,6.36-16.19,12.71-24.29,19.07
|
||||
C24.18,59.62,13.13,70.48,2.09,81.34c-0.54,0.64-1.48,1.94-1.9,3.86c-0.45,2.08-0.22,4.96,1.47,7.24c2.75,3.7,7.35,3.02,8,2.91
|
||||
c2.1-0.35,3.46-1.43,5.24-2.83c6.62-5.23,10.11-7.99,10.15-7.97c0,0,0,0.01-0.01,0.01c3.36-3.13,8.16-7.45,14.92-13.13
|
||||
c9.57-8.79,20.69-19.83,28.87-29.83c1.24,0.16,2.37-0.25,3.24-1.05l3.1-2.84c0.66-0.6,1.11-1.39,1.33-2.23
|
||||
c3.63-0.41,9.04-1.71,13.36-5.67c5.34-4.9,8.59-16.34,10.04-22.72C100.19,5.86,99.91,4.56,99.16,3.59z M50.85,55.62
|
||||
c-0.56,0.57-1.13,1.13-1.7,1.7c-0.32,0.32-0.64,0.64-0.96,0.95c-1.27,1.25-2.55,2.5-3.84,3.74c-1.29,1.24-2.59,2.47-3.9,3.69
|
||||
c-0.31,0.29-0.61,0.57-0.92,0.85c-0.68,0.64-1.37,1.27-2.05,1.89c0,0,0,0,0,0.02c-0.31,0.29-0.62,0.57-0.93,0.85l-7.58,6.73
|
||||
c-6.08,5.26-12.04,10.07-17.36,14.01c-0.29,0.29-0.71,0.65-1.28,0.94c-1.79,1.3-4.21,0.94-5.6-0.8c-0.05-0.07-0.1-0.13-0.15-0.2
|
||||
C4.23,89.51,4,88.97,3.86,88.4c0.15,0.56,0.38,1.09,0.72,1.58c0.05,0.07,0.1,0.14,0.15,0.2c1.45,1.77,4.05,1.58,5.6,0.8
|
||||
c0.42-0.31,0.85-0.62,1.28-0.94c0-0.01,0.01-0.01,0.01-0.01c8.62-7.19,17.24-14.39,25.86-21.58l0-0.01
|
||||
c0.68-0.62,1.36-1.25,2.05-1.89c0.31-0.29,0.62-0.57,0.92-0.86c1.31-1.22,2.61-2.45,3.9-3.69c1.31-1.25,2.58-2.5,3.84-3.74
|
||||
c0.32-0.32,0.64-0.64,0.96-0.95c0.57-0.57,1.14-1.14,1.7-1.7c0.36-0.36,0.72-0.72,1.07-1.08l0.01,0.01
|
||||
C51.57,54.9,51.22,55.26,50.85,55.62z M54.61,51.76l-6.69-8.57c0,0,0,0,0,0L54.61,51.76c4.21-4.4,7.98-8.6,11.05-12.32
|
||||
C62.59,43.16,58.82,47.36,54.61,51.76z M72.79,34.66l-3.1,2.84c-0.25,0.23-0.6,0.16-0.78-0.07l-5.58-7.15
|
||||
c-0.09-0.12-0.14-0.27-0.13-0.42c-0.01,0.15,0.04,0.3,0.13,0.42l5.58,7.15c0.18,0.22,0.52,0.3,0.78,0.07L72.79,34.66
|
||||
c0.24-0.22,0.24-0.59,0.06-0.83C73.04,34.07,73.04,34.44,72.79,34.66z M76.21,12.17c0.8-0.72,2.45-1.91,5.55-3.08
|
||||
c2.96-1.11,7.3-2.17,13.37-2.76C89.06,6.93,84.71,7.98,81.75,9.1C78.66,10.26,77.02,11.44,76.21,12.17z M87.49,26.75
|
||||
c-2.57,2.35-5.63,3.54-8.32,4.18C81.86,30.29,84.92,29.1,87.49,26.75c1.57-1.43,5.56-6.31,8.82-20.55c0,0,0,0,0,0
|
||||
C93.06,20.43,89.06,25.31,87.49,26.75z"/>
|
||||
<path class="st4" d="M11.61,90.05c5.32-3.94,11.27-8.74,17.36-14.01l7.58-6.73c0.31-0.28,0.62-0.56,0.93-0.85
|
||||
c-8.62,7.19-17.24,14.39-25.86,21.58C11.62,90.04,11.62,90.05,11.61,90.05z"/>
|
||||
<path class="st4" d="M4.73,90.19c1.4,1.74,3.81,2.1,5.6,0.8C8.78,91.76,6.19,91.95,4.73,90.19z"/>
|
||||
</g>
|
||||
</svg>
|
After Width: | Height: | Size: 5.1 KiB |
25
assets/walkbybrussels/icons_wbb-03.svg
Normal file
|
@ -0,0 +1,25 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- Generator: Adobe Illustrator 24.2.1, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
|
||||
<svg version="1.1" id="Laag_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
|
||||
viewBox="0 0 100 100" style="enable-background:new 0 0 100 100;" xml:space="preserve">
|
||||
<style type="text/css">
|
||||
.st0{fill:#003B8B;}
|
||||
.st1{fill:#72B154;}
|
||||
.st2{fill:#FDC400;}
|
||||
.st3{fill:none;}
|
||||
.st4{fill:#E64335;}
|
||||
.st5{fill:#9C9B9A;}
|
||||
.st6{fill:#020203;}
|
||||
.st7{fill:#0081C1;}
|
||||
.st8{clip-path:url(#SVGID_2_);}
|
||||
.st9{fill:none;stroke:#003B8B;stroke-width:9;stroke-linecap:round;}
|
||||
.st10{clip-path:url(#SVGID_4_);}
|
||||
.st11{clip-path:url(#SVGID_6_);}
|
||||
.st12{fill:#FFFFFF;}
|
||||
</style>
|
||||
<g>
|
||||
<path class="st2" d="M50.8,0.5c-0.51-0.25-1.09-0.25-1.6,0L0.15,24.65h99.7L50.8,0.5z"/>
|
||||
<path class="st2" d="M0.15,30.26c0,2.51,1.79,4.55,4.01,4.55h8.62v64.66h10.63V34.81h21.2v64.88H50h5.38V34.81h21.06v64.66h10.63
|
||||
V34.81h8.76c2.22,0,4.01-2.04,4.01-4.55v-5.61H0.15V30.26z"/>
|
||||
</g>
|
||||
</svg>
|
After Width: | Height: | Size: 1 KiB |
43
assets/walkbybrussels/icons_wbb-04.svg
Normal file
|
@ -0,0 +1,43 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- Generator: Adobe Illustrator 24.2.1, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
|
||||
<svg version="1.1" id="Laag_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
|
||||
viewBox="0 0 100 100" style="enable-background:new 0 0 100 100;" xml:space="preserve">
|
||||
<style type="text/css">
|
||||
.st0{fill:#003B8B;}
|
||||
.st1{fill:#72B154;}
|
||||
.st2{fill:#FDC400;}
|
||||
.st3{fill:none;}
|
||||
.st4{fill:#E64335;}
|
||||
.st5{fill:#9C9B9A;}
|
||||
.st6{fill:#020203;}
|
||||
.st7{fill:#0081C1;}
|
||||
.st8{clip-path:url(#SVGID_2_);}
|
||||
.st9{fill:none;stroke:#003B8B;stroke-width:9;stroke-linecap:round;}
|
||||
.st10{clip-path:url(#SVGID_4_);}
|
||||
.st11{clip-path:url(#SVGID_6_);}
|
||||
.st12{fill:#FFFFFF;}
|
||||
</style>
|
||||
<g>
|
||||
<path class="st3" d="M32.95,71.53c-3.34-2.49-7.11-3.48-11.15-3.45c-4.58,0.04-8.73,1.39-12.22,4.6
|
||||
c-4.08,3.74-4.17,8.97-0.23,12.86c3.49,3.44,7.79,4.62,11.68,4.69c4.81,0,8.58-0.96,11.92-3.46
|
||||
C38.64,82.52,38.64,75.77,32.95,71.53z"/>
|
||||
<path class="st3" d="M50.05,61.82c-1.62-0.03-2.92,1.24-2.96,2.91c-0.04,1.62,1.25,3.01,2.84,3.03c1.61,0.01,2.91-1.31,2.92-2.95
|
||||
C52.87,63.2,51.6,61.86,50.05,61.82z"/>
|
||||
<path class="st3" d="M89.27,71.73c-3.31-2.49-7.05-3.62-11.1-3.64c-4.04-0.02-7.81,0.96-11.15,3.44c-5.7,4.25-5.7,10.98-0.02,15.23
|
||||
c3.31,2.49,7.05,3.46,9.56,3.47c5.5,0.01,9.25-0.94,12.57-3.38C94.9,82.63,94.96,76.03,89.27,71.73z"/>
|
||||
<path class="st7" d="M99.31,77.82c-1.16-4.74-2.28-9.49-3.45-14.2c-3.35-13.31-6.74-26.61-10.09-39.92
|
||||
c-0.71-2.77-2.04-5.05-4.19-6.83c-0.32-0.27-0.59-0.72-0.68-1.14c-0.74-3.27-2.72-5.5-5.54-6.81c-4.58-2.12-9.1-1.88-13.4,0.95
|
||||
c-2.69,1.77-4.94,5.55-3.76,9.67c0.08,0.3,0.09,0.71-0.04,0.96c-1.17,2.13-1.32,4.47-1.22,6.84c0.01,0.42,0,0.85,0,1.39
|
||||
c-4.65-1.81-9.23-1.85-13.88,0.01c0-1.13-0.02-2.12,0-3.13c0.03-1.72-0.38-3.32-1.11-4.85c-0.17-0.35-0.26-0.86-0.16-1.23
|
||||
c1.15-4.08-0.97-7.85-3.69-9.62C33.13,6.7,28.05,6.66,23.05,9.86c-2.04,1.32-3.35,3.28-3.94,5.76c-0.12,0.48-0.42,0.98-0.78,1.29
|
||||
c-2.11,1.78-3.42,4.03-4.11,6.77C9.93,40.69,5.67,57.7,1.29,74.69c-2.11,8.19,1.54,14.55,7.59,18.04
|
||||
c9.17,5.3,18.43,5.07,27.31-0.93c3.71-2.51,6.13-6.13,6.73-10.82c0.22-1.69,0.12-3.44,0.13-5.15c0.01-1.75,0-3.5,0-5.49
|
||||
c1.91,2.32,4.16,3.56,6.88,3.57c2.75,0.02,5.03-1.18,6.91-3.49c0.04,0.36,0.08,0.6,0.08,0.84c0,2.32,0.05,4.65-0.01,6.97
|
||||
c-0.17,5.89,2.38,10.31,6.83,13.57c8.31,6.09,20.19,6.13,28.55,0.15c3.6-2.57,6.12-5.99,6.86-10.64c0.01-0.09,0.1-0.15,0.16-0.23
|
||||
V77.82z M32.95,86.76c-3.34,2.5-7.11,3.46-11.92,3.46c-3.89-0.07-8.19-1.25-11.68-4.69c-3.94-3.88-3.84-9.12,0.23-12.86
|
||||
c3.49-3.21,7.64-4.56,12.22-4.6c4.04-0.04,7.81,0.96,11.15,3.45C38.64,75.77,38.64,82.52,32.95,86.76z M49.94,67.76
|
||||
c-1.59-0.02-2.89-1.4-2.84-3.03c0.04-1.67,1.34-2.94,2.96-2.91c1.55,0.03,2.81,1.38,2.8,2.99C52.84,66.45,51.55,67.77,49.94,67.76z
|
||||
M89.14,86.84c-3.33,2.45-7.08,3.4-12.57,3.38c-2.52-0.01-6.26-0.98-9.56-3.47c-5.68-4.25-5.68-10.98,0.02-15.23
|
||||
c3.34-2.48,7.11-3.46,11.15-3.44c4.05,0.02,7.79,1.15,11.1,3.64C94.96,76.03,94.9,82.63,89.14,86.84z"/>
|
||||
</g>
|
||||
</svg>
|
After Width: | Height: | Size: 2.9 KiB |
63
assets/walkbybrussels/icons_wbb-05.svg
Normal file
|
@ -0,0 +1,63 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- Generator: Adobe Illustrator 24.2.1, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
|
||||
<svg version="1.1" id="Laag_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
|
||||
viewBox="0 0 100 100" style="enable-background:new 0 0 100 100;" xml:space="preserve">
|
||||
<style type="text/css">
|
||||
.st0{fill:#003B8B;}
|
||||
.st1{fill:#72B154;}
|
||||
.st2{fill:#FDC400;}
|
||||
.st3{fill:none;}
|
||||
.st4{fill:#E64335;}
|
||||
.st5{fill:#9C9B9A;}
|
||||
.st6{fill:#020203;}
|
||||
.st7{fill:#0081C1;}
|
||||
.st8{clip-path:url(#SVGID_2_);}
|
||||
.st9{fill:none;stroke:#003B8B;stroke-width:9;stroke-linecap:round;}
|
||||
.st10{clip-path:url(#SVGID_4_);}
|
||||
.st11{clip-path:url(#SVGID_6_);}
|
||||
.st12{fill:#FFFFFF;}
|
||||
</style>
|
||||
<path class="st1" d="M86.8,75.14c0.01,0,0.02,0,0.03-0.01c1.74-0.37,3.27-0.98,4.62-1.78c2.96-1.77,5.01-4.52,6.31-8.04c0,0,0,0,0,0
|
||||
s0.15-0.43,0.29-0.9c0.51-1.75,0.67-2.76,0.67-2.76c0.28-1.71,0.03-3.45-0.18-4.5c-0.01-0.05-0.02-0.11-0.03-0.19
|
||||
c-0.01-0.06-0.02-0.12-0.03-0.19c-0.04-0.19-0.08-0.41-0.12-0.64c-0.02-0.08-0.03-0.15-0.05-0.24c-0.02-0.08-0.04-0.16-0.06-0.25
|
||||
c-0.01-0.03-0.01-0.05-0.02-0.08c-0.02-0.06-0.03-0.12-0.05-0.18c-0.02-0.09-0.05-0.18-0.07-0.27c-0.04-0.14-0.08-0.29-0.12-0.43
|
||||
c0-0.02-0.01-0.03-0.01-0.04c-0.49-1.64-1.36-3.68-3.02-5.6c-0.01-0.01-0.02-0.02-0.03-0.03c-0.12-0.13-0.24-0.26-0.36-0.4
|
||||
c-0.02-0.02-0.04-0.04-0.06-0.06c-0.07-0.08-0.14-0.15-0.21-0.23c-0.02-0.02-0.05-0.05-0.07-0.07c-0.06-0.06-0.12-0.12-0.19-0.18
|
||||
c-0.07-0.07-0.15-0.14-0.22-0.21c-0.06-0.06-0.13-0.12-0.19-0.17c-0.08-0.07-0.15-0.13-0.23-0.2c-0.07-0.06-0.14-0.12-0.2-0.17
|
||||
c-0.08-0.07-0.16-0.13-0.23-0.19c-0.07-0.05-0.14-0.11-0.21-0.16c-0.08-0.06-0.16-0.12-0.24-0.18c-0.07-0.05-0.14-0.1-0.22-0.15
|
||||
c-0.08-0.06-0.17-0.12-0.25-0.17c-0.07-0.05-0.15-0.1-0.22-0.15c-0.09-0.05-0.17-0.11-0.26-0.16c-0.08-0.04-0.15-0.09-0.23-0.14
|
||||
c-0.09-0.05-0.18-0.1-0.27-0.15c-0.08-0.05-0.15-0.09-0.23-0.14c-0.09-0.05-0.19-0.1-0.28-0.15c-0.08-0.04-0.16-0.08-0.24-0.13
|
||||
c-0.09-0.05-0.19-0.09-0.29-0.14c-0.08-0.03-0.16-0.08-0.24-0.11c-0.1-0.04-0.2-0.09-0.3-0.13c-0.08-0.03-0.17-0.07-0.25-0.11
|
||||
c-0.1-0.04-0.21-0.08-0.32-0.13c-0.08-0.03-0.17-0.07-0.25-0.1c-0.11-0.04-0.22-0.07-0.33-0.12c-0.08-0.03-0.16-0.06-0.25-0.08
|
||||
c-0.12-0.04-0.24-0.08-0.36-0.11c-0.08-0.02-0.16-0.05-0.24-0.07c-0.13-0.04-0.27-0.08-0.4-0.11c-0.07-0.02-0.13-0.03-0.2-0.05
|
||||
c-0.2-0.05-0.41-0.1-0.61-0.15c0,0-0.01,0-0.01,0c0.04-0.07,0.09-0.14,0.14-0.2c0.14-0.19,0.27-0.38,0.36-0.58
|
||||
c0.35-0.8,0.71-1.6,1.06-2.41c0.26-0.59,0.5-1.19,0.73-1.79c0,0,0,0,0,0c0.12-0.29,0.26-0.69,0.38-1.19
|
||||
c0.31-1.33,0.19-2.39,0.07-3.3c-0.11-0.87-0.35-2.1-0.91-3.49l-0.1-0.23v0c-0.03-0.06-0.05-0.13-0.08-0.19
|
||||
c-0.17-0.38-0.36-0.75-0.56-1.1c-0.6-1.06-1.32-2.01-2.16-2.84c-0.28-0.28-0.58-0.54-0.88-0.79c-0.52-0.43-1.09-0.82-1.68-1.17
|
||||
c-0.2-0.12-0.41-0.23-0.62-0.35c-0.27-0.14-0.54-0.28-0.82-0.41c-0.21-0.1-0.39-0.18-0.51-0.31c-0.07-0.08-0.13-0.18-0.15-0.31
|
||||
c-0.02-0.08-0.03-0.18-0.02-0.29c0.07-1.55-0.17-2.98-0.71-4.23c-0.19-0.43-0.4-0.83-0.66-1.22c-0.45-0.67-1.01-1.27-1.69-1.8
|
||||
c-0.51-0.4-1.08-0.74-1.72-1.05c-0.22-0.1-0.42-0.21-0.6-0.32c-0.27-0.16-0.51-0.33-0.71-0.51c-0.2-0.18-0.37-0.38-0.52-0.59
|
||||
c-0.39-0.56-0.6-1.24-0.76-2.11c-0.13-0.73-0.33-1.42-0.59-2.08c-0.2-0.5-0.43-0.97-0.7-1.43C71.4,7,70.86,6.3,70.24,5.66
|
||||
c-0.09-0.09-0.19-0.19-0.28-0.28c-0.29-0.28-0.59-0.54-0.9-0.78c-0.42-0.33-0.87-0.63-1.33-0.9c-0.31-0.18-0.63-0.35-0.96-0.51
|
||||
c-0.98-0.46-2.04-0.81-3.13-1.02c-0.37-0.07-0.74-0.12-1.11-0.16c-0.75-0.08-1.52-0.08-2.29-0.02c-0.54,0.04-1.07,0.13-1.6,0.24
|
||||
c-0.35,0.08-0.69,0.17-1.03,0.28c-0.17,0.05-0.33,0.11-0.5,0.18c-0.33,0.13-0.66,0.27-0.97,0.42c-0.95,0.46-1.84,1.05-2.63,1.74
|
||||
c-0.26,0.23-0.52,0.47-0.77,0.72c-1.96,2.01-3.22,4.67-3.32,7.52c-0.01,0.21-0.04,0.37-0.1,0.51c-0.04,0.09-0.1,0.16-0.18,0.23
|
||||
c-0.11,0.1-0.26,0.17-0.47,0.24c-3.15,1.03-5.33,3.32-6.06,6.24c-0.06,0.23-0.11,0.47-0.15,0.71c-0.06,0.36-0.1,0.73-0.11,1.11
|
||||
c-0.01,0.13-0.01,0.25-0.01,0.38s0,0.25,0.01,0.38c0,0.04,0,0.08,0,0.12c0,0.34-0.06,0.58-0.2,0.75c-0.12,0.14-0.3,0.24-0.56,0.28
|
||||
c-0.09,0.02-0.18,0.03-0.28,0.03c-0.02-0.06-0.05-0.12-0.07-0.19c-0.06-0.17-0.12-0.34-0.19-0.5c-0.03-0.06-0.05-0.12-0.07-0.18
|
||||
c-0.83-1.94-1.62-3.9-2.45-5.84c-0.5-1.16-1.02-2.32-1.57-3.46c-0.45-0.91-0.92-1.81-1.42-2.68c-0.38-0.66-0.78-1.3-1.2-1.92
|
||||
c-0.56-0.84-1.17-1.64-1.84-2.4c-0.33-0.38-0.68-0.76-1.04-1.12c-0.54-0.54-1.12-1.06-1.73-1.55c-0.15-0.12-0.3-0.23-0.45-0.34
|
||||
c-0.13-0.1-0.27-0.19-0.41-0.29c-0.67-0.45-1.34-0.81-2.02-1.08c-0.37-0.14-0.73-0.26-1.1-0.35c-0.24-0.06-0.49-0.11-0.74-0.15
|
||||
c-0.37-0.06-0.74-0.08-1.1-0.09c-0.86-0.01-1.72,0.13-2.57,0.41c-1.09,0.36-2.17,0.97-3.22,1.82c-0.97,0.79-1.85,1.64-2.65,2.53
|
||||
c-0.4,0.45-0.78,0.91-1.15,1.38c-0.24,0.31-0.48,0.63-0.71,0.95c-0.11,0.16-0.23,0.32-0.34,0.49c-0.45,0.65-0.86,1.32-1.26,2
|
||||
c-0.9,1.54-1.68,3.14-2.41,4.77c-0.16,0.36-0.33,0.73-0.48,1.09c-0.4,0.92-0.78,1.84-1.16,2.76c-0.01,0.01-0.01,0.02-0.01,0.03
|
||||
C7.52,21.1,7.1,22.11,6.71,23.2c-0.36,0.99-0.65,1.94-0.9,2.83c-0.06,0.13-0.11,0.27-0.15,0.41c-0.76,3.07-1.58,6.14-2.33,9.21
|
||||
c-0.45,1.84-0.88,3.7-1.26,5.55c-0.95,4.62-1.34,9.33-0.24,14.01c0.38,1.64,0.88,3.19,1.5,4.66c0.09,0.21,0.18,0.42,0.27,0.62
|
||||
c0.28,0.62,0.58,1.22,0.9,1.81c0.32,0.59,0.67,1.16,1.04,1.71c0.9,1.35,1.94,2.6,3.12,3.74c0.27,0.26,0.55,0.52,0.84,0.77
|
||||
c1.54,1.34,3.3,2.52,5.3,3.53c0.3,0.15,0.59,0.29,0.89,0.42c0.6,0.26,1.21,0.48,1.84,0.68s1.25,0.36,1.89,0.5
|
||||
c0.69,0.15,1.39,0.26,2.1,0.35v20.3H1.16v4.9h97.56v-4.9H86.8V75.14z M8.39,27.43c0.02-0.07,0.04-0.13,0.05-0.2l0,0
|
||||
C8.43,27.3,8.41,27.37,8.39,27.43z M69.97,57.4c0,0.93-0.06,2.03,0.01,3.12c0.32,5.2,2.46,9.47,6.85,12.55
|
||||
c1.52,1.07,3.22,1.75,5.06,2.07v19.17c-5.99,0-11.95,0-17.97,0V55.66c0.77,0.36,1.53,0.71,2.33,0.96
|
||||
C67.36,56.97,68.53,57.11,69.97,57.4z M39,67.83c3.73-3.64,5.97-8.06,7.05-13.14c4.23,3.17,8.52,3.2,12.98,0.91v38.7H26.41V73.98
|
||||
C31.27,73.32,35.48,71.27,39,67.83z"/>
|
||||
</svg>
|
After Width: | Height: | Size: 5.7 KiB |
40
assets/walkbybrussels/icons_wbb-06.svg
Normal file
|
@ -0,0 +1,40 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- Generator: Adobe Illustrator 24.2.1, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
|
||||
<svg version="1.1" id="Laag_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
|
||||
viewBox="0 0 100 100" style="enable-background:new 0 0 100 100;" xml:space="preserve">
|
||||
<style type="text/css">
|
||||
.st0{fill:#003B8B;}
|
||||
.st1{fill:#72B154;}
|
||||
.st2{fill:#FDC400;}
|
||||
.st3{fill:none;}
|
||||
.st4{fill:#E64335;}
|
||||
.st5{fill:#9C9B9A;}
|
||||
.st6{fill:#020203;}
|
||||
.st7{fill:#0081C1;}
|
||||
.st8{clip-path:url(#SVGID_2_);}
|
||||
.st9{fill:none;stroke:#003B8B;stroke-width:9;stroke-linecap:round;}
|
||||
.st10{clip-path:url(#SVGID_4_);}
|
||||
.st11{clip-path:url(#SVGID_6_);}
|
||||
.st12{fill:#FFFFFF;}
|
||||
</style>
|
||||
<path class="st1" d="M77.22,32.79c2.42-8.74-3.23-17.77-12.07-19.42c-1.33-7.25-7.64-12.75-15.2-12.75c-7.56,0-13.86,5.5-15.2,12.75
|
||||
c-7.17,1.34-12.63,7.71-12.63,15.35c0,1.37,0.19,2.74,0.56,4.08c-7.62,2.43-12.93,9.55-12.93,17.77c0,10.33,8.32,18.73,18.55,18.73
|
||||
c3.69,0,7.2-1.15,10.29-3.33c1.96,1.24,4.09,2.04,6.28,2.59v29.93h4.4v0h5.73v0V68.55c2.19-0.55,4.33-1.34,6.29-2.59
|
||||
c3.09,2.19,6.61,3.33,10.29,3.33c10.23,0,18.55-8.4,18.55-18.73C90.15,42.36,84.85,35.23,77.22,32.79z M59.23,16.22
|
||||
c0,1.73,1.39,3.12,3.09,3.12c7.02,0,11.72,7.74,7.93,14.14c-0.88,1.48-0.38,3.28,0.89,4.17c-1.27-0.89-1.77-2.69-0.89-4.17
|
||||
c3.79-6.41-0.91-14.14-7.93-14.14C60.61,19.35,59.22,17.95,59.23,16.22c-0.01-5.16-4.16-9.36-9.28-9.36c0,0,0,0,0,0
|
||||
C55.07,6.86,59.23,11.06,59.23,16.22z M41.58,26.5c-1.21,1.22-1.21,3.2,0,4.42l1.58,1.6l-1.59-1.6
|
||||
C40.37,29.7,40.37,27.72,41.58,26.5c1.2-1.22,3.16-1.22,4.37,0l0,0C44.74,25.29,42.79,25.29,41.58,26.5z M60.14,39l-5.12,5.17v-0.01
|
||||
L60.14,39c0.9-0.92,2.23-1.14,3.35-0.69C62.37,37.86,61.04,38.08,60.14,39z M53.95,26.51l-4,4.04l-0.01-0.01L53.95,26.51
|
||||
c0.9-0.92,2.23-1.14,3.34-0.69C56.18,25.37,54.85,25.6,53.95,26.51z M44.88,44.15L44.88,44.15l-5.11-5.16
|
||||
c-1.21-1.22-3.17-1.22-4.37,0c-0.91,0.91-1.13,2.25-0.68,3.38c-0.46-1.13-0.23-2.47,0.68-3.38c1.21-1.22,3.16-1.22,4.37,0
|
||||
L44.88,44.15z M44.88,52.97L44.88,52.97l-6.57-6.62L44.88,52.97z M44.73,61.99c-0.41-0.15-0.83-0.23-1.23-0.42
|
||||
C43.9,61.75,44.32,61.83,44.73,61.99z M46.85,41.05v-4.81l0.01,0.01L46.85,41.05L46.85,41.05z M37.58,19.34
|
||||
c0.85,0,1.62-0.35,2.18-0.91C39.21,19,38.43,19.35,37.58,19.34c-1.28,0-2.5,0.27-3.61,0.74C35.08,19.61,36.3,19.34,37.58,19.34z
|
||||
M28.31,63.04C28.31,63.04,28.31,63.04,28.31,63.04c3.71,0,6.45-1.79,8.11-3.3c0.36-0.33,0.78-0.52,1.22-0.64
|
||||
c-0.44,0.13-0.86,0.32-1.22,0.64C34.77,61.25,32.02,63.04,28.31,63.04z M59.5,59.63c-1.38,1.1-2.91,1.85-4.48,2.42v-0.01
|
||||
c1.57-0.57,3.1-1.32,4.47-2.42c1.02-0.82,2.39-0.85,3.48-0.2C61.88,58.79,60.52,58.81,59.5,59.63z M71.6,63.05
|
||||
c-1.85,0-3.47-0.45-4.83-1.09C68.13,62.6,69.74,63.05,71.6,63.05c6.81,0,12.36-5.6,12.36-12.49c0-6.5-4.87-11.81-11.32-12.37
|
||||
c-0.22-0.02-0.37-0.15-0.57-0.21c0.2,0.06,0.36,0.19,0.57,0.21c6.46,0.55,11.32,5.87,11.32,12.36
|
||||
C83.96,57.45,78.42,63.05,71.6,63.05z"/>
|
||||
</svg>
|
After Width: | Height: | Size: 2.9 KiB |
46
assets/walkbybrussels/icons_wbb-07.svg
Normal file
|
@ -0,0 +1,46 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- Generator: Adobe Illustrator 24.2.1, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
|
||||
<svg version="1.1" id="Laag_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
|
||||
viewBox="0 0 100 100" style="enable-background:new 0 0 100 100;" xml:space="preserve">
|
||||
<style type="text/css">
|
||||
.st0{fill:#003B8B;}
|
||||
.st1{fill:#72B154;}
|
||||
.st2{fill:#FDC400;}
|
||||
.st3{fill:none;}
|
||||
.st4{fill:#E64335;}
|
||||
.st5{fill:#9C9B9A;}
|
||||
.st6{fill:#020203;}
|
||||
.st7{fill:#0081C1;}
|
||||
.st8{clip-path:url(#SVGID_2_);}
|
||||
.st9{fill:none;stroke:#003B8B;stroke-width:9;stroke-linecap:round;}
|
||||
.st10{clip-path:url(#SVGID_4_);}
|
||||
.st11{clip-path:url(#SVGID_6_);}
|
||||
.st12{fill:#FFFFFF;}
|
||||
</style>
|
||||
<g>
|
||||
<path class="st0" d="M39.12,91.59c1.19-1.21,2.14-2.6,2.82-4.12c0.32-0.8,0.56-1.63,0.69-2.51c-0.78-0.07-1.56-0.15-2.32-0.24
|
||||
c-5.44-0.59-10.78-1.79-15.92-3.56c-6.62-2.2-12.28-5.09-16.59-8.17c4.87,9.2,12.6,16.56,22.03,20.97c0.02,0,0.04,0,0.07,0.01
|
||||
c0.02,0,0.05,0,0.07,0.01C33.2,94.38,36.47,93.53,39.12,91.59C39.12,91.59,39.12,91.59,39.12,91.59z"/>
|
||||
<path class="st0" d="M11.36,23.64c0.02,3.82,7.1,11.91,13.94,19.75c10.48,11.99,22.36,25.6,22.36,36.95
|
||||
c0.01,0.14,0.02,0.26,0.03,0.4c2.98,0.1,5.97,0.02,8.95-0.25C56.11,34.35,52.97,24.9,41.15,4.33c-0.05-0.09-0.09-0.17-0.13-0.26
|
||||
c-11.98,2.3-22.62,9.1-29.73,19.01c0.04,0.18,0.07,0.36,0.07,0.54C11.36,23.63,11.36,23.64,11.36,23.64z"/>
|
||||
<path class="st0" d="M88.65,23.17c0.79,9.29-3.05,18.48-6.79,27.46c-3.93,7.87-6.29,16.42-6.97,25.18c0,0.05,0,0.1,0,0.15
|
||||
c7.36-3.19,14.09-7.87,19.71-13.84c0.72-0.78,1.42-1.58,2.1-2.4C99.18,46.95,96.27,33.73,88.65,23.17z"/>
|
||||
<path class="st0" d="M12.01,70.35c0.05,0.03,0.1,0.07,0.16,0.1c7.44,4.72,18.65,8.83,30.95,9.98v-0.1
|
||||
c0-9.66-11.78-23.14-21.24-33.96c-3.04-3.13-5.86-6.46-8.45-9.98c-2.39-3.02-4.27-5.75-5.41-8.2c-1.41,2.59-2.56,5.29-3.46,8.05
|
||||
c-0.03,0.1-0.06,0.19-0.09,0.28c-0.06,0.18-0.11,0.36-0.16,0.53c-0.07,0.22-0.13,0.43-0.2,0.65c-0.02,0.09-0.05,0.18-0.07,0.26
|
||||
c-0.09,0.31-0.17,0.63-0.25,0.94c0,0.01,0,0.03-0.01,0.05c-0.98,3.79-1.49,7.76-1.49,11.86c0,0.18,0,0.36,0.01,0.53
|
||||
c0,0.16,0,0.33,0,0.49c0.09,3.68,0.61,7.37,1.57,10.98c0.12,0.12,0.23,0.25,0.33,0.4c1.47,2.31,4.12,4.73,7.65,7.02
|
||||
C11.9,70.29,11.96,70.31,12.01,70.35z"/>
|
||||
<path class="st0" d="M70.34,76.33c0-0.17-0.01-0.35-0.01-0.53c0.64-9.37,3.13-18.52,7.32-26.93c4.84-11.59,9.39-22.53,4.31-33.17
|
||||
C73.51,7.92,62.52,3.5,51.06,3.22C50.68,3.21,50.3,3.2,49.92,3.2c0,0,0,0,0,0c-1.36,0-2.71,0.09-4.07,0.21
|
||||
c12.1,21.31,14.86,32.77,15.33,76.49c3.13-0.5,6.21-1.25,9.22-2.23C70.37,77.24,70.35,76.79,70.34,76.33z"/>
|
||||
<path class="st0" d="M56.69,85.18c-3.08,0.27-6.19,0.33-9.32,0.15c-0.21,1.08-0.52,2.13-0.92,3.15c-0.88,2.47-2.35,4.7-4.31,6.48
|
||||
c-0.03,0.03-0.06,0.06-0.09,0.09c-0.02,0.01-0.03,0.02-0.05,0.04c-0.99,0.82-2.1,1.49-3.28,2c3.67,0.91,7.44,1.38,11.21,1.39
|
||||
c2.28-0.02,4.56-0.2,6.81-0.54c0-0.05,0-0.11,0-0.17c0-4.2-0.01-8.17-0.04-11.9C56.69,85.64,56.69,85.41,56.69,85.18z"/>
|
||||
<path class="st0" d="M75.73,81.51c0.31,0.89,0.69,1.62,1.1,2.26c0.99,1.43,2.41,2.55,4.11,3.15c5.65-4.85,10.08-10.95,12.96-17.81
|
||||
c-5.47,4.87-11.7,8.74-18.38,11.48C75.56,80.91,75.64,81.22,75.73,81.51z"/>
|
||||
<path class="st0" d="M72.37,85.09c-0.25-0.45-0.47-0.92-0.66-1.4c-0.19-0.47-0.36-0.96-0.52-1.49c-3.24,1.07-6.57,1.88-9.96,2.43
|
||||
c0.03,3.9,0.04,8.03,0.05,12.44c5.62-1.37,10.94-3.75,15.7-7.04C75.37,89.05,73.65,87.5,72.37,85.09z"/>
|
||||
</g>
|
||||
</svg>
|
After Width: | Height: | Size: 3.3 KiB |
30
assets/walkbybrussels/icons_wbb-08.svg
Normal file
|
@ -0,0 +1,30 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- Generator: Adobe Illustrator 24.2.1, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
|
||||
<svg version="1.1" id="Laag_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
|
||||
viewBox="0 0 100 100" style="enable-background:new 0 0 100 100;" xml:space="preserve">
|
||||
<style type="text/css">
|
||||
.st0{fill:#003B8B;}
|
||||
.st1{fill:#72B154;}
|
||||
.st2{fill:#FDC400;}
|
||||
.st3{fill:none;}
|
||||
.st4{fill:#E64335;}
|
||||
.st5{fill:#9C9B9A;}
|
||||
.st6{fill:#020203;}
|
||||
.st7{fill:#0081C1;}
|
||||
.st8{clip-path:url(#SVGID_2_);}
|
||||
.st9{fill:none;stroke:#003B8B;stroke-width:9;stroke-linecap:round;}
|
||||
.st10{clip-path:url(#SVGID_4_);}
|
||||
.st11{clip-path:url(#SVGID_6_);}
|
||||
.st12{fill:#FFFFFF;}
|
||||
</style>
|
||||
<path class="st0" d="M82.32,63.43c-0.12-3.75-1.24-7.25-2.56-10.7c-2.67-6.96-6.26-13.44-10.19-19.72
|
||||
c-5.29-8.43-10.79-16.72-16.18-25.09c-0.66-1.03-1.39-1.97-2.5-2.5c-0.53,0-1.05,0-1.58,0c-1.15,0.43-1.92,1.27-2.54,2.33
|
||||
c-0.73,1.25-1.54,2.46-2.34,3.67c-6.27,9.38-12.57,18.74-18.05,28.63c-2.8,5.05-5.37,10.23-7.16,15.77
|
||||
c-0.9,2.78-1.57,5.61-1.54,8.56c0.04,5.18,1.21,10.08,3.52,14.7c3.12,6.22,7.73,10.95,13.77,14.19c6.18,3.31,12.75,4.47,19.69,3.46
|
||||
c4.97-0.73,9.52-2.55,13.63-5.47c5.98-4.25,10.19-9.92,12.5-17C81.91,70.73,82.44,67.12,82.32,63.43z M49.73,14.85
|
||||
c0.06-0.1,0.14-0.18,0.31-0.4c0,0.01,0.01,0.01,0.01,0.02c-0.16,0.2-0.24,0.29-0.3,0.38c-3.67,5.75-7.37,11.47-11.03,17.23
|
||||
C42.39,26.33,46.07,20.6,49.73,14.85z M34.56,85.37c-5.13-3.8-8.33-8.9-9.83-15.16c-1.08-4.56-0.81-9.02,0.78-13.42
|
||||
c2.2-6.1,5.13-11.82,8.52-17.28c1.02-1.64,2.07-3.27,3.11-4.91c-1.03,1.63-2.07,3.27-3.09,4.91c-3.4,5.46-6.32,11.19-8.52,17.28
|
||||
c-1.59,4.41-1.86,8.87-0.78,13.42c1.5,6.26,4.7,11.37,9.83,15.17c4.39,3.25,9.23,4.97,14.54,5.14
|
||||
C43.8,90.34,38.96,88.63,34.56,85.37z"/>
|
||||
</svg>
|
After Width: | Height: | Size: 1.8 KiB |
31
assets/walkbybrussels/icons_wbb-09.svg
Normal file
|
@ -0,0 +1,31 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- Generator: Adobe Illustrator 24.2.1, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
|
||||
<svg version="1.1" id="Laag_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
|
||||
viewBox="0 0 100 100" style="enable-background:new 0 0 100 100;" xml:space="preserve">
|
||||
<style type="text/css">
|
||||
.st0{fill:#003B8B;}
|
||||
.st1{fill:#72B154;}
|
||||
.st2{fill:#FDC400;}
|
||||
.st3{fill:none;}
|
||||
.st4{fill:#E64335;}
|
||||
.st5{fill:#9C9B9A;}
|
||||
.st6{fill:#020203;}
|
||||
.st7{fill:#0081C1;}
|
||||
.st8{clip-path:url(#SVGID_2_);}
|
||||
.st9{fill:none;stroke:#003B8B;stroke-width:9;stroke-linecap:round;}
|
||||
.st10{clip-path:url(#SVGID_4_);}
|
||||
.st11{clip-path:url(#SVGID_6_);}
|
||||
.st12{fill:#FFFFFF;}
|
||||
</style>
|
||||
<g>
|
||||
<rect x="1.09" y="60.2" class="st0" width="97.83" height="11"/>
|
||||
<rect x="9.19" y="28.95" class="st0" width="79.83" height="11"/>
|
||||
<rect x="9.33" y="14.97" class="st0" width="79.83" height="11"/>
|
||||
<path class="st0" d="M93.81,51.37c-29.59-0.01-59.17-0.01-88.76-0.02c-0.94,2.09-1.87,4.17-2.8,6.25c31.73,0,63.46,0,95.2,0
|
||||
C96.24,55.53,95.02,53.45,93.81,51.37z"/>
|
||||
<path class="st0" d="M8.91,42.94c-0.95,2.07-1.89,4.14-2.83,6.21c28.79-0.05,57.58-0.1,86.36-0.16c-1.16-2-2.32-4.01-3.47-6.01
|
||||
C62.28,42.97,35.59,42.95,8.91,42.94z"/>
|
||||
<rect x="10.06" y="73.22" class="st0" width="5.52" height="21.23"/>
|
||||
<rect x="81.95" y="73.22" class="st0" width="5.52" height="21.23"/>
|
||||
</g>
|
||||
</svg>
|
After Width: | Height: | Size: 1.4 KiB |
85
assets/walkbybrussels/icons_wbb-10.svg
Normal file
|
@ -0,0 +1,85 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- Generator: Adobe Illustrator 24.2.1, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
|
||||
<svg version="1.1" id="Laag_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
|
||||
viewBox="0 0 100 100" style="enable-background:new 0 0 100 100;" xml:space="preserve">
|
||||
<style type="text/css">
|
||||
.st0{fill:#003B8B;}
|
||||
.st1{fill:#72B154;}
|
||||
.st2{fill:#FDC400;}
|
||||
.st3{fill:none;}
|
||||
.st4{fill:#E64335;}
|
||||
.st5{fill:#9C9B9A;}
|
||||
.st6{fill:#020203;}
|
||||
.st7{fill:#0081C1;}
|
||||
.st8{clip-path:url(#SVGID_2_);}
|
||||
.st9{fill:none;stroke:#003B8B;stroke-width:9;stroke-linecap:round;}
|
||||
.st10{clip-path:url(#SVGID_4_);}
|
||||
.st11{clip-path:url(#SVGID_6_);}
|
||||
.st12{fill:#FFFFFF;}
|
||||
</style>
|
||||
<g>
|
||||
<defs>
|
||||
<rect id="SVGID_1_" x="14.46" y="-2.46" width="75.68" height="107.61"/>
|
||||
</defs>
|
||||
<clipPath id="SVGID_2_">
|
||||
<use xlink:href="#SVGID_1_" style="overflow:visible;"/>
|
||||
</clipPath>
|
||||
<g class="st8">
|
||||
<path class="st0" d="M16.13,96.56c-0.13-0.06-0.05-0.14-0.03-0.22c0.5-2.47,0.99-4.95,1.49-7.42c0.71-3.5,1.41-7.01,2.12-10.52
|
||||
c0.64-3.17,1.29-6.34,1.93-9.51c0.7-3.47,1.4-6.95,2.1-10.42c0.66-3.29,1.33-6.58,1.99-9.87c0.66-3.28,1.32-6.56,1.98-9.84
|
||||
c0.66-3.28,1.32-6.56,1.98-9.84c0.49-2.42,0.99-4.84,1.46-7.26c0.04-0.21,0.09-0.24,0.28-0.17c2.75,1.07,5.49,2.13,8.24,3.19
|
||||
c0.05,0.02,0.1,0.04,0.13,0.12c-0.71,0.25-1.43,0.49-2.14,0.73c-2.32,0.8-4.63,1.59-6.95,2.38c-0.22,0.07-0.27,0.15-0.19,0.39
|
||||
c0.19,0.57,0.36,1.15,0.52,1.73c0.06,0.24,0.14,0.3,0.38,0.2c2.48-0.98,4.97-1.96,7.46-2.93c1.16-0.45,2.31-0.91,3.47-1.35
|
||||
c0.19-0.07,0.26-0.16,0.25-0.38c-0.02-0.54-0.02-1.08,0-1.62c0.01-0.21-0.08-0.31-0.25-0.38c-2.34-0.98-4.69-1.95-7.03-2.93
|
||||
c-1.14-0.47-2.28-0.95-3.41-1.42c-0.17-0.07-0.24-0.13-0.19-0.36c0.12-0.5,0.2-1.01,0.28-1.52c0.03-0.22,0.13-0.29,0.35-0.29
|
||||
c3.29,0.04,6.57,0.06,9.86,0.1c0.32,0,0.4-0.08,0.4-0.42c-0.02-1.55,0.02-3.11-0.04-4.67c-0.04-1.16-0.46-2.17-1.39-2.87
|
||||
c-1.28-0.96-3.6-0.78-4.36,1.02c-0.11,0.25-0.17,0.52-0.26,0.78c-0.09-0.13-0.08-0.28-0.13-0.42C36.1,9.58,35.38,9.1,34.45,8.9
|
||||
c-0.09-0.02-0.19-0.03-0.28-0.05c-0.42-0.08-0.42-0.08-0.33-0.54c0.25-1.23,0.49-2.45,0.72-3.68c0.04-0.23,0.09-0.3,0.34-0.25
|
||||
c1.85,0.43,3.7,0.83,5.54,1.24c2.92,0.65,5.84,1.3,8.77,1.96c2.2,0.49,4.39,0.99,6.59,1.48c3.23,0.72,6.46,1.44,9.68,2.17
|
||||
c1.6,0.36,3.21,0.72,4.81,1.07c0.24,0.05,0.25,0.21,0.24,0.4c-0.04,3.89-0.08,7.78-0.12,11.67c0,0.08,0.01,0.16,0,0.23
|
||||
c-0.02,0.18,0.06,0.22,0.22,0.22c0.59-0.01,1.18-0.01,1.76,0c0.19,0,0.23-0.07,0.23-0.25c-0.01-0.52,0-1.04,0-1.56
|
||||
c0.02-3.27,0.05-6.54,0.07-9.81c0-0.25,0.03-0.38,0.31-0.31c0.99,0.23,1.98,0.45,2.97,0.66c0.23,0.05,0.31,0.14,0.31,0.41
|
||||
c-0.05,3.48-0.08,6.96-0.14,10.44c-0.01,0.36,0.1,0.43,0.41,0.42c1.32-0.02,2.65,0,3.97-0.01c0.95-0.01,1.85-0.23,2.62-0.86
|
||||
c1.51-1.23,1.51-3.89-0.01-5.01c-0.33-0.25-0.72-0.38-1.12-0.48c1.37-0.4,1.93-1.42,2.01-2.81c0.02-0.25,0.1-0.27,0.29-0.23
|
||||
c1.35,0.31,2.7,0.62,4.04,0.92c0.18,0.04,0.25,0.08,0.21,0.32c-0.49,2.36-0.95,4.73-1.43,7.09c-0.66,3.28-1.32,6.56-1.98,9.84
|
||||
c-0.62,3.07-1.23,6.15-1.85,9.23c-0.66,3.29-1.33,6.58-1.99,9.86c-0.75,3.73-1.51,7.46-2.26,11.19
|
||||
c-0.89,4.44-1.77,8.88-2.67,13.33c-0.85,4.22-1.71,8.45-2.56,12.67c-0.43,2.14-0.85,4.28-1.28,6.42
|
||||
c-0.02,0.09-0.05,0.17-0.07,0.26c-0.05,0-0.11,0-0.16,0c-18.62,0-37.24,0-55.85,0C16.36,96.55,16.24,96.56,16.13,96.56z
|
||||
M33.38,40.48c0.13-0.04,0.18-0.06,0.24-0.07c0.96-0.1,1.92-0.19,2.88-0.29c0.99-0.1,1.98-0.2,2.97-0.3c1-0.1,2-0.21,3-0.3
|
||||
c0.38-0.04,0.39-0.04,0.35-0.43c-0.06-0.56-0.13-1.11-0.17-1.67c-0.02-0.21-0.07-0.27-0.27-0.24c-1.24,0.2-2.48,0.38-3.73,0.57
|
||||
c-1.51,0.23-3.02,0.47-4.53,0.71c-1.08,0.17-2.17,0.35-3.26,0.51c-0.17,0.02-0.2,0.09-0.2,0.25c0.01,0.62,0.02,1.24,0,1.85
|
||||
c-0.01,0.25,0.09,0.31,0.28,0.38c3,1.09,6,2.19,8.99,3.29c0.09,0.03,0.2,0.03,0.26,0.17c-1.23,0.39-2.43,0.78-3.64,1.17
|
||||
c-1.89,0.6-3.78,1.2-5.67,1.81c-0.14,0.04-0.22,0.11-0.22,0.3c0.01,0.64,0.01,1.28,0,1.92c0,0.17,0.05,0.24,0.2,0.25
|
||||
c0.34,0.05,0.68,0.11,1.02,0.17c3.5,0.66,7,1.31,10.49,1.97c0.2,0.04,0.25-0.02,0.27-0.23c0.03-0.5,0.09-0.99,0.15-1.48
|
||||
c0.06-0.47,0.06-0.48-0.4-0.54c-1.18-0.16-2.37-0.32-3.55-0.48c-1.39-0.19-2.78-0.38-4.17-0.58c-0.41-0.05-0.82-0.12-1.23-0.17
|
||||
c0.15-0.11,0.29-0.17,0.44-0.21c2.81-0.89,5.62-1.77,8.43-2.65c0.2-0.06,0.28-0.15,0.27-0.39c-0.02-0.59-0.02-1.17,0-1.75
|
||||
c0.01-0.28-0.09-0.38-0.33-0.46c-1.15-0.39-2.31-0.8-3.45-1.19C37.03,41.75,35.25,41.13,33.38,40.48z M55.45,12.01
|
||||
c-0.82,0-1.53,0.19-2.22,0.6c-2.05,1.23-2.05,4.06-0.87,5.4c0.54,0.61,1.25,0.95,1.96,1.28c0.52,0.24,1.05,0.44,1.51,0.81
|
||||
c0.48,0.38,0.74,0.88,0.63,1.52c-0.17,1.04-0.96,1.63-2.01,1.55c-0.64-0.04-1.21-0.33-1.75-0.68c-0.23-0.15-0.3-0.09-0.4,0.13
|
||||
c-0.18,0.4-0.36,0.8-0.57,1.17c-0.14,0.26-0.06,0.36,0.15,0.47c0.89,0.48,1.83,0.77,2.83,0.78c1.08,0.02,2.06-0.28,2.9-1.04
|
||||
c1.49-1.35,1.77-4.34-0.46-5.69c-0.37-0.22-0.76-0.43-1.15-0.61c-0.55-0.27-1.12-0.49-1.6-0.9c-1-0.85-0.79-2.27,0.4-2.77
|
||||
c0.46-0.2,0.94-0.21,1.42-0.13c0.57,0.1,1.07,0.38,1.56,0.67c0.14,0.08,0.22,0.11,0.32-0.08c0.22-0.43,0.47-0.85,0.71-1.28
|
||||
c0.07-0.12,0.09-0.2-0.06-0.28C57.75,12.39,56.7,11.99,55.45,12.01z M63.29,19.52c-0.03,0-0.06,0-0.09,0c0,1.67,0,3.33,0,5.01
|
||||
c0,0.23,0.05,0.3,0.28,0.3c0.56-0.02,1.11-0.01,1.67,0c0.19,0,0.25-0.05,0.25-0.26c0-0.85,0.02-1.7,0.03-2.56
|
||||
c0.02-2.47,0.05-4.95,0.05-7.42c0-0.31,0.09-0.38,0.38-0.38c0.89,0.02,1.79,0,2.68,0.01c0.2,0,0.27-0.06,0.27-0.28
|
||||
c-0.02-0.47-0.01-0.95,0-1.42c0.01-0.21-0.05-0.28-0.26-0.28c-2.77,0.01-5.54,0.01-8.32,0c-0.21,0-0.27,0.08-0.26,0.29
|
||||
c0.01,0.47,0.01,0.95-0.01,1.42c-0.01,0.23,0.07,0.28,0.27,0.27c0.93-0.01,1.85,0,2.77-0.01c0.25,0,0.31,0.08,0.31,0.34
|
||||
C63.29,16.21,63.29,17.86,63.29,19.52z M36.6,34.3c1.88,0.02,3.75,0.04,5.63,0.07c0.08,0,0.22-0.02,0.31-0.13
|
||||
c0.08-0.1,0.06-0.23,0.06-0.31c-0.03-0.41-0.02-1.19,0-1.51c0-0.05,0.02-0.18-0.05-0.26c-0.05-0.04-0.12-0.07-0.24-0.06
|
||||
c-0.99,0.01-1.97,0-2.96-0.01c-2.78-0.04-5.56-0.06-8.35-0.11c-0.28,0-0.35,0.08-0.34,0.37c0.02,0.56,0.02,1.13,0,1.69
|
||||
c0,0.2,0.05,0.26,0.24,0.26C32.8,34.29,34.7,34.3,36.6,34.3z"/>
|
||||
<path class="st0" d="M39.17,14.78c-0.51,0-1.03,0-1.54,0c-0.12,0-0.23-0.01-0.22-0.19c0.01-0.74-0.05-1.5,0.13-2.24
|
||||
c0.17-0.7,0.54-1.23,1.25-1.37c0.66-0.13,1.28-0.06,1.73,0.56c0.28,0.39,0.39,0.85,0.41,1.33c0.03,0.57,0,1.15,0.01,1.72
|
||||
c0,0.18-0.06,0.22-0.22,0.22c-0.51-0.01-1.03,0-1.54,0C39.17,14.8,39.17,14.79,39.17,14.78z"/>
|
||||
<path class="st0" d="M78.43,21.22c0-0.54,0-1.08,0-1.62c0-0.11-0.02-0.23,0.15-0.23c0.77,0.02,1.55-0.09,2.31,0.16
|
||||
c0.64,0.21,1.06,0.66,1.17,1.37c0.09,0.63,0,1.21-0.5,1.66c-0.34,0.3-0.75,0.45-1.18,0.47c-0.59,0.02-1.18,0-1.76,0.02
|
||||
c-0.2,0-0.25-0.07-0.24-0.26c0.01-0.52,0-1.04,0-1.56C78.39,21.22,78.41,21.22,78.43,21.22z"/>
|
||||
<path class="st0" d="M78.47,15.87c0-0.48,0.01-0.97,0-1.45c0-0.23,0.05-0.27,0.27-0.21c0.89,0.21,1.77,0.41,2.67,0.57
|
||||
c0.39,0.07,0.5,0.32,0.54,0.65c0.14,1.11-0.44,1.91-1.48,2.11c-0.61,0.12-1.24,0.04-1.85,0.07c-0.18,0.01-0.17-0.1-0.17-0.23
|
||||
c0-0.5,0-0.99,0-1.49C78.45,15.87,78.46,15.87,78.47,15.87z"/>
|
||||
<path class="st0" d="M34.16,14.74c-0.46,0-0.92,0-1.38,0c-0.17,0-0.24-0.03-0.19-0.24c0.21-1.02,0.41-2.04,0.61-3.06
|
||||
c0.04-0.2,0.14-0.3,0.33-0.34c1.12-0.29,2.03,0.42,2.19,1.68c0.07,0.58,0.03,1.16,0.06,1.75c0.01,0.18-0.07,0.22-0.22,0.22
|
||||
C35.08,14.73,34.62,14.74,34.16,14.74z"/>
|
||||
</g>
|
||||
</g>
|
||||
</svg>
|
After Width: | Height: | Size: 7.1 KiB |
22
assets/walkbybrussels/icons_wbb-11.svg
Normal file
|
@ -0,0 +1,22 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- Generator: Adobe Illustrator 24.2.1, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
|
||||
<svg version="1.1" id="Laag_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
|
||||
viewBox="0 0 100 100" style="enable-background:new 0 0 100 100;" xml:space="preserve">
|
||||
<style type="text/css">
|
||||
.st0{fill:#003B8B;}
|
||||
.st1{fill:#72B154;}
|
||||
.st2{fill:#FDC400;}
|
||||
.st3{fill:none;}
|
||||
.st4{fill:#E64335;}
|
||||
.st5{fill:#9C9B9A;}
|
||||
.st6{fill:#020203;}
|
||||
.st7{fill:#0081C1;}
|
||||
.st8{clip-path:url(#SVGID_2_);}
|
||||
.st9{fill:none;stroke:#003B8B;stroke-width:9;stroke-linecap:round;}
|
||||
.st10{clip-path:url(#SVGID_4_);}
|
||||
.st11{clip-path:url(#SVGID_6_);}
|
||||
.st12{fill:#FFFFFF;}
|
||||
</style>
|
||||
<line class="st9" x1="15.53" y1="16.12" x2="86.49" y2="87.07"/>
|
||||
<line class="st9" x1="15.38" y1="86.63" x2="86.34" y2="15.68"/>
|
||||
</svg>
|
After Width: | Height: | Size: 873 B |