forked from MapComplete/MapComplete
Linting of the postboxes theme
This commit is contained in:
parent
652b936444
commit
2d8b9a9481
3 changed files with 146 additions and 138 deletions
|
@ -4,7 +4,6 @@
|
||||||
* Technically, more an Actor then a featuresource, but it fits more neatly this ay
|
* Technically, more an Actor then a featuresource, but it fits more neatly this ay
|
||||||
*/
|
*/
|
||||||
import {FeatureSourceForLayer} from "../FeatureSource";
|
import {FeatureSourceForLayer} from "../FeatureSource";
|
||||||
import SimpleMetaTagger from "../../SimpleMetaTagger";
|
|
||||||
|
|
||||||
export default class SaveTileToLocalStorageActor {
|
export default class SaveTileToLocalStorageActor {
|
||||||
public static readonly storageKey: string = "cached-features";
|
public static readonly storageKey: string = "cached-features";
|
||||||
|
|
|
@ -1,138 +1,145 @@
|
||||||
{
|
{
|
||||||
"id": "postboxes",
|
"id": "postboxes",
|
||||||
"title": {
|
"title": {
|
||||||
"en": "Postbox and Post Office Map"
|
"en": "Postbox and Post Office Map"
|
||||||
},
|
},
|
||||||
"shortDescription": {
|
"shortDescription": {
|
||||||
"en": "A map showing postboxes and post offices"
|
"en": "A map showing postboxes and post offices"
|
||||||
},
|
},
|
||||||
"description": {
|
"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! :) "
|
"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": [
|
"language": [
|
||||||
"en"
|
"en"
|
||||||
],
|
],
|
||||||
"maintainer": "",
|
"maintainer": "",
|
||||||
"icon": "./assets/themes/postboxes_postoffices/postbox.svg",
|
"icon": "./assets/themes/postboxes_postoffices/postbox.svg",
|
||||||
"version": "0",
|
"version": "0",
|
||||||
"startLat": 53.5511,
|
"startLat": 53.5511,
|
||||||
"startLon": 9.9937,
|
"startLon": 9.9937,
|
||||||
"startZoom": 13,
|
"startZoom": 13,
|
||||||
"widenFactor": 0.05,
|
"widenFactor": 0.05,
|
||||||
"socialImage": "",
|
"socialImage": "",
|
||||||
"layers": [{
|
"layers": [
|
||||||
"id": "postboxes",
|
{
|
||||||
"name": {
|
"id": "postboxes",
|
||||||
"en": "Postbox"
|
"name": {
|
||||||
},
|
"en": "Postbox"
|
||||||
"minzoom": 12,
|
},
|
||||||
"overpassTags": {
|
"minzoom": 12,
|
||||||
"and": [
|
"overpassTags": {
|
||||||
"amenity=post_box"
|
"and": [
|
||||||
]
|
"amenity=post_box"
|
||||||
},
|
]
|
||||||
"title": {
|
},
|
||||||
"render": {
|
"title": {
|
||||||
"en": "Postbox"
|
"render": {
|
||||||
}
|
"en": "Postbox"
|
||||||
},
|
}
|
||||||
"description": {
|
},
|
||||||
"en": "The layer showing postboxes."
|
"description": {
|
||||||
},
|
"en": "The layer showing postboxes."
|
||||||
"tagRenderings": [
|
},
|
||||||
"images",
|
"tagRenderings": [
|
||||||
{
|
"images",
|
||||||
"render": "{minimap(18): height: 5rem; overflow: hidden; border-radius:3rem; }"
|
{
|
||||||
}
|
"render": "{minimap(18): height: 5rem; overflow: hidden; border-radius:3rem; }"
|
||||||
],
|
}
|
||||||
"icon": {
|
],
|
||||||
"render": "./assets/themes/postboxes_postoffices/postbox.svg"
|
"icon": {
|
||||||
},
|
"render": "./assets/themes/postboxes_postoffices/postbox.svg"
|
||||||
"width": {
|
},
|
||||||
"render": "1"
|
"width": {
|
||||||
},
|
"render": "1"
|
||||||
"iconSize": {
|
},
|
||||||
"render": "40,40,bottom"
|
"iconSize": {
|
||||||
},
|
"render": "40,40,bottom"
|
||||||
"color": {
|
},
|
||||||
"render": "#DADADA"
|
"color": {
|
||||||
},
|
"render": "#DADADA"
|
||||||
"presets": [{
|
},
|
||||||
"tags": [
|
"presets": [
|
||||||
"amenity=post_box"
|
{
|
||||||
],
|
"tags": [
|
||||||
"title": {
|
"amenity=post_box"
|
||||||
"en": "Postbox"
|
],
|
||||||
}
|
"title": {
|
||||||
}],
|
"en": "Postbox"
|
||||||
"wayHandling": "both outline and center"
|
}
|
||||||
},
|
}
|
||||||
{
|
],
|
||||||
"id": "postoffices",
|
"wayHandling": "both outline and center"
|
||||||
"name": {
|
},
|
||||||
"en": "A layer containing post offices"
|
{
|
||||||
},
|
"id": "postoffices",
|
||||||
"minzoom": 12,
|
"name": {
|
||||||
"overpassTags": {
|
"en": "A layer containing post offices"
|
||||||
"and": [
|
},
|
||||||
"amenity=post_office"
|
"minzoom": 12,
|
||||||
]
|
"overpassTags": {
|
||||||
},
|
"and": [
|
||||||
"title": {
|
"amenity=post_office"
|
||||||
"render": {
|
]
|
||||||
"en": "Post Office"
|
},
|
||||||
}
|
"title": {
|
||||||
},
|
"render": {
|
||||||
"description": {
|
"en": "Post Office"
|
||||||
"en": "A layer showing post offices."
|
}
|
||||||
},
|
},
|
||||||
"tagRenderings": [
|
"description": {
|
||||||
"images",
|
"en": "A layer showing post offices."
|
||||||
{
|
},
|
||||||
"render": "{minimap(18): height: 5rem; overflow: hidden; border-radius:3rem; }"
|
"tagRenderings": [
|
||||||
},
|
"images",
|
||||||
{
|
{
|
||||||
"#": "OH",
|
"render": "{minimap(18): height: 5rem; overflow: hidden; border-radius:3rem; }"
|
||||||
"render": {
|
},
|
||||||
"en": "Opening Hours: {opening_hours}"
|
{
|
||||||
},
|
"render": {
|
||||||
"freeform": {
|
"en": "Opening Hours: {opening_hours}"
|
||||||
"key": "opening_hours",
|
},
|
||||||
"type": "opening_hours"
|
"freeform": {
|
||||||
},
|
"key": "opening_hours",
|
||||||
"question": {
|
"type": "opening_hours"
|
||||||
"en": "What are the opening hours for this post office?"
|
},
|
||||||
},
|
"question": {
|
||||||
"mappings": [{
|
"en": "What are the opening hours for this post office?"
|
||||||
"if": "opening_hours=24/7",
|
},
|
||||||
"then": {
|
"mappings": [
|
||||||
"en": "24/7 opened (including holidays)"
|
{
|
||||||
}
|
"if": "opening_hours=24/7",
|
||||||
}]
|
"then": {
|
||||||
}
|
"en": "24/7 opened (including holidays)"
|
||||||
],
|
}
|
||||||
"icon": {
|
}
|
||||||
"render": "./assets/themes/postboxes_postoffices/post_office.svg"
|
],
|
||||||
},
|
"id": "OH"
|
||||||
"width": {
|
}
|
||||||
"render": "1"
|
],
|
||||||
},
|
"icon": {
|
||||||
"iconSize": {
|
"render": "./assets/themes/postboxes_postoffices/post_office.svg"
|
||||||
"render": "40,40,bottom"
|
},
|
||||||
},
|
"width": {
|
||||||
"color": {
|
"render": "1"
|
||||||
"render": "#DADADA"
|
},
|
||||||
},
|
"iconSize": {
|
||||||
"presets": [{
|
"render": "40,40,bottom"
|
||||||
"tags": [
|
},
|
||||||
"amenity=post_office"
|
"color": {
|
||||||
],
|
"render": "#DADADA"
|
||||||
"title": {
|
},
|
||||||
"en": "Post Office"
|
"presets": [
|
||||||
}
|
{
|
||||||
}],
|
"tags": [
|
||||||
"wayHandling": 2
|
"amenity=post_office"
|
||||||
}
|
],
|
||||||
],
|
"title": {
|
||||||
"roamingRenderings": []
|
"en": "Post Office"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"wayHandling": 2
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"roamingRenderings": []
|
||||||
}
|
}
|
|
@ -151,7 +151,9 @@
|
||||||
},
|
},
|
||||||
"freeform": {
|
"freeform": {
|
||||||
"key": "addr:housenumber",
|
"key": "addr:housenumber",
|
||||||
"addExtraTags": ["nohousenumber="]
|
"addExtraTags": [
|
||||||
|
"nohousenumber="
|
||||||
|
]
|
||||||
},
|
},
|
||||||
"mappings": [
|
"mappings": [
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue