mapcomplete/assets/layers/tool_library/tool_library.json

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

174 lines
3.7 KiB
JSON
Raw Normal View History

{
"credits": "Not logged in",
"minzoom": 3,
"pointRendering": [
{
"location": [
"point",
"centroid"
],
"marker": [
{
"icon": "pin",
"color": "#93E800FF"
},
{
"icon": "./assets/layers/bike_repair_station/repair_station.svg"
}
],
"anchor": "bottom",
"label": {
"mappings": [
{
"if": "name~*",
"then": {
"en": "{name}"
}
}
]
},
"labelCssClasses": "bg-white rounded px-2"
}
],
"tagRenderings": [
"images",
"contact",
"facebook",
"opening_hours_by_appointment",
{
"question": {
"en": "Is a membership required to borrow tools here?"
},
"id": "membership",
"mappings": [
{
"then": {
"en": "No membership is required to borrow tools here"
},
"if": "membership=no"
},
{
"if": "membership=required",
"then": {
"en": "A <b>membership is required</b> to use this tool library"
}
},
{
"if": "membership=optional",
"then": {
"en": "A <b>membership is possible</b> but not required to use this tool library"
}
}
]
},
{
"question": {
"en": "How much does a membership cost?"
},
"id": "membership_charge",
"questionHint": {
"en": "There might be many formulas. In case of doubt, pick the most common one"
},
"freeform": {
"key": "charge:membership",
"type": "currency"
},
"condition": "membership=required",
"render": {
"en": "A membership costs {charge:membership}"
}
},
{
"question": {
"en": "Is a fee asked to borrow tools?"
},
"id": "fee",
"mappings": [
{
"if": {
"and": [
"fee=no",
"membership=required"
]
},
"then": {
"en": "Borrowing tools is free (if one has a membership)"
},
"hideInAnswer": "membership!=required"
},
{
"if": "fee=no",
"then": {
"en": "Borrowing tools is free"
},
"hideInAnswer": "membership=required"
},
{
"if": "fee=yes",
"then": {
"en": "A fee is asked when borrowing tools"
}
},
{
"if": "fee=donation",
"then": {
"en": "A donation can be given when borrowing tools"
}
}
],
"questionHint": {
"en": "If a membership is required, we assume that the membership is already paid for."
}
}
],
"lineRendering": [
{
"width": 1,
"color": "blue"
}
],
"id": "tool_library",
"name": {
"en": "Tool libraries"
},
"description": {
"en": "A tool library is a place where people from the general public can borrow tools"
},
"source": {
"osmTags": "amenity=tool_library"
},
"title": {
"render": {
"en": "Tool library {name}"
}
},
"presets": [
{
"title": {
"en": "a tool library"
},
"tags": [
"amenity=tool_library"
],
"description": {
"en": "A tool library is a place where people from the general public can borrow tools"
}
}
],
"deletion": true,
"allowMove": true,
"units": [
{
"charge:membership": {
"inverted": true,
"quantity": "duration",
"denominations": [
"years",
"months",
"weeks"
]
}
}
]
}