Add observation towers theme
This commit is contained in:
parent
abbd617ca2
commit
7d57672432
6 changed files with 284 additions and 3 deletions
|
@ -2,7 +2,7 @@ import {Utils} from "../Utils";
|
||||||
|
|
||||||
export default class Constants {
|
export default class Constants {
|
||||||
|
|
||||||
public static vNumber = "0.9.7";
|
public static vNumber = "0.9.8";
|
||||||
|
|
||||||
// The user journey states thresholds when a new feature gets unlocked
|
// The user journey states thresholds when a new feature gets unlocked
|
||||||
public static userJourney = {
|
public static userJourney = {
|
||||||
|
|
38
assets/layers/observation_tower/Tower_observation.svg
Normal file
38
assets/layers/observation_tower/Tower_observation.svg
Normal file
|
@ -0,0 +1,38 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||||
|
<svg
|
||||||
|
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
||||||
|
xmlns:cc="http://creativecommons.org/ns#"
|
||||||
|
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||||
|
xmlns:svg="http://www.w3.org/2000/svg"
|
||||||
|
xmlns="http://www.w3.org/2000/svg"
|
||||||
|
version="1.1"
|
||||||
|
width="14"
|
||||||
|
height="14"
|
||||||
|
viewBox="0 0 14 14"
|
||||||
|
id="svg2">
|
||||||
|
<metadata
|
||||||
|
id="metadata8">
|
||||||
|
<rdf:RDF>
|
||||||
|
<cc:Work
|
||||||
|
rdf:about="">
|
||||||
|
<dc:format>image/svgxml</dc:format>
|
||||||
|
<dc:type
|
||||||
|
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
|
||||||
|
<dc:title></dc:title>
|
||||||
|
</cc:Work>
|
||||||
|
</rdf:RDF>
|
||||||
|
</metadata>
|
||||||
|
<defs
|
||||||
|
id="defs6" />
|
||||||
|
<rect
|
||||||
|
width="14"
|
||||||
|
height="14"
|
||||||
|
x="0"
|
||||||
|
y="0"
|
||||||
|
id="canvas"
|
||||||
|
style="fill:none;stroke:none;visibility:hidden" />
|
||||||
|
<path
|
||||||
|
id="tower_observation"
|
||||||
|
d="M 7 0 L 2 2 L 2 6 L 12 6 L 12 2 L 7 0 z M 3 3 L 5 3 L 5 5 L 3 5 L 3 3 z M 6 3 L 8 3 L 8 5 L 6 5 L 6 3 z M 9 3 L 11 3 L 11 5 L 9 5 L 9 3 z M 3.90625 6.625 L 3 14 L 4.5 14 L 4.6875 12.53125 L 7 11 L 9.3125 12.5625 L 9.5 14 L 11 14 L 10.09375 6.65625 L 3.90625 6.625 z M 5.34375 7.1875 L 8.65625 7.21875 L 8.84375 8.78125 L 7 10 L 5.15625 8.78125 L 5.34375 7.1875 z M 5.03125 9.6875 L 6.25 10.5 L 4.8125 11.46875 L 5.03125 9.6875 z M 8.96875 9.6875 L 9.1875 11.46875 L 7.75 10.5 L 8.96875 9.6875 z "
|
||||||
|
style="fill:#555555;fill-opacity:1;stroke:none" />
|
||||||
|
</svg>
|
After Width: | Height: | Size: 1.4 KiB |
12
assets/layers/observation_tower/license_info.json
Normal file
12
assets/layers/observation_tower/license_info.json
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
[
|
||||||
|
{
|
||||||
|
"path": "Tower_observation.svg",
|
||||||
|
"license": "CC0",
|
||||||
|
"authors": [
|
||||||
|
"Teslaton"
|
||||||
|
],
|
||||||
|
"sources": [
|
||||||
|
"https://wiki.openstreetmap.org/w/images/b/b9/Tower_observation.svg"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
158
assets/layers/observation_tower/observation_tower.json
Normal file
158
assets/layers/observation_tower/observation_tower.json
Normal file
|
@ -0,0 +1,158 @@
|
||||||
|
{
|
||||||
|
"id": "observation_tower",
|
||||||
|
"name": {
|
||||||
|
"en": "Observation towers",
|
||||||
|
"nl": "Uitkijktorens"
|
||||||
|
},
|
||||||
|
"minzoom": 8,
|
||||||
|
"title": {
|
||||||
|
"render": {
|
||||||
|
"en": "Observation tower",
|
||||||
|
"nl": "Uitkijktoren"
|
||||||
|
},
|
||||||
|
"mappings": [{
|
||||||
|
"if": "name~*",
|
||||||
|
"then": {
|
||||||
|
"en": "<b>{name}</b>",
|
||||||
|
"nl": "<b>{name}</b>"
|
||||||
|
}
|
||||||
|
}]
|
||||||
|
},
|
||||||
|
"description": {
|
||||||
|
"en": "Towers with a panoramic view",
|
||||||
|
"nl": "Torens om van het uitzicht te genieten"
|
||||||
|
},
|
||||||
|
"tagRenderings": [
|
||||||
|
"images",
|
||||||
|
{
|
||||||
|
"#": "name",
|
||||||
|
"question": {
|
||||||
|
"en": "What is the name of this tower?",
|
||||||
|
"nl": "Heeft deze toren een naam?"
|
||||||
|
},
|
||||||
|
"render": {
|
||||||
|
"en": "This tower is called <b>{name}</b>",
|
||||||
|
"nl": "Deze toren heet <b>{name}</b>"
|
||||||
|
},
|
||||||
|
"freeform": {
|
||||||
|
"key": "name"
|
||||||
|
},
|
||||||
|
"mappings": [
|
||||||
|
{
|
||||||
|
"if": "noname=yes",
|
||||||
|
"then": {
|
||||||
|
"en": "This tower doesn't have a specific name",
|
||||||
|
"nl": "Deze toren heeft geen specifieke naam"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"#": "Height",
|
||||||
|
"question": {
|
||||||
|
"en": "What is the height of this tower?",
|
||||||
|
"nl": "Hoe hoog is deze toren?"
|
||||||
|
},
|
||||||
|
"render": {
|
||||||
|
"en": "This tower is {height} high",
|
||||||
|
"nl": "Deze toren is {height} hoog"
|
||||||
|
},
|
||||||
|
"freeform": {
|
||||||
|
"key": "height",
|
||||||
|
"type": "pfloat"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"#": "Operator",
|
||||||
|
"question": {
|
||||||
|
"en": "Who maintains this tower?",
|
||||||
|
"nl": "Wie onderhoudt deze toren?"
|
||||||
|
},
|
||||||
|
"render": {
|
||||||
|
"nl": "Wordt onderhouden door <b>{operator}</b>",
|
||||||
|
"en": "Maintained by <b>{operator}</b>"
|
||||||
|
},
|
||||||
|
"freeform": {
|
||||||
|
"key": "operator"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"website",
|
||||||
|
{
|
||||||
|
"#": "Fee",
|
||||||
|
"question": {
|
||||||
|
"en": "How much does one have to pay to enter this tower?",
|
||||||
|
"nl": "Hoeveel moet men betalen om deze toren te bezoeken?"
|
||||||
|
},
|
||||||
|
"render": {
|
||||||
|
"en": "Visiting this tower costs <b>{charge}</b>",
|
||||||
|
"nl": "Deze toren bezoeken kost <b>{charge}</b>"
|
||||||
|
},
|
||||||
|
"freeform": {
|
||||||
|
"key": "charge",
|
||||||
|
"addExtraTags": ["fee=yes"]
|
||||||
|
},
|
||||||
|
"mappings": [
|
||||||
|
{
|
||||||
|
"if": {
|
||||||
|
"and": [
|
||||||
|
"fee=no",
|
||||||
|
"charge="
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"then": {
|
||||||
|
"en": "Free to visit",
|
||||||
|
"nl": "Gratis te bezoeken"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"#": "Payment methods",
|
||||||
|
"builtin": "payment-options",
|
||||||
|
"override": {
|
||||||
|
"condition": {
|
||||||
|
"or": [
|
||||||
|
"fee=yes",
|
||||||
|
"charge~*"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"wheelchair-access"
|
||||||
|
],
|
||||||
|
"wayHandling": 1,
|
||||||
|
"icon": {
|
||||||
|
"render": "circle:white;./assets/layers/observation_tower/Tower_observation.svg"
|
||||||
|
},
|
||||||
|
"width": {
|
||||||
|
"render": "2"
|
||||||
|
},
|
||||||
|
"iconSize": {
|
||||||
|
"render": "40,40,center"
|
||||||
|
},
|
||||||
|
"color": {
|
||||||
|
"render": "#00f"
|
||||||
|
},
|
||||||
|
"presets": [
|
||||||
|
{
|
||||||
|
"tags": [
|
||||||
|
"man_made=tower",
|
||||||
|
"tower:type=observation"
|
||||||
|
],
|
||||||
|
"title": {
|
||||||
|
"en": "observation tower",
|
||||||
|
"nl": "Uitkijktoren"
|
||||||
|
},
|
||||||
|
"description": {
|
||||||
|
"nl": "Een publiek toegankelijke uitkijktoren"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"source": {
|
||||||
|
"osmTags": {
|
||||||
|
"and": [
|
||||||
|
"tower:type=observation"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
51
assets/themes/observation_towers/observation_towers.json
Normal file
51
assets/themes/observation_towers/observation_towers.json
Normal file
|
@ -0,0 +1,51 @@
|
||||||
|
{
|
||||||
|
"id": "observation_towers",
|
||||||
|
"title": {
|
||||||
|
"en": "Observation towers",
|
||||||
|
"nl": "Uitkijktorens"
|
||||||
|
},
|
||||||
|
"shortDescription": {
|
||||||
|
"en": "Publicly accessible towers to enjoy the view",
|
||||||
|
"nl": "Publieke uitkijktorens om van het panorama te genieten"
|
||||||
|
},
|
||||||
|
"description": {
|
||||||
|
"nl": "Publieke uitkijktorens om van het panorama te genieten",
|
||||||
|
"en": "Publicly accessible towers to enjoy the view"
|
||||||
|
},
|
||||||
|
"language": [
|
||||||
|
"en",
|
||||||
|
"nl"
|
||||||
|
],
|
||||||
|
"maintainer": "",
|
||||||
|
"icon": "./assets/layers/observation_tower/Tower_observation.svg",
|
||||||
|
"version": "0",
|
||||||
|
"startLat": 0,
|
||||||
|
"startLon": 0,
|
||||||
|
"startZoom": 1,
|
||||||
|
"widenFactor": 0.05,
|
||||||
|
"socialImage": "",
|
||||||
|
"layers": [
|
||||||
|
"observation_tower"
|
||||||
|
],
|
||||||
|
"units": [
|
||||||
|
{
|
||||||
|
"appliesToKey": [
|
||||||
|
"height"
|
||||||
|
],
|
||||||
|
"applicableUnits": [
|
||||||
|
{
|
||||||
|
"canonicalDenomination": "m",
|
||||||
|
"alternativeDenomination": [
|
||||||
|
"meter",
|
||||||
|
"mtr"
|
||||||
|
],
|
||||||
|
"human": {
|
||||||
|
"nl": " meter",
|
||||||
|
"en": " meter"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"eraseInvalidValues": true
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
|
@ -36,7 +36,29 @@
|
||||||
"bench",
|
"bench",
|
||||||
"waste_basket",
|
"waste_basket",
|
||||||
"bike_repair_station",
|
"bike_repair_station",
|
||||||
"binocular"
|
"binocular",
|
||||||
|
"observation_tower"
|
||||||
],
|
],
|
||||||
"hideFromOverview": true
|
"hideFromOverview": true,
|
||||||
|
"units": [
|
||||||
|
{
|
||||||
|
"appliesToKey": [
|
||||||
|
"height"
|
||||||
|
],
|
||||||
|
"applicableUnits": [
|
||||||
|
{
|
||||||
|
"canonicalDenomination": "m",
|
||||||
|
"alternativeDenomination": [
|
||||||
|
"meter",
|
||||||
|
"mtr"
|
||||||
|
],
|
||||||
|
"human": {
|
||||||
|
"nl": " meter",
|
||||||
|
"en": " meter"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"eraseInvalidValues": true
|
||||||
|
}
|
||||||
|
]
|
||||||
}
|
}
|
Loading…
Reference in a new issue