Merge master
This commit is contained in:
commit
da7d1287f0
2 changed files with 53 additions and 65 deletions
|
@ -7,10 +7,9 @@ import CountryCoder from "latlon2country"
|
|||
import {UIEventSource} from "./UIEventSource";
|
||||
|
||||
class SimpleMetaTagger {
|
||||
private _f: (feature: any, index: number) => void;
|
||||
public readonly keys: string[];
|
||||
public readonly doc: string;
|
||||
|
||||
private _f: (feature: any, index: number) => void;
|
||||
|
||||
constructor(keys: string[], doc: string, f: ((feature: any, index: number) => void)) {
|
||||
this.keys = keys;
|
||||
|
@ -122,7 +121,7 @@ export default class MetaTagging {
|
|||
}
|
||||
updateTags();
|
||||
} catch (e) {
|
||||
console.error(e);
|
||||
console.error("Error while parsing opening hours of ", tags.id, e);
|
||||
tags["_isOpen"] = "parse_error";
|
||||
}
|
||||
|
||||
|
|
|
@ -7,7 +7,15 @@
|
|||
"de": "Mit Fahrrad zusammenhängendes Objekt"
|
||||
},
|
||||
"minzoom": 13,
|
||||
"overpassTags": {"or": ["theme~cycling|bicycle", "sport=cycling"]},
|
||||
"overpassTags": {
|
||||
"or": [
|
||||
"theme~cycling|bicycle",
|
||||
"sport=cycling",
|
||||
"association~cycling|bicycle",
|
||||
"ngo~cycling|bicycle",
|
||||
"club~bicycle|cycling"
|
||||
]
|
||||
},
|
||||
"title": {
|
||||
"render": {
|
||||
"en": "Bike related object",
|
||||
|
@ -30,32 +38,13 @@
|
|||
]
|
||||
},
|
||||
"description": {},
|
||||
"tagRenderings": [ "images",
|
||||
|
||||
{
|
||||
"render": "<a href='{website}' target='_blank'>{website}</a>",
|
||||
"freeform": {
|
||||
"key": "website"
|
||||
}
|
||||
},
|
||||
{
|
||||
"render": "<a href='tel:{phone}'>{phone}</a>",
|
||||
"freeform": {
|
||||
"key": "phone"
|
||||
}
|
||||
},
|
||||
{
|
||||
"render": "<a href='mailto:{email}' target='_blank'>{email}</a>",
|
||||
"freeform": {
|
||||
"key": "email"
|
||||
}
|
||||
},
|
||||
{
|
||||
"render": "{opening_hours_table(opening_hours)}",
|
||||
"freeform": {
|
||||
"key": "opening_hours"
|
||||
}
|
||||
}
|
||||
"tagRenderings": [
|
||||
"images",
|
||||
"description",
|
||||
"website",
|
||||
"email",
|
||||
"phone",
|
||||
"opening_hours"
|
||||
],
|
||||
"hideUnderlayingFeaturesMinPercentage": 0,
|
||||
"icon": {
|
||||
|
|
Loading…
Reference in a new issue