mapcomplete/Customizations/Layers/BikeShop.ts

33 lines
950 B
TypeScript
Raw Normal View History

2020-07-20 16:32:35 +02:00
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()
}
}