From 2d8b9a94810177ebae6337165e43e76ff20798b5 Mon Sep 17 00:00:00 2001 From: pietervdvn Date: Mon, 11 Oct 2021 22:32:25 +0200 Subject: [PATCH] Linting of the postboxes theme --- .../Actors/SaveTileToLocalStorageActor.ts | 1 - .../postboxes_postoffices.json | 279 +++++++++--------- assets/themes/uk_addresses/uk_addresses.json | 4 +- 3 files changed, 146 insertions(+), 138 deletions(-) diff --git a/Logic/FeatureSource/Actors/SaveTileToLocalStorageActor.ts b/Logic/FeatureSource/Actors/SaveTileToLocalStorageActor.ts index 29086c9668..092c1a4023 100644 --- a/Logic/FeatureSource/Actors/SaveTileToLocalStorageActor.ts +++ b/Logic/FeatureSource/Actors/SaveTileToLocalStorageActor.ts @@ -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"; diff --git a/assets/themes/postboxes_postoffices/postboxes_postoffices.json b/assets/themes/postboxes_postoffices/postboxes_postoffices.json index 8d7aa81ed8..7e9f6c8236 100644 --- a/assets/themes/postboxes_postoffices/postboxes_postoffices.json +++ b/assets/themes/postboxes_postoffices/postboxes_postoffices.json @@ -1,138 +1,145 @@ { - "id": "postboxes", - "title": { - "en": "Postbox and Post Office Map" - }, - "shortDescription": { - "en": "A map showing postboxes and post offices" - }, - "description": { - "en": "On this map you can find and add data of post offices and post boxes. You can use this map to find where you can mail your next postcard! :) " - }, - "language": [ - "en" - ], - "maintainer": "", - "icon": "./assets/themes/postboxes_postoffices/postbox.svg", - "version": "0", - "startLat": 53.5511, - "startLon": 9.9937, - "startZoom": 13, - "widenFactor": 0.05, - "socialImage": "", - "layers": [{ - "id": "postboxes", - "name": { - "en": "Postbox" - }, - "minzoom": 12, - "overpassTags": { - "and": [ - "amenity=post_box" - ] - }, - "title": { - "render": { - "en": "Postbox" - } - }, - "description": { - "en": "The layer showing postboxes." - }, - "tagRenderings": [ - "images", - { - "render": "{minimap(18): height: 5rem; overflow: hidden; border-radius:3rem; }" - } - ], - "icon": { - "render": "./assets/themes/postboxes_postoffices/postbox.svg" - }, - "width": { - "render": "1" - }, - "iconSize": { - "render": "40,40,bottom" - }, - "color": { - "render": "#DADADA" - }, - "presets": [{ - "tags": [ - "amenity=post_box" - ], - "title": { - "en": "Postbox" - } - }], - "wayHandling": "both outline and center" - }, - { - "id": "postoffices", - "name": { - "en": "A layer containing post offices" - }, - "minzoom": 12, - "overpassTags": { - "and": [ - "amenity=post_office" - ] - }, - "title": { - "render": { - "en": "Post Office" - } - }, - "description": { - "en": "A layer showing post offices." - }, - "tagRenderings": [ - "images", - { - "render": "{minimap(18): height: 5rem; overflow: hidden; border-radius:3rem; }" - }, - { - "#": "OH", - "render": { - "en": "Opening Hours: {opening_hours}" - }, - "freeform": { - "key": "opening_hours", - "type": "opening_hours" - }, - "question": { - "en": "What are the opening hours for this post office?" - }, - "mappings": [{ - "if": "opening_hours=24/7", - "then": { - "en": "24/7 opened (including holidays)" - } - }] - } - ], - "icon": { - "render": "./assets/themes/postboxes_postoffices/post_office.svg" - }, - "width": { - "render": "1" - }, - "iconSize": { - "render": "40,40,bottom" - }, - "color": { - "render": "#DADADA" - }, - "presets": [{ - "tags": [ - "amenity=post_office" - ], - "title": { - "en": "Post Office" - } - }], - "wayHandling": 2 - } - ], - "roamingRenderings": [] + "id": "postboxes", + "title": { + "en": "Postbox and Post Office Map" + }, + "shortDescription": { + "en": "A map showing postboxes and post offices" + }, + "description": { + "en": "On this map you can find and add data of post offices and post boxes. You can use this map to find where you can mail your next postcard! :) " + }, + "language": [ + "en" + ], + "maintainer": "", + "icon": "./assets/themes/postboxes_postoffices/postbox.svg", + "version": "0", + "startLat": 53.5511, + "startLon": 9.9937, + "startZoom": 13, + "widenFactor": 0.05, + "socialImage": "", + "layers": [ + { + "id": "postboxes", + "name": { + "en": "Postbox" + }, + "minzoom": 12, + "overpassTags": { + "and": [ + "amenity=post_box" + ] + }, + "title": { + "render": { + "en": "Postbox" + } + }, + "description": { + "en": "The layer showing postboxes." + }, + "tagRenderings": [ + "images", + { + "render": "{minimap(18): height: 5rem; overflow: hidden; border-radius:3rem; }" + } + ], + "icon": { + "render": "./assets/themes/postboxes_postoffices/postbox.svg" + }, + "width": { + "render": "1" + }, + "iconSize": { + "render": "40,40,bottom" + }, + "color": { + "render": "#DADADA" + }, + "presets": [ + { + "tags": [ + "amenity=post_box" + ], + "title": { + "en": "Postbox" + } + } + ], + "wayHandling": "both outline and center" + }, + { + "id": "postoffices", + "name": { + "en": "A layer containing post offices" + }, + "minzoom": 12, + "overpassTags": { + "and": [ + "amenity=post_office" + ] + }, + "title": { + "render": { + "en": "Post Office" + } + }, + "description": { + "en": "A layer showing post offices." + }, + "tagRenderings": [ + "images", + { + "render": "{minimap(18): height: 5rem; overflow: hidden; border-radius:3rem; }" + }, + { + "render": { + "en": "Opening Hours: {opening_hours}" + }, + "freeform": { + "key": "opening_hours", + "type": "opening_hours" + }, + "question": { + "en": "What are the opening hours for this post office?" + }, + "mappings": [ + { + "if": "opening_hours=24/7", + "then": { + "en": "24/7 opened (including holidays)" + } + } + ], + "id": "OH" + } + ], + "icon": { + "render": "./assets/themes/postboxes_postoffices/post_office.svg" + }, + "width": { + "render": "1" + }, + "iconSize": { + "render": "40,40,bottom" + }, + "color": { + "render": "#DADADA" + }, + "presets": [ + { + "tags": [ + "amenity=post_office" + ], + "title": { + "en": "Post Office" + } + } + ], + "wayHandling": 2 + } + ], + "roamingRenderings": [] } \ No newline at end of file diff --git a/assets/themes/uk_addresses/uk_addresses.json b/assets/themes/uk_addresses/uk_addresses.json index 296c125160..67cf0c6007 100644 --- a/assets/themes/uk_addresses/uk_addresses.json +++ b/assets/themes/uk_addresses/uk_addresses.json @@ -151,7 +151,9 @@ }, "freeform": { "key": "addr:housenumber", - "addExtraTags": ["nohousenumber="] + "addExtraTags": [ + "nohousenumber=" + ] }, "mappings": [ {