New icons

This commit is contained in:
Pieter Vander Vennet 2020-07-20 16:32:35 +02:00
parent 7d25088981
commit 360c653553
9 changed files with 179 additions and 5 deletions

View file

@ -10,7 +10,7 @@ import {ImageCarouselWithUploadConstructor} from "../../UI/Image/ImageCarouselWi
export default class BikeParkings extends LayerDefinition {
constructor() {
super();
this.name = "bike_parking";
this.name = "bike parking";
this.icon = "./assets/bike/parking.svg";
this.overpassFilter = new Tag("amenity", "bicycle_parking");
this.newElementTags = [

View file

@ -0,0 +1,33 @@
import {TagRenderingOptions} from "../TagRendering";
import {LayerDefinition} from "../LayerDefinition";
import {Tag} from "../../Logic/TagsFilter";
export class BikeShop extends LayerDefinition{
constructor() {
super(
{
name: "bike shop or repair",
icon: "assets/bike/repair_shop.svg",
minzoom: 14,
overpassFilter: new Tag("shop","bicycle"),
newElementTags: [new Tag("shop","bicycle")]
}
);
this.title = new TagRenderingOptions({
mappings:[
{k:new Tag("service:bicycle:retail","yes"), txt: "Bicycle shop"},
{k:new Tag("service:bicycle:retail","no"), txt: "Bicycle repair"},
{k:new Tag("service:bicycle:retail",""), txt: "Bicycle repair/shop"},
]
})
this.style()
}
}

View file

@ -82,7 +82,6 @@ export default class BikeStations extends LayerDefinition {
iconUrl: iconUrl,
iconSize: [50, 50],
iconAnchor: [25,50]
})
};
};

View file

@ -10,7 +10,7 @@ export class DrinkingWater extends LayerDefinition {
constructor() {
super();
this.name = "drinking_water";
this.name = "drinking water";
this.icon = "./assets/bike/drinking_water.svg";
this.overpassFilter = new Or([

View file

@ -3,6 +3,7 @@ import BikeParkings from "../Layers/BikeParkings";
import BikeServices from "../Layers/BikeStations";
import {GhostBike} from "../Layers/GhostBike";
import {DrinkingWater} from "../Layers/DrinkingWater";
import {BikeShop} from "../Layers/BikeShop";
export default class Cyclofix extends Layout {
@ -10,7 +11,7 @@ export default class Cyclofix extends Layout {
super(
"pomp",
"Cyclofix bicycle infrastructure",
[ new BikeServices(), new BikeParkings(), new DrinkingWater()],
[new BikeServices(), new BikeShop(), new DrinkingWater(), new BikeParkings()],
16,
50.8465573,
4.3516970,

View file

@ -6,7 +6,7 @@ export default class BikeStationPumpTools extends TagRenderingOptions {
constructor() {
super({
priority: 15,
question: "Which services are available at this bike station?",
question: "Which services are available here?",
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."},