import {LayerDefinition} from "../LayerDefinition"; import {QuestionDefinition} from "../Logic/Question"; import {TagMappingOptions} from "../UI/TagMapping"; import {CommonTagMappings} from "./CommonTagMappings"; import L from "leaflet" import {Regex} from "../Logic/TagsFilter"; export class GrbToFix extends LayerDefinition { constructor() { super(); this.name = "grb"; this.newElementTags = undefined; this.icon = "./assets/star.svg"; this.overpassFilter = new Regex("fixme","GRB"); this.minzoom = 13; this.questions = [ QuestionDefinition.GrbNoNumberQuestion(), QuestionDefinition.GrbHouseNumberQuestion() ]; this.style = function (tags) { return { icon: new L.icon({ iconUrl: "assets/star.svg", iconSize: [40, 40], text: "hi" }) }; } this.elementsToShow = [ new TagMappingOptions( { key: "fixme", template: "

Fixme

{fixme}", }), new TagMappingOptions({ key: "addr:street", template: "Straat: {addr:street}", missing: "Geen straat bekend" }), new TagMappingOptions({ key: "addr:housenumber", template: "Nummer: {addr:housenumber}", missing: "Geen huisnummer bekend" }), CommonTagMappings.osmLink ]; } }