mapcomplete/assets/layers/bike_monitoring_station/bike_monitoring_station.json

63 lines
1.3 KiB
JSON

{
"id": "bike_monitoring_station",
"name": {
"en": "Monitoring stations"
},
"minzoom": 12,
"source": {
"osmTags": {
"and": [
"man_made=monitoring_station",
"monitoring:bicycle=yes"
]
}
},
"title": {
"render": {
"nl": "Fietstelstation",
"en": "Bicycle counting station"
},
"mappings": [
{
"if": "name~*",
"then": {
"en": "Bicycle counting station {name}",
"nl": "Fietstelstation {name}"
}
},
{
"if": "ref~*",
"then": {
"en": "Bicycle counting station {ref}",
"nl": "Fietstelstation {ref}"
}
}
]
},
"tagRenderings": [
"images",
{
"render": "<b>{live({url},{url:format},hour)}</b> cyclists last hour<br/><b>{live({url},{url:format},day)}</b> cyclists today<br/><b>{live({url},{url:format},year)}</b> cyclists this year<br/>",
"condition": {
"and": [
"url~*",
"url:format~*"
]
}
}
],
"hideUnderlayingFeaturesMinPercentage": 0,
"icon": {
"render": "./assets/layers/bike_monitoring_station/monitoring_station.svg"
},
"width": {
"render": "8"
},
"iconSize": {
"render": "40,40,center"
},
"color": {
"render": "#00f"
},
"presets": []
}