Linting of the postboxes theme

This commit is contained in:
pietervdvn 2021-10-11 22:32:25 +02:00
parent 652b936444
commit 2d8b9a9481
3 changed files with 146 additions and 138 deletions

View file

@ -4,7 +4,6 @@
* Technically, more an Actor then a featuresource, but it fits more neatly this ay
*/
import {FeatureSourceForLayer} from "../FeatureSource";
import SimpleMetaTagger from "../../SimpleMetaTagger";
export default class SaveTileToLocalStorageActor {
public static readonly storageKey: string = "cached-features";

View file

@ -20,7 +20,8 @@
"startZoom": 13,
"widenFactor": 0.05,
"socialImage": "",
"layers": [{
"layers": [
{
"id": "postboxes",
"name": {
"en": "Postbox"
@ -57,14 +58,16 @@
"color": {
"render": "#DADADA"
},
"presets": [{
"presets": [
{
"tags": [
"amenity=post_box"
],
"title": {
"en": "Postbox"
}
}],
}
],
"wayHandling": "both outline and center"
},
{
@ -92,7 +95,6 @@
"render": "{minimap(18): height: 5rem; overflow: hidden; border-radius:3rem; }"
},
{
"#": "OH",
"render": {
"en": "Opening Hours: {opening_hours}"
},
@ -103,12 +105,15 @@
"question": {
"en": "What are the opening hours for this post office?"
},
"mappings": [{
"mappings": [
{
"if": "opening_hours=24/7",
"then": {
"en": "24/7 opened (including holidays)"
}
}]
}
],
"id": "OH"
}
],
"icon": {
@ -123,14 +128,16 @@
"color": {
"render": "#DADADA"
},
"presets": [{
"presets": [
{
"tags": [
"amenity=post_office"
],
"title": {
"en": "Post Office"
}
}],
}
],
"wayHandling": 2
}
],

View file

@ -151,7 +151,9 @@
},
"freeform": {
"key": "addr:housenumber",
"addExtraTags": ["nohousenumber="]
"addExtraTags": [
"nohousenumber="
]
},
"mappings": [
{