Merge pull request #1102 from pietervdvn/feature/fitness-station
Sports map
|
@ -303,8 +303,8 @@ export default class TagRenderingQuestion extends Combine {
|
||||||
const tr = mapping.then.Subs(tagsSource.data)
|
const tr = mapping.then.Subs(tagsSource.data)
|
||||||
const patchedMapping = <Mapping>{
|
const patchedMapping = <Mapping>{
|
||||||
...mapping,
|
...mapping,
|
||||||
iconClass: `small-height`,
|
iconClass: mapping.iconClass ?? `small-height`,
|
||||||
icon: mapping.icon ?? (addIcons ? "./assets/svg/none.svg" : undefined),
|
icon: mapping.icon ?? (addIcons ? "./assets/svg/none.svg" : undefined)
|
||||||
}
|
}
|
||||||
const fancy = TagRenderingQuestion.GenerateMappingContent(
|
const fancy = TagRenderingQuestion.GenerateMappingContent(
|
||||||
patchedMapping,
|
patchedMapping,
|
||||||
|
|
89
assets/layers/fitness_centre/fitness_centre.json
Normal file
|
@ -0,0 +1,89 @@
|
||||||
|
{
|
||||||
|
"id": "fitness_centre",
|
||||||
|
"name": {
|
||||||
|
"en": "Fitness Centres"
|
||||||
|
},
|
||||||
|
"description": {
|
||||||
|
"en": "Layer showing fitness centres"
|
||||||
|
},
|
||||||
|
"source": {
|
||||||
|
"osmTags": "leisure=fitness_centre"
|
||||||
|
},
|
||||||
|
"minzoom": 12,
|
||||||
|
"title": {
|
||||||
|
"render": {
|
||||||
|
"en": "Fitness Centre"
|
||||||
|
},
|
||||||
|
"mappings": [
|
||||||
|
{
|
||||||
|
"if": "name~*",
|
||||||
|
"then": "{name}"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"tagRenderings": [
|
||||||
|
{
|
||||||
|
"id": "name",
|
||||||
|
"question": {
|
||||||
|
"en": "What is the name of this fitness centre?"
|
||||||
|
},
|
||||||
|
"freeform": {
|
||||||
|
"key": "name",
|
||||||
|
"placeholder": {
|
||||||
|
"en": "Name of fitness centre"
|
||||||
|
},
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"mappings": [
|
||||||
|
{
|
||||||
|
"if": "noname=yes",
|
||||||
|
"then": {
|
||||||
|
"en": "This fitness centre has no name"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"render": {
|
||||||
|
"en": "This fitness centre is called {name}"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"images",
|
||||||
|
"phone",
|
||||||
|
"email",
|
||||||
|
"website",
|
||||||
|
"opening_hours",
|
||||||
|
"wheelchair-access",
|
||||||
|
"level",
|
||||||
|
"reviews"
|
||||||
|
],
|
||||||
|
"presets": [
|
||||||
|
{
|
||||||
|
"tags": [
|
||||||
|
"leisure=fitness_centre"
|
||||||
|
],
|
||||||
|
"title": {
|
||||||
|
"en": "a fitness centre"
|
||||||
|
},
|
||||||
|
"icon": "./assets/layers/fitness_centre/gym.svg"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"mapRendering": [
|
||||||
|
{
|
||||||
|
"location": [
|
||||||
|
"point",
|
||||||
|
"centroid"
|
||||||
|
],
|
||||||
|
"icon": "circle:white;./assets/layers/fitness_centre/gym.svg",
|
||||||
|
"iconSize": "40,40,center",
|
||||||
|
"label": "<div style='background: white; padding: 0.25em; border-radius:0.5em'>{name}</div>",
|
||||||
|
"iconBadges": [
|
||||||
|
{
|
||||||
|
"if": "opening_hours~*",
|
||||||
|
"then": "isOpen"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"filter": [
|
||||||
|
"open_now"
|
||||||
|
]
|
||||||
|
}
|
15
assets/layers/fitness_centre/gym.svg
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<svg width="700pt" height="700pt" version="1.1" viewBox="0 0 700 700" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||||
|
<g>
|
||||||
|
<path d="m577.73 551.52h-455.47c-4.6836 0-8.4844-3.8008-8.4844-8.4844v-309.11c0-4.6836 3.8008-8.4844 8.4844-8.4844 4.6875 0 8.4844 3.8008 8.4844 8.4844v300.62h438.5v-300.62c0-4.6836 3.7969-8.4844 8.4844-8.4844 4.6836 0 8.4844 3.8008 8.4844 8.4844v309.11c0 2.25-0.89453 4.4062-2.4844 6-1.5938 1.5898-3.75 2.4844-6 2.4844z"/>
|
||||||
|
<path d="m535.31 551.52h-370.62c-4.6875 0-8.4844-3.8008-8.4844-8.4844v-300.62c0-4.6875 3.7969-8.4883 8.4844-8.4883h370.62c2.25 0 4.4102 0.89453 6 2.4883 1.5898 1.5898 2.4844 3.7461 2.4844 6v300.62c0 2.25-0.89453 4.4062-2.4844 6-1.5898 1.5898-3.75 2.4844-6 2.4844zm-362.13-16.969h353.65v-283.65h-353.65z"/>
|
||||||
|
<path d="m430.18 551.52h-160.37c-4.6836 0-8.4844-3.8008-8.4844-8.4844v-300.62c0-4.6875 3.8008-8.4883 8.4844-8.4883h160.37c2.25 0 4.4062 0.89453 5.9961 2.4883 1.5938 1.5898 2.4883 3.7461 2.4883 6v300.62c0 2.25-0.89453 4.4062-2.4883 6-1.5898 1.5898-3.7461 2.4844-5.9961 2.4844zm-151.88-16.969h143.39l-0.003907-283.65h-143.39z"/>
|
||||||
|
<path d="m596.06 208.47h-269.23c-4.6875 0-8.4844-3.7969-8.4844-8.4844s3.7969-8.4844 8.4844-8.4844h269.23c2.25 0 4.4062-0.89453 5.9961-2.4844 1.5938-1.5938 2.4883-3.75 2.4883-6v-46.328c0-2.25-0.89453-4.4102-2.4883-6-1.5898-1.5898-3.7461-2.4844-5.9961-2.4844h-81.117c-4.6875 0-8.4844-3.8008-8.4844-8.4844 0-4.6875 3.7969-8.4844 8.4844-8.4844h81.117c6.75 0 13.223 2.6797 17.996 7.4531 4.7734 4.7734 7.457 11.25 7.457 18v46.328c0 6.75-2.6836 13.223-7.457 17.996-4.7734 4.7734-11.246 7.457-17.996 7.457z"/>
|
||||||
|
<path d="m207.88 208.47h-103.94c-6.75 0-13.223-2.6836-17.996-7.457-4.7734-4.7734-7.457-11.246-7.457-17.996v-46.328c0-6.75 2.6836-13.227 7.457-18 4.7734-4.7734 11.246-7.4531 17.996-7.4531h82.898c4.6875 0 8.4844 3.7969 8.4844 8.4844 0 4.6836-3.7969 8.4844-8.4844 8.4844h-82.898c-4.6836 0-8.4844 3.7969-8.4844 8.4844v46.328c0 2.25 0.89453 4.4062 2.4883 6 1.5898 1.5898 3.7461 2.4844 5.9961 2.4844h103.94c4.6875 0 8.4844 3.7969 8.4844 8.4844s-3.7969 8.4844-8.4844 8.4844z"/>
|
||||||
|
<path d="m613.03 551.52h-526.06c-4.6836 0-8.4844-3.8008-8.4844-8.4844 0-4.6875 3.8008-8.4844 8.4844-8.4844h526.06c4.6836 0 8.4844 3.7969 8.4844 8.4844 0 4.6836-3.8008 8.4844-8.4844 8.4844z"/>
|
||||||
|
<path d="m296.55 411.77c-4.6875 0-8.4844-3.7969-8.4844-8.4844v-21.469c0-4.6836 3.7969-8.4844 8.4844-8.4844 4.6836 0 8.4844 3.8008 8.4844 8.4844v21.215c0.066406 2.293-0.79688 4.5156-2.3945 6.1641-1.5977 1.6484-3.7969 2.5742-6.0898 2.5742z"/>
|
||||||
|
<path d="m450.04 173.34c-4.6094 0.019531-9.0977-1.4961-12.754-4.3047-3.6562-2.8125-6.2734-6.7578-7.4375-11.223l-30.633-116.84c-1.3711-5.3516-0.57031-11.031 2.2266-15.801 2.7969-4.7656 7.3633-8.2344 12.707-9.6523l23.926-6.2773h0.003907c5.3398-1.4492 11.043-0.65234 15.781 2.2031 4.8047 2.7695 8.2891 7.3594 9.6719 12.73l30.715 116.75c1.4219 5.3438 0.65234 11.035-2.1328 15.812-2.7891 4.7773-7.3633 8.2461-12.715 9.6406l-23.926 6.2773-0.003906 0.003907c-1.7656 0.48047-3.5938 0.71094-5.4297 0.67578zm27.238-15.102m-33.941-132.79c-0.33203-0.074219-0.68359-0.074219-1.0156 0l-23.926 6.2773-0.003906 0.003906c-2.082 0.53906-3.3359 2.6641-2.8008 4.75l30.715 116.84h0.003907c0.26562 0.99219 0.90234 1.8438 1.7812 2.375 0.89062 0.54297 1.9609 0.69531 2.9688 0.42578l23.926-6.2773c2.0977-0.58203 3.3438-2.7305 2.8008-4.8359l-30.629-116.58c-0.23828-1.0508-0.91797-1.9492-1.8672-2.4609-0.60156-0.32422-1.2695-0.5-1.9531-0.51172z"/>
|
||||||
|
<path d="m256.67 224.09c-4.6094 0.003906-9.0898-1.5195-12.742-4.3281-3.6523-2.8086-6.2734-6.7461-7.4531-11.199l-30.715-116.84c-1.3984-5.3438-0.61719-11.027 2.1641-15.797 2.7852-4.7695 7.3438-8.2461 12.684-9.6602l23.926-6.2773h0.003906c5.3711-1.375 11.07-0.58594 15.863 2.207 4.8047 2.7695 8.293 7.3555 9.6758 12.727l30.715 116.75c1.3945 5.3555 0.60156 11.047-2.1992 15.82-2.8008 4.7734-7.3789 8.2383-12.734 9.6367l-23.926 6.2773h-0.003907c-1.7109 0.48047-3.4805 0.71094-5.2578 0.67969zm27.066-15.102m-33.77-132.62h-1.0195l-23.926 6.2773c-1.0547 0.35938-1.8945 1.168-2.293 2.207-0.39844 0.94922-0.39844 2.0195 0 2.9688l30.629 116.84 0.003906 0.003906c0.57812 2.0938 2.7305 3.3398 4.8359 2.7969l23.926-6.2773c2.0664-0.61719 3.293-2.7383 2.8008-4.8359l-31.227-117.18c-0.23828-1.0039-0.88281-1.8633-1.7812-2.375-0.60156-0.3125-1.2734-0.46094-1.9492-0.42578z"/>
|
||||||
|
<path d="m283.56 168c-3.9688 0.125-7.4922-2.5195-8.4844-6.3633l-12.641-48.195c-1.1875-4.5195 1.5078-9.1484 6.0234-10.352l145.6-38.184v0.003906c2.1484-0.5625 4.4336-0.25781 6.3633 0.84766 1.9648 1.125 3.4023 2.9883 3.9883 5.1758l12.641 48.277c0.5625 2.1523 0.25781 4.4375-0.84766 6.3633-1.1641 1.9336-3.0117 3.3555-5.1758 3.9883l-145.6 38.184c-0.60938 0.14844-1.2383 0.23438-1.8672 0.25391zm-2.2891-50.91 8.4844 31.816 129.14-33.938-8.4844-31.816z"/>
|
||||||
|
</g>
|
||||||
|
</svg>
|
After Width: | Height: | Size: 4.7 KiB |
13
assets/layers/fitness_centre/license_info.json
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
[
|
||||||
|
{
|
||||||
|
"path": "gym.svg",
|
||||||
|
"license": "CC-BY",
|
||||||
|
"authors": [
|
||||||
|
"Bernd Lakenbrink",
|
||||||
|
"Noun Project"
|
||||||
|
],
|
||||||
|
"sources": [
|
||||||
|
"https://thenounproject.com/icon/gym-3583088/"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
After Width: | Height: | Size: 7.4 MiB |
BIN
assets/layers/fitness_station/Annecy_-_rower.jpg
Normal file
After Width: | Height: | Size: 3.9 MiB |
After Width: | Height: | Size: 3.6 MiB |
BIN
assets/layers/fitness_station/Battling_ropes.jpg
Normal file
After Width: | Height: | Size: 1.9 MiB |
BIN
assets/layers/fitness_station/Captains_chair.jpg
Normal file
After Width: | Height: | Size: 1.4 MiB |
BIN
assets/layers/fitness_station/Exercise9159.jpg
Normal file
After Width: | Height: | Size: 3.3 MiB |
BIN
assets/layers/fitness_station/Exercise9170.jpg
Normal file
After Width: | Height: | Size: 3.1 MiB |
BIN
assets/layers/fitness_station/Exercise_Box.jpg
Normal file
After Width: | Height: | Size: 2.1 MiB |
BIN
assets/layers/fitness_station/Fitness_station_beam_jump.jpg
Normal file
After Width: | Height: | Size: 771 KiB |
BIN
assets/layers/fitness_station/Fitness_station_hurdling.jpg
Normal file
After Width: | Height: | Size: 1 MiB |
BIN
assets/layers/fitness_station/Fitness_station_leapfrog.jpg
Normal file
After Width: | Height: | Size: 659 KiB |
BIN
assets/layers/fitness_station/Fitness_station_slalom.jpg
Normal file
After Width: | Height: | Size: 969 KiB |
BIN
assets/layers/fitness_station/Fitness_station_stepping_stone.jpg
Normal file
After Width: | Height: | Size: 958 KiB |
BIN
assets/layers/fitness_station/Fitness_station_stretch_bars.jpg
Normal file
After Width: | Height: | Size: 727 KiB |
BIN
assets/layers/fitness_station/Fitness_station_wall.jpg
Normal file
After Width: | Height: | Size: 901 KiB |
BIN
assets/layers/fitness_station/Horizontal_ladder.jpg
Normal file
After Width: | Height: | Size: 1.7 MiB |
After Width: | Height: | Size: 1.8 MiB |
BIN
assets/layers/fitness_station/Inclined_sit-up_bench.jpg
Normal file
After Width: | Height: | Size: 2 MiB |
BIN
assets/layers/fitness_station/Log_lifting_exercise.jpg
Normal file
After Width: | Height: | Size: 1.6 MiB |
BIN
assets/layers/fitness_station/Outdoor_fitness_station_sign.jpg
Normal file
After Width: | Height: | Size: 824 KiB |
BIN
assets/layers/fitness_station/Outdoor_stationary_bicycle.jpg
Normal file
After Width: | Height: | Size: 1.7 MiB |
BIN
assets/layers/fitness_station/Push-up_bars.jpg
Normal file
After Width: | Height: | Size: 1.8 MiB |
After Width: | Height: | Size: 456 KiB |
After Width: | Height: | Size: 2.8 MiB |
After Width: | Height: | Size: 1.5 MiB |
3
assets/layers/fitness_station/fitness.svg
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
<svg xmlns="http://www.w3.org/2000/svg" width="14.933333" height="14.933333" viewBox="0 0 14 14">
|
||||||
|
<path d="M 8.5372267,1.2755905 A 1.2677165,1.2598426 0 0 0 9.8049431,2.5354332 1.2677165,1.2598426 0 0 0 11.07266,1.2755905 1.2677165,1.2598426 0 0 0 9.8049431,0.01574798 1.2677165,1.2598426 0 0 0 8.5372267,1.2755905 Z m -6.8521549,8.5590563 2.681077,0.6891092 c 0.1095105,0.02815 0.3520751,0.0033 0.4439037,-0.01932 0.2353372,-0.04563 0.3030067,-0.154948 0.3951006,-0.269256 L 6.4744703,8.1436871 8.0702194,9.8565596 7.4259242,13.059105 c -0.020606,0.06867 -0.030908,0.125809 -0.030908,0.171443 0,0.205576 0.06647,0.382584 0.1994435,0.531025 0.1329742,0.148441 0.2915382,0.222679 0.4757602,0.222679 0.3477057,0 0.5626041,-0.199862 0.6447278,-0.59955 L 9.4973678,9.4969405 C 9.589462,9.0857519 9.5485828,8.7831202 9.3746971,8.589009 L 7.9784575,7.0302906 9.4974007,5.0607914 10.479298,6.1568624 c 0.102364,0.1139368 0.22005,0.1709239 0.353057,0.1709239 0.173852,0 0.342553,-0.085555 0.506136,-0.256627 l 1.59575,-1.7813601 C 13.016,4.1754915 13.056846,4.0498678 13.056912,3.9129284 13.056828,3.7418565 13.003204,3.5991666 12.895788,3.4848589 12.788439,3.3705882 12.663076,3.3134163 12.519833,3.3134163 c -0.14331,0 -0.255844,0.045634 -0.337602,0.1369386 l -1.3195,1.4734604 -1.5957491,-1.781323 C 9.1443112,3.0051817 8.9868819,2.8964026 8.8067089,2.9365084 L 5.3328033,3.7097878 C 5.1825403,3.7432359 5.0725688,3.8848954 4.960201,4.0222057 L 4.1885612,5.3519223 c -0.1226707,0.1139369 -0.184056,0.2566264 -0.1840228,0.4280696 -2.45e-5,0.1599419 0.051082,0.2969925 0.1533468,0.4111144 0.1021978,0.1140852 0.2249683,0.1711462 0.3682777,0.1711462 0.1532472,0 0.2862541,-0.068488 0.3989206,-0.2054272 l 0.8959802,-1.50064 1.45563,-0.246662 L 4.2570354,9.0973169 1.7965727,8.3909191 c -0.1944583,0 -0.3718955,0.039275 -0.5049023,0.1763999 C 1.1587305,8.7044064 1.023622,8.8259892 1.023622,9.0427316 c 0,0.2055763 0.084747,0.3840352 0.2176873,0.5267625 0.1329734,0.1427266 0.2647139,0.2191324 0.4437625,0.2651527 z"/>
|
||||||
|
</svg>
|
After Width: | Height: | Size: 2 KiB |
364
assets/layers/fitness_station/fitness_station.json
Normal file
|
@ -0,0 +1,364 @@
|
||||||
|
{
|
||||||
|
"id": "fitness_station",
|
||||||
|
"name": {
|
||||||
|
"en": "Fitness Stations"
|
||||||
|
},
|
||||||
|
"description": {
|
||||||
|
"en": "Find a fitness station near you, and add missing ones."
|
||||||
|
},
|
||||||
|
"source": {
|
||||||
|
"osmTags": "leisure=fitness_station"
|
||||||
|
},
|
||||||
|
"minzoom": 12,
|
||||||
|
"title": {
|
||||||
|
"render": {
|
||||||
|
"en": "Fitness Station"
|
||||||
|
},
|
||||||
|
"mappings": [
|
||||||
|
{
|
||||||
|
"if": "name~*",
|
||||||
|
"then": {
|
||||||
|
"en": "Fitness Station {name}"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"tagRenderings": [
|
||||||
|
{
|
||||||
|
"id": "name",
|
||||||
|
"question": {
|
||||||
|
"en": "What is the name of this fitness station?"
|
||||||
|
},
|
||||||
|
"freeform": {
|
||||||
|
"key": "name",
|
||||||
|
"placeholder": {
|
||||||
|
"en": "Name of the fitness station"
|
||||||
|
},
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"mappings": [
|
||||||
|
{
|
||||||
|
"if": "noname=yes",
|
||||||
|
"then": {
|
||||||
|
"en": "This fitness station doesn't have a name"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"render": {
|
||||||
|
"en": "This fitness station is called {name}"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "type",
|
||||||
|
"question": {
|
||||||
|
"en": "What kind of equipment does this fitness station have?"
|
||||||
|
},
|
||||||
|
"mappings": [
|
||||||
|
{
|
||||||
|
"if": "fitness_station=horizontal_bar",
|
||||||
|
"then": {
|
||||||
|
"en": "This fitness station has a horizontal bar, high enough for pull-ups."
|
||||||
|
},
|
||||||
|
"icon": {
|
||||||
|
"path": "./assets/layers/fitness_station/Trimm-Dich-Pfad_Grünwalder_Forst_Klimmzüge.jpg",
|
||||||
|
"class": "large"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"if": "fitness_station=sign",
|
||||||
|
"then": {
|
||||||
|
"en": "This fitness station has a sign with instructions for a specific exercise."
|
||||||
|
},
|
||||||
|
"icon": {
|
||||||
|
"path": "./assets/layers/fitness_station/Outdoor_fitness_station_sign.jpg",
|
||||||
|
"class": "large"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"if": "fitness_station=sit-up",
|
||||||
|
"then": {
|
||||||
|
"en": "This fitness station has a facility for sit-ups."
|
||||||
|
},
|
||||||
|
"icon": {
|
||||||
|
"path": "./assets/layers/fitness_station/Inclined_sit-up_bench.jpg",
|
||||||
|
"class": "large"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"if": "fitness_station=push-up",
|
||||||
|
"then": {
|
||||||
|
"en": "This fitness station has a facility for push-ups. Usually consists of one or more low horizontal bars."
|
||||||
|
},
|
||||||
|
"icon": {
|
||||||
|
"path": "./assets/layers/fitness_station/Push-up_bars.jpg",
|
||||||
|
"class": "large"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"if": "fitness_station=stretch_bars",
|
||||||
|
"then": {
|
||||||
|
"en": "This fitness station has bars for stretching."
|
||||||
|
},
|
||||||
|
"icon": {
|
||||||
|
"path": "./assets/layers/fitness_station/Fitness_station_stretch_bars.jpg",
|
||||||
|
"class": "large"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"if": "fitness_station=hyperextension",
|
||||||
|
"then": {
|
||||||
|
"en": "This fitness station has a station for making hyperextensions."
|
||||||
|
},
|
||||||
|
"icon": {
|
||||||
|
"path": "./assets/layers/fitness_station/Inclined_sit-up_and_hyperextension_bench.jpg",
|
||||||
|
"class": "large"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"if": "fitness_station=rings",
|
||||||
|
"then": {
|
||||||
|
"en": "This fitness station has rings for gymnastic exercises."
|
||||||
|
},
|
||||||
|
"icon": {
|
||||||
|
"path": "./assets/layers/fitness_station/Exercise9159.jpg",
|
||||||
|
"class": "large"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"if": "fitness_station=horizontal_ladder",
|
||||||
|
"then": {
|
||||||
|
"en": "This fitness station has a horizontal ladder, also known as monkey bars."
|
||||||
|
},
|
||||||
|
"icon": {
|
||||||
|
"path": "./assets/layers/fitness_station/Horizontal_ladder.jpg",
|
||||||
|
"class": "large"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"if": "fitness_station=wall_bars",
|
||||||
|
"then": {
|
||||||
|
"en": "This fitness station has wall bars to climb on."
|
||||||
|
},
|
||||||
|
"icon": {
|
||||||
|
"path": "./assets/layers/fitness_station/RIAN_archive_493268_Sports_at_a_kindergarten.jpg",
|
||||||
|
"class": "large"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"if": "fitness_station=slalom",
|
||||||
|
"then": {
|
||||||
|
"en": "This fitness station has posts for performing slalom exercises."
|
||||||
|
},
|
||||||
|
"icon": {
|
||||||
|
"path": "./assets/layers/fitness_station/Fitness_station_slalom.jpg",
|
||||||
|
"class": "large"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"if": "fitness_station=stepping_stones",
|
||||||
|
"then": {
|
||||||
|
"en": "This fitness station has stepping stones."
|
||||||
|
},
|
||||||
|
"icon": {
|
||||||
|
"path": "./assets/layers/fitness_station/Fitness_station_stepping_stone.jpg",
|
||||||
|
"class": "large"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"if": "fitness_station=leapfrog",
|
||||||
|
"then": {
|
||||||
|
"en": "This fitness station has cones for performing leapfrog jumps."
|
||||||
|
},
|
||||||
|
"icon": {
|
||||||
|
"path": "./assets/layers/fitness_station/Fitness_station_leapfrog.jpg",
|
||||||
|
"class": "large"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"if": "fitness_station=beam_jump",
|
||||||
|
"then": {
|
||||||
|
"en": "This fitness station has beams to jump over."
|
||||||
|
},
|
||||||
|
"icon": {
|
||||||
|
"path": "./assets/layers/fitness_station/Fitness_station_beam_jump.jpg",
|
||||||
|
"class": "large"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"if": "fitness_station=hurdling",
|
||||||
|
"then": {
|
||||||
|
"en": "This fitness station has hurdles to cross."
|
||||||
|
},
|
||||||
|
"icon": {
|
||||||
|
"path": "./assets/layers/fitness_station/Fitness_station_hurdling.jpg",
|
||||||
|
"class": "large"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"if": "fitness_station=wall",
|
||||||
|
"then": {
|
||||||
|
"en": "This fitness station has a wall to climb on."
|
||||||
|
},
|
||||||
|
"icon": {
|
||||||
|
"path": "./assets/layers/fitness_station/Fitness_station_wall.jpg",
|
||||||
|
"class": "large"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"if": "fitness_station=balance_beam",
|
||||||
|
"then": {
|
||||||
|
"en": "This fitness station has a balance beam."
|
||||||
|
},
|
||||||
|
"icon": {
|
||||||
|
"path": "./assets/layers/fitness_station/Exercise9170.jpg",
|
||||||
|
"class": "large"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"if": "fitness_station=log_lifting",
|
||||||
|
"then": {
|
||||||
|
"en": "This fitness station has a log with a handle on the end to lift."
|
||||||
|
},
|
||||||
|
"icon": {
|
||||||
|
"path": "./assets/layers/fitness_station/Log_lifting_exercise.jpg",
|
||||||
|
"class": "large"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"if": "fitness_station=captains_chair",
|
||||||
|
"then": {
|
||||||
|
"en": "This fitness station has a chair with only elbow supports and a rear (without seat), for performing leg raises."
|
||||||
|
},
|
||||||
|
"icon": {
|
||||||
|
"path": "./assets/layers/fitness_station/Captains_chair.jpg",
|
||||||
|
"class": "large"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"if": "fitness_station=box",
|
||||||
|
"then": {
|
||||||
|
"en": "This fitness station has a box that can be used for jumping."
|
||||||
|
},
|
||||||
|
"icon": {
|
||||||
|
"path": "./assets/layers/fitness_station/Exercise_Box.jpg",
|
||||||
|
"class": "large"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"if": "fitness_station=battling_ropes",
|
||||||
|
"then": {
|
||||||
|
"en": "This fitness station has battling ropes."
|
||||||
|
},
|
||||||
|
"icon": {
|
||||||
|
"path": "./assets/layers/fitness_station/Battling_ropes.jpg",
|
||||||
|
"class": "large"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"if": "fitness_station=excercise_bike",
|
||||||
|
"then": {
|
||||||
|
"en": "This fitness station has a stationary bicycle."
|
||||||
|
},
|
||||||
|
"icon": {
|
||||||
|
"path": "./assets/layers/fitness_station/Outdoor_stationary_bicycle.jpg",
|
||||||
|
"class": "large"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"if": "fitness_station=elliptical_trainer",
|
||||||
|
"then": {
|
||||||
|
"en": "This fitness station has a cross-trainer."
|
||||||
|
},
|
||||||
|
"icon": {
|
||||||
|
"path": "./assets/layers/fitness_station/07-12-2016,_Fitness_trail,_Parque_da_Alfarrobeira,_Albufeira_2.jpg",
|
||||||
|
"class": "large"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"if": "fitness_station=air_walker",
|
||||||
|
"then": {
|
||||||
|
"en": "This fitness station has an air walker."
|
||||||
|
},
|
||||||
|
"icon": {
|
||||||
|
"path": "./assets/layers/fitness_station/Ansan_Park_beind_the_city_hall_022.jpg",
|
||||||
|
"class": "large"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"if": "fitness_station=rower",
|
||||||
|
"then": {
|
||||||
|
"en": "This fitness station has a rower."
|
||||||
|
},
|
||||||
|
"icon": {
|
||||||
|
"path": "./assets/layers/fitness_station/Annecy_-_rower.jpg",
|
||||||
|
"class": "large"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"if": "fitness_station=slackline",
|
||||||
|
"then": {
|
||||||
|
"en": "This fitness station has a slackline."
|
||||||
|
},
|
||||||
|
"icon": {
|
||||||
|
"path": "./assets/layers/fitness_station/Slacklineanlage_im_Dietenbachpark.jpg",
|
||||||
|
"class": "large"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"multiAnswer": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "operator",
|
||||||
|
"question": {
|
||||||
|
"en": "Who maintains this fitness station?"
|
||||||
|
},
|
||||||
|
"freeform": {
|
||||||
|
"key": "operator",
|
||||||
|
"placeholder": {
|
||||||
|
"en": "Operator of the fitness station"
|
||||||
|
},
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"render": {
|
||||||
|
"en": "The fitness station is maintained by {operator}."
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"opening_hours"
|
||||||
|
],
|
||||||
|
"presets": [
|
||||||
|
{
|
||||||
|
"tags": [
|
||||||
|
"leisure=fitness_station",
|
||||||
|
"sport=fitness"
|
||||||
|
],
|
||||||
|
"title": {
|
||||||
|
"en": "a fitness station"
|
||||||
|
},
|
||||||
|
"icon": "./assets/layers/fitness_station/fitness.svg"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"mapRendering": [
|
||||||
|
{
|
||||||
|
"location": [
|
||||||
|
"point",
|
||||||
|
"centroid"
|
||||||
|
],
|
||||||
|
"icon": "circle:white;./assets/layers/fitness_station/fitness.svg",
|
||||||
|
"iconSize": "40,40,center",
|
||||||
|
"iconBadges": [
|
||||||
|
{
|
||||||
|
"if": {
|
||||||
|
"and": [
|
||||||
|
"opening_hours!=24/7",
|
||||||
|
"opening_hours~*"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"then": "isOpen"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"filter": [
|
||||||
|
"open_now"
|
||||||
|
]
|
||||||
|
}
|
264
assets/layers/fitness_station/license_info.json
Normal file
|
@ -0,0 +1,264 @@
|
||||||
|
[
|
||||||
|
{
|
||||||
|
"path": "07-12-2016,_Fitness_trail,_Parque_da_Alfarrobeira,_Albufeira_2.jpg",
|
||||||
|
"license": "CC-BY-SA",
|
||||||
|
"authors": [
|
||||||
|
"Kolforn"
|
||||||
|
],
|
||||||
|
"sources": [
|
||||||
|
"https://commons.wikimedia.org/wiki/File:07-12-2016,_Fitness_trail,_Parque_da_Alfarrobeira,_Albufeira_(2).JPG"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"path": "Annecy_-_rower.jpg",
|
||||||
|
"license": "CC-BY-SA",
|
||||||
|
"authors": [
|
||||||
|
"Tiia Monto"
|
||||||
|
],
|
||||||
|
"sources": [
|
||||||
|
"https://commons.wikimedia.org/wiki/File:Annecy_-_rower.jpg"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"path": "Ansan_Park_beind_the_city_hall_022.jpg",
|
||||||
|
"license": "CC-BY-SA",
|
||||||
|
"authors": [
|
||||||
|
"Piotrus"
|
||||||
|
],
|
||||||
|
"sources": [
|
||||||
|
"https://commons.wikimedia.org/wiki/File:Ansan_Park_(beind_the_city_hall)_022.JPG"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"path": "Battling_ropes.jpg",
|
||||||
|
"license": "CC-BY-SA",
|
||||||
|
"authors": [
|
||||||
|
"Tpikonen"
|
||||||
|
],
|
||||||
|
"sources": [
|
||||||
|
"https://commons.wikimedia.org/wiki/File:Battling_ropes.jpg"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"path": "Captains_chair.jpg",
|
||||||
|
"license": "CC-BY-SA",
|
||||||
|
"authors": [
|
||||||
|
"Tpikonen"
|
||||||
|
],
|
||||||
|
"sources": [
|
||||||
|
"https://commons.wikimedia.org/wiki/File:Captains_chair.jpg"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"path": "Exercise9159.jpg",
|
||||||
|
"license": "CC-BY-SA",
|
||||||
|
"authors": [
|
||||||
|
"יעקב"
|
||||||
|
],
|
||||||
|
"sources": [
|
||||||
|
"https://commons.wikimedia.org/wiki/File:Exercise9159.jpg"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"path": "Exercise9170.jpg",
|
||||||
|
"license": "CC-BY-SA",
|
||||||
|
"authors": [
|
||||||
|
"יעקב"
|
||||||
|
],
|
||||||
|
"sources": [
|
||||||
|
"https://commons.wikimedia.org/wiki/File:Exercise9170.JPG"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"path": "Exercise_Box.jpg",
|
||||||
|
"license": "CC-BY-SA",
|
||||||
|
"authors": [
|
||||||
|
"Tpikonen"
|
||||||
|
],
|
||||||
|
"sources": [
|
||||||
|
"https://commons.wikimedia.org/wiki/File:Exercise_Box.jpg"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"path": "Fitness_station_beam_jump.jpg",
|
||||||
|
"license": "CC-BY-SA",
|
||||||
|
"authors": [
|
||||||
|
"Axelos"
|
||||||
|
],
|
||||||
|
"sources": [
|
||||||
|
"https://wiki.openstreetmap.org/wiki/File:Fitness_station_beam_jump.jpg"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"path": "Fitness_station_hurdling.jpg",
|
||||||
|
"license": "CC-BY-SA",
|
||||||
|
"authors": [
|
||||||
|
"Axelos"
|
||||||
|
],
|
||||||
|
"sources": [
|
||||||
|
"https://wiki.openstreetmap.org/wiki/File:Fitness_station_hurdling.jpg"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"path": "Fitness_station_leapfrog.jpg",
|
||||||
|
"license": "CC-BY-SA",
|
||||||
|
"authors": [
|
||||||
|
"Axelos"
|
||||||
|
],
|
||||||
|
"sources": [
|
||||||
|
"https://wiki.openstreetmap.org/wiki/File:Fitness_station_leapfrog.jpg"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"path": "Fitness_station_slalom.jpg",
|
||||||
|
"license": "CC-BY-SA",
|
||||||
|
"authors": [
|
||||||
|
"Axelos"
|
||||||
|
],
|
||||||
|
"sources": [
|
||||||
|
"https://wiki.openstreetmap.org/wiki/File:Fitness_station_slalom.jpg"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"path": "Fitness_station_stepping_stone.jpg",
|
||||||
|
"license": "CC-BY-SA",
|
||||||
|
"authors": [
|
||||||
|
"Axelos"
|
||||||
|
],
|
||||||
|
"sources": [
|
||||||
|
"https://wiki.openstreetmap.org/wiki/File:Fitness_station_stepping_stone.jpg"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"path": "Fitness_station_stretch_bars.jpg",
|
||||||
|
"license": "CC-BY-SA",
|
||||||
|
"authors": [
|
||||||
|
"Axelos"
|
||||||
|
],
|
||||||
|
"sources": [
|
||||||
|
"https://wiki.openstreetmap.org/wiki/File:Fitness_station_stretch_bars.jpg"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"path": "Fitness_station_wall.jpg",
|
||||||
|
"license": "CC-BY-SA",
|
||||||
|
"authors": [
|
||||||
|
"Axelos",
|
||||||
|
"Al-Hun"
|
||||||
|
],
|
||||||
|
"sources": [
|
||||||
|
"https://wiki.openstreetmap.org/wiki/File:Fitness_station_wall.jpg"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"path": "Horizontal_ladder.jpg",
|
||||||
|
"license": "CC-BY-SA",
|
||||||
|
"authors": [
|
||||||
|
"Tpikonen"
|
||||||
|
],
|
||||||
|
"sources": [
|
||||||
|
"https://commons.wikimedia.org/wiki/File:Horizontal_ladder.jpg"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"path": "Inclined_sit-up_and_hyperextension_bench.jpg",
|
||||||
|
"license": "CC-BY-SA",
|
||||||
|
"authors": [
|
||||||
|
"Tpikonen"
|
||||||
|
],
|
||||||
|
"sources": [
|
||||||
|
"https://commons.wikimedia.org/wiki/File:Inclined_sit-up_and_hyperextension_bench.jpg"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"path": "Inclined_sit-up_bench.jpg",
|
||||||
|
"license": "CC-BY-SA",
|
||||||
|
"authors": [
|
||||||
|
"Tpikonen"
|
||||||
|
],
|
||||||
|
"sources": [
|
||||||
|
"https://commons.wikimedia.org/wiki/File:Inclined_sit-up_bench.jpg"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"path": "Log_lifting_exercise.jpg",
|
||||||
|
"license": "CC-BY-SA",
|
||||||
|
"authors": [
|
||||||
|
"Tpikonen"
|
||||||
|
],
|
||||||
|
"sources": [
|
||||||
|
"https://commons.wikimedia.org/wiki/File:Log_lifting_exercise.jpg"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"path": "Outdoor_fitness_station_sign.jpg",
|
||||||
|
"license": "CC-BY-SA",
|
||||||
|
"authors": [
|
||||||
|
"kaitu"
|
||||||
|
],
|
||||||
|
"sources": [
|
||||||
|
"https://commons.wikimedia.org/wiki/File:Outdoor_fitness_station_sign.jpg",
|
||||||
|
"https://www.mapillary.com/app/?pKey=iWBo8pm9COksv8Qc8E7cfw&lat=45.87432166666667&lng=9.487998999999999&focus=photo&z=17&x=0.4903320875161608&y=0.48257487392238285&zoom=0"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"path": "Outdoor_stationary_bicycle.jpg",
|
||||||
|
"license": "CC-BY-SA",
|
||||||
|
"authors": [
|
||||||
|
"Tpikonen"
|
||||||
|
],
|
||||||
|
"sources": [
|
||||||
|
"https://commons.wikimedia.org/wiki/File:Outdoor_stationary_bicycle.jpg"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"path": "Push-up_bars.jpg",
|
||||||
|
"license": "CC-BY-SA",
|
||||||
|
"authors": [
|
||||||
|
"Tpikonen"
|
||||||
|
],
|
||||||
|
"sources": [
|
||||||
|
"https://commons.wikimedia.org/wiki/File:Push-up_bars.jpg"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"path": "RIAN_archive_493268_Sports_at_a_kindergarten.jpg",
|
||||||
|
"license": "CC-BY-SA",
|
||||||
|
"authors": [
|
||||||
|
"Igor Utkin"
|
||||||
|
],
|
||||||
|
"sources": [
|
||||||
|
"https://commons.wikimedia.org/wiki/File:RIAN_archive_493268_Sports_at_a_kindergarten.jpg"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"path": "Slacklineanlage_im_Dietenbachpark.jpg",
|
||||||
|
"license": "CC-BY-SA",
|
||||||
|
"authors": [
|
||||||
|
"Andreas Schwarzkopf"
|
||||||
|
],
|
||||||
|
"sources": [
|
||||||
|
"https://commons.wikimedia.org/wiki/File:Slacklineanlage_im_Dietenbachpark.jpg"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"path": "Trimm-Dich-Pfad_Grünwalder_Forst_Klimmzüge.jpg",
|
||||||
|
"license": "CC-BY-SA",
|
||||||
|
"authors": [
|
||||||
|
"Zeitlupe"
|
||||||
|
],
|
||||||
|
"sources": [
|
||||||
|
"https://commons.wikimedia.org/wiki/File:Trimm-Dich-Pfad_Grünwalder_Forst_Klimmzüge.jpg"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"path": "fitness.svg",
|
||||||
|
"license": "CC0",
|
||||||
|
"authors": [
|
||||||
|
"Kocio"
|
||||||
|
],
|
||||||
|
"sources": [
|
||||||
|
"https://github.com/gravitystorm/openstreetmap-carto/blob/master/symbols/leisure/fitness.svg"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
|
@ -580,5 +580,8 @@
|
||||||
"width": "1",
|
"width": "1",
|
||||||
"fill": "false"
|
"fill": "false"
|
||||||
}
|
}
|
||||||
|
],
|
||||||
|
"filter": [
|
||||||
|
"open_now"
|
||||||
]
|
]
|
||||||
}
|
}
|
13
assets/layers/sports_centre/license_info.json
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
[
|
||||||
|
{
|
||||||
|
"path": "sports_centre.svg",
|
||||||
|
"license": "CC-BY",
|
||||||
|
"authors": [
|
||||||
|
"Hello world",
|
||||||
|
"The Noun Project"
|
||||||
|
],
|
||||||
|
"sources": [
|
||||||
|
"https://thenounproject.com/icon/rogers-centre-464379/"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
67
assets/layers/sports_centre/sports_centre.json
Normal file
|
@ -0,0 +1,67 @@
|
||||||
|
{
|
||||||
|
"id": "sports_centre",
|
||||||
|
"name": {
|
||||||
|
"en": "Sports centres"
|
||||||
|
},
|
||||||
|
"description": {
|
||||||
|
"en": "Indoor and outdoor sports centres can be found on this layer"
|
||||||
|
},
|
||||||
|
"minzoom": 12,
|
||||||
|
"source": {
|
||||||
|
"osmTags": "leisure=sports_centre"
|
||||||
|
},
|
||||||
|
"title": {
|
||||||
|
"render": {
|
||||||
|
"en": "Sports centre"
|
||||||
|
},
|
||||||
|
"mappings": [
|
||||||
|
{
|
||||||
|
"if": "name~*",
|
||||||
|
"then": "{name}"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"tagRenderings": [
|
||||||
|
"images",
|
||||||
|
"opening_hours",
|
||||||
|
"phone",
|
||||||
|
"website",
|
||||||
|
"email",
|
||||||
|
"wheelchair-access"
|
||||||
|
],
|
||||||
|
"presets": [
|
||||||
|
{
|
||||||
|
"title": {
|
||||||
|
"en": "a sports centre"
|
||||||
|
},
|
||||||
|
"tags": [
|
||||||
|
"leisure=sports_centre"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"mapRendering": [
|
||||||
|
{
|
||||||
|
"icon": "circle:white;./assets/layers/sports_centre/sports_centre.svg",
|
||||||
|
"iconBadges": [
|
||||||
|
{
|
||||||
|
"if": "opening_hours~*",
|
||||||
|
"then": "isOpen"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"location": [
|
||||||
|
"point",
|
||||||
|
"centroid"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"color": "darkgreen",
|
||||||
|
"fill": "no"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"allowMove": {
|
||||||
|
"enableImproveAccuracy": true
|
||||||
|
},
|
||||||
|
"filter": [
|
||||||
|
"open_now"
|
||||||
|
]
|
||||||
|
}
|
7
assets/layers/sports_centre/sports_centre.svg
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<svg width="700pt" height="700pt" version="1.1" viewBox="0 0 700 700" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||||
|
<g>
|
||||||
|
<path d="m591.92 328.72c0-49.281-110.88-127.68-242.48-127.68-131.6 0-242.48 78.398-242.48 127.68v0.55859 0.55859 89.602c0 3.9219 2.8008 6.7188 6.7188 6.7188l471.52 0.003906c3.9219 0 6.7188-2.8008 6.7188-6.7188v-89.602c0.003906-0.55859 0.003906-0.55859 0.003906-1.1211zm-242.48-114.24c123.76 0 218.96 68.879 227.92 108.08h-36.398c-12.32-30.238-89.039-89.602-191.52-89.602-106.4 0-176.96 45.359-191.52 89.602h-36.406c8.9609-39.199 104.16-108.08 227.92-108.08zm176.96 108.08h-354.48c20.156-47.598 103.6-76.16 177.52-76.16 92.398 0 160.72 51.523 176.96 76.16zm52.082 89.602h-457.52v-76.16h457.52z"/>
|
||||||
|
<path d="m427.84 346.64h-156.8v46.48h156.8zm-61.602 13.438v20.16h-33.602v-20.16zm-81.758 0h34.719v20.16h-34.719zm129.92 20.16h-34.719v-20.16h34.719z"/>
|
||||||
|
</g>
|
||||||
|
</svg>
|
After Width: | Height: | Size: 958 B |
|
@ -350,6 +350,10 @@
|
||||||
"if": "theme=sport_pitches",
|
"if": "theme=sport_pitches",
|
||||||
"then": "./assets/layers/sport_pitch/table_tennis.svg"
|
"then": "./assets/layers/sport_pitch/table_tennis.svg"
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"if": "theme=sports",
|
||||||
|
"then": "./assets/themes/sports/sport.svg"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"if": "theme=street_lighting",
|
"if": "theme=street_lighting",
|
||||||
"then": "./assets/layers/street_lamps/street_lamp.svg"
|
"then": "./assets/layers/street_lamps/street_lamp.svg"
|
||||||
|
|
13
assets/themes/sports/license_info.json
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
[
|
||||||
|
{
|
||||||
|
"path": "sport.svg",
|
||||||
|
"license": "CC-BY",
|
||||||
|
"authors": [
|
||||||
|
"Tobias Zwick",
|
||||||
|
"modified from EmojiOne 2: U+26BD"
|
||||||
|
],
|
||||||
|
"sources": [
|
||||||
|
"https://github.com/streetcomplete/StreetComplete/blob/master/res/graphics/quest/sport.svg"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
81
assets/themes/sports/sport.svg
Normal file
|
@ -0,0 +1,81 @@
|
||||||
|
<?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"
|
||||||
|
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||||
|
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||||
|
version="1.1"
|
||||||
|
viewBox="0 0 500 500"
|
||||||
|
id="svg14"
|
||||||
|
sodipodi:docname="sport.svg"
|
||||||
|
width="500"
|
||||||
|
height="500"
|
||||||
|
inkscape:version="1.0.1 (3bc2e813f5, 2020-09-07)">
|
||||||
|
<metadata
|
||||||
|
id="metadata20">
|
||||||
|
<rdf:RDF>
|
||||||
|
<cc:Work
|
||||||
|
rdf:about="">
|
||||||
|
<dc:format>image/svg+xml</dc:format>
|
||||||
|
<dc:type
|
||||||
|
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
|
||||||
|
<dc:title></dc:title>
|
||||||
|
</cc:Work>
|
||||||
|
</rdf:RDF>
|
||||||
|
</metadata>
|
||||||
|
<defs
|
||||||
|
id="defs18" />
|
||||||
|
<sodipodi:namedview
|
||||||
|
pagecolor="#ffffff"
|
||||||
|
bordercolor="#666666"
|
||||||
|
borderopacity="1"
|
||||||
|
objecttolerance="10"
|
||||||
|
gridtolerance="10"
|
||||||
|
guidetolerance="10"
|
||||||
|
inkscape:pageopacity="0"
|
||||||
|
inkscape:pageshadow="2"
|
||||||
|
inkscape:window-width="3840"
|
||||||
|
inkscape:window-height="2066"
|
||||||
|
id="namedview16"
|
||||||
|
showgrid="false"
|
||||||
|
inkscape:zoom="2.8710938"
|
||||||
|
inkscape:cx="-17.268661"
|
||||||
|
inkscape:cy="216.03852"
|
||||||
|
inkscape:window-x="2149"
|
||||||
|
inkscape:window-y="-11"
|
||||||
|
inkscape:window-maximized="1"
|
||||||
|
inkscape:current-layer="svg14" />
|
||||||
|
<g
|
||||||
|
id="g859"
|
||||||
|
transform="scale(3.90625)">
|
||||||
|
<path
|
||||||
|
d="M 128,64 C 128,99.346 99.346,128 64,128 28.654,128 0,99.346 0,64 0,28.654 28.654,0 64,0 c 35.346,0 64,28.654 64,64"
|
||||||
|
fill="#9bbe55"
|
||||||
|
stroke-width="0.2"
|
||||||
|
id="path2" />
|
||||||
|
<g
|
||||||
|
transform="translate(-1009.8,436.95)"
|
||||||
|
id="g12">
|
||||||
|
<path
|
||||||
|
d="m 1118.6,-370.45 a 44.983,44.542 0 0 1 -44.983,44.542 44.983,44.542 0 0 1 -44.983,-44.542 44.983,44.542 0 0 1 44.983,-44.542 44.983,44.542 0 0 1 44.983,44.542"
|
||||||
|
fill-opacity="0.2"
|
||||||
|
id="path4" />
|
||||||
|
<g
|
||||||
|
transform="matrix(3.7795,0,0,3.7795,1277,-1165)"
|
||||||
|
id="g10">
|
||||||
|
<path
|
||||||
|
d="m -42.319,209.13 a 11.405,11.405 0 0 1 -11.405,11.405 11.405,11.405 0 0 1 -11.405,-11.405 11.405,11.405 0 0 1 11.405,-11.405 11.405,11.405 0 0 1 11.405,11.405"
|
||||||
|
fill="#ffffff"
|
||||||
|
id="path6" />
|
||||||
|
<path
|
||||||
|
d="m -42.031,209.08 c 0,-0.27566 0.07876,-4.2924 -2.2841,-6.8916 -0.11814,-0.23628 -0.59071,-1.1814 -2.2053,-2.3234 -1.0633,-0.82698 -2.1659,-1.4177 -2.2841,-1.4964 -0.11814,-0.0788 -2.0872,-1.1026 -4.45,-1.1026 -0.1969,0 -0.35442,0 -0.55132,0.0394 -1.8115,-0.0394 -3.4655,0.43318 -4.6863,0.98451 -1.2602,0.55132 -2.0872,1.1026 -2.1659,1.1814 -1.3389,0.74823 -3.8987,3.7411 -4.0956,5.3557 -0.82699,1.0239 -1.4965,5.7102 0,8.5455 1.0633,3.938 5.0013,5.907 5.3163,6.0646 0.1969,0.11814 2.3234,1.4571 4.9619,1.4571 h 0.35442 c 0.23628,0.0394 0.43318,0.0394 0.66947,0.0394 2.8354,0 7.0885,-2.0084 7.9548,-3.5836 2.4416,-1.8115 3.7018,-6.3796 3.4655,-8.2699 m -17.367,5.9464 c -1.142,-1.8115 -1.7721,-4.2137 -1.9296,-4.765 0.35442,-0.55132 2.1265,-3.1504 3.111,-3.938 0.55132,0.11814 2.9535,0.55132 5.1982,0.94513 0.27566,0.74822 1.5358,3.938 1.8903,5.1982 -0.3938,0.47257 -1.9296,2.2447 -3.4261,3.623 -1.6146,0.0394 -4.3318,-0.90574 -4.8438,-1.0633 m 14.177,-12.799 c 0,0.15752 -0.03938,0.78761 -0.35442,1.5358 -0.5907,-0.31505 -2.0872,-0.94513 -4.1743,-1.0633 -0.31504,-0.47257 -1.4965,-2.0872 -3.3473,-3.1898 0.23628,-0.51194 0.59071,-1.1026 0.82699,-1.2996 0.07876,0 0.15752,-0.0394 0.31504,-0.0394 0.98451,0 2.7172,0.66946 2.8748,0.70884 0.15752,0.0788 3.2686,1.7327 3.8593,3.3473 m -16.54,7.6398 c -1.3389,-0.23628 -2.1659,-0.63009 -2.4022,-0.78761 -0.51194,-1.8115 -0.07876,-3.7805 -0.03938,-4.0562 0.51194,-0.86637 1.8903,-3.1504 2.8354,-3.5836 0.94513,-0.19691 2.1659,0.0394 2.6385,0.15752 -0.03938,0.63008 -0.11814,2.4022 0.11814,4.2925 -1.0239,0.86636 -2.7172,3.3473 -3.1504,3.9774 m 7.8367,-12.011 c 0.31504,0.0394 0.74823,0.0788 1.0633,0.1969 -0.31504,0.3938 -0.63009,0.98451 -0.74823,1.2996 -0.63009,0.11814 -2.9535,0.55132 -4.8044,1.7327 -0.35442,-0.0788 -1.4965,-0.35442 -2.5597,-0.27566 0.27566,-0.51194 0.66947,-0.86637 0.70885,-0.90575 0.11814,-0.11814 2.9141,-2.0872 6.3402,-2.0478 m 7.5216,15.004 c -0.47256,0 -2.2447,-0.11815 -4.1743,-0.59071 -0.35442,-1.2996 -1.6146,-4.4894 -1.8903,-5.2376 1.2208,-1.7327 2.4022,-3.3473 2.7172,-3.8199 2.2447,0.15752 3.8199,0.98451 4.1349,1.142 1.2996,2.0872 1.5752,4.2137 1.6146,4.5681 -0.70885,2.1659 -2.0478,3.623 -2.4022,3.938 m -18.548,-5.1588 c 0.03938,0.51195 0.11814,1.0239 0.27566,1.5358 -0.11814,0.35443 -0.23628,0.70885 -0.27566,1.0633 -0.11814,-0.90574 -0.11814,-1.8115 0,-2.5991 m 5.8283,11.223 -0.15752,0.23628 0.15752,-0.23628 c -0.98451,-0.47257 -1.7327,-1.5752 -2.0478,-2.0084 0.59071,-0.5907 1.3389,-1.142 1.6146,-1.3389 0.63009,0.23628 3.2686,1.1026 4.9619,1.1026 0.27566,0.3938 1.2208,1.5752 2.3628,2.5203 -0.70885,0.70885 -1.7327,1.0239 -1.9296,1.1026 -2.6779,0.0788 -4.9619,-1.3783 -4.9619,-1.3783 m 6.419,1.3389 c 0.35442,-0.1969 0.74823,-0.47256 1.0633,-0.82699 0.51194,-0.0788 2.7172,-0.43318 4.6863,-1.8902 0.11814,0 0.35442,0.0394 0.5907,0.0394 -1.2208,1.142 -4.1349,2.4416 -6.3402,2.6779 m 6.0646,-3.308 c 0.70885,-1.8509 0.66947,-3.2686 0.63008,-3.7018 0.3938,-0.3938 1.7327,-1.8115 2.481,-3.9774 0.3938,0.0788 0.66947,0.15753 0.78761,0.23629 0.03938,0.15752 0.11814,0.51194 0.07876,1.0633 -0.31504,1.969 -1.3389,4.9619 -3.1898,6.2615 -0.1969,0.11814 -0.51194,0.15752 -0.78761,0.11814"
|
||||||
|
fill="#555555"
|
||||||
|
stroke-width="0.2067"
|
||||||
|
id="path8" />
|
||||||
|
</g>
|
||||||
|
</g>
|
||||||
|
</g>
|
||||||
|
</svg>
|
After Width: | Height: | Size: 5.5 KiB |
58
assets/themes/sports/sports.json
Normal file
|
@ -0,0 +1,58 @@
|
||||||
|
{
|
||||||
|
"id": "sports",
|
||||||
|
"title": {
|
||||||
|
"en": "Sports",
|
||||||
|
"nl": "Sport"
|
||||||
|
},
|
||||||
|
"shortDescription": {
|
||||||
|
"en": "Map showing sport facilities.",
|
||||||
|
"nl": "Kaart met sportfaciliteiten."
|
||||||
|
},
|
||||||
|
"description": {
|
||||||
|
"en": "All about sports, find sport pitches, fitness centres and more.",
|
||||||
|
"nl": "Alles over sport: vind sportvelden, fitnesscentra en meer."
|
||||||
|
},
|
||||||
|
"icon": "./assets/themes/sports/sport.svg",
|
||||||
|
"startLat": 0,
|
||||||
|
"startLon": 0,
|
||||||
|
"startZoom": 1,
|
||||||
|
"layers": [
|
||||||
|
"sport_pitch",
|
||||||
|
"fitness_centre",
|
||||||
|
"fitness_station",
|
||||||
|
"sports_centre",
|
||||||
|
{
|
||||||
|
"builtin": "shops",
|
||||||
|
"override": {
|
||||||
|
"source": {
|
||||||
|
"osmTags": {
|
||||||
|
"and": [
|
||||||
|
"shop=sports"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"presets": [
|
||||||
|
{
|
||||||
|
"tags": [
|
||||||
|
"shop=sports"
|
||||||
|
],
|
||||||
|
"title": {
|
||||||
|
"en": "a sports shop",
|
||||||
|
"nl": "een sportwinkel"
|
||||||
|
},
|
||||||
|
"description": {
|
||||||
|
"en": "Add a new shop selling sports goods.",
|
||||||
|
"nl": "Voeg een nieuwe winkel toe die sportartikelen verkoopt."
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"minzoom": 12,
|
||||||
|
"mapRendering": [
|
||||||
|
{
|
||||||
|
"icon": "./assets/layers/id_presets/maki-shop.svg"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|