Skip to content

Instantly share code, notes, and snippets.

@Danysan1
Last active February 7, 2024 23:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Danysan1/21ec00927b82d89dbfe71db1edf2f89e to your computer and use it in GitHub Desktop.
Save Danysan1/21ec00927b82d89dbfe71db1edf2f89e to your computer and use it in GitHub Desktop.
MapComplete disaster response
{
"id": "disaster_response",
"title": {
"en": "Disaster response",
"it": "Risposta ai disastri"
},
"description": {
"en": "This theme contains elements meant for disaster risk reduction and response.",
"it": "Questo tema contiene elementi pensati per la riduzione del rischio e per la risposta ai disastri."
},
"icon": "https://upload.wikimedia.org/wikipedia/commons/d/da/CivilDefense_square.svg",
"layers": [
{
"id": "disaster_response",
"title": "Disaster response",
"description": "This layer contains organizations that has the main objective to help the civil population during and after natural or anthropogenic disasters by working in the affected area",
"documentation": "https://wiki.openstreetmap.org/wiki/Tag:emergency%3Ddisaster_response",
"source": {
"osmTags": {
"and": [
"emergency=disaster_response"
]
}
},
"minzoom": 10,
"pointRendering": [
{
"iconSize": "40,40",
"location": [
"point",
"centroid"
],
"anchor": "bottom",
"marker": [
{
"icon": "pin",
"color": "#6BC4F7"
},
{
"icon": "https://upload.wikimedia.org/wikipedia/commons/d/da/CivilDefense_square.svg"
}
]
}
],
"tagRenderings": [
"images",
"website"
]
},
{
"id": "assembly_point",
"title": {
"en": "Emergency assembly points",
"it": "Aree di attesa per emergenze"
},
"description": "This layer contains designated places or an area where all employees, passengers or a large crowd assemble in case of an emergency in an installation, building or a public place.",
"documentation": "https://wiki.openstreetmap.org/wiki/Tag:emergency%3Dassembly_point",
"source": {
"osmTags": {
"and": [
"emergency=assembly_point"
]
}
},
"minzoom": 10,
"pointRendering": [
{
"iconSize": "40,40",
"location": [
"point",
"centroid"
],
"anchor": "bottom",
"marker": [
{
"icon": "pin",
"color": "#6BC4F7"
},
{
"icon": "https://upload.wikimedia.org/wikipedia/commons/8/86/E011.svg"
}
]
}
],
"tagRenderings": [
"images",
{
"id": "operator",
"render": {
"en": "This assembly point is operated by {operator}",
"it": "Questa area di attesa è gestita da {operator}"
},
"question": {
"en": "What organization operates this assembly point?",
"it": "Quale organizzazione gestisce questa area di attesa?"
},
"freeform": {
"key": "operator",
"type": "string"
}
},
{
"id": "disaster_type",
"question": {
"en": "For which disaster type is this assembly point meant?",
"it": "Per quali tipi di disastro è pensata questa area di attesa?"
},
"multiAnswer": true,
"mappings": [
{
"if": "assembly_point:earthquake=yes",
"ifnot": "assembly_point:earthquake=",
"then": {
"en": "Earthquake",
"it": "Terremoto"
},
"icon": {
"path": "https://upload.wikimedia.org/wikipedia/commons/a/a0/Earthquake_-_The_Noun_Project.svg",
"class": "medium"
}
},
{
"if": "assembly_point:flood=yes",
"ifnot": "assembly_point:flood=",
"then": {
"en": "Flood",
"it": "Alluvione"
},
"icon": {
"path": "https://upload.wikimedia.org/wikipedia/commons/b/bc/Flood_%28752%29_-_The_Noun_Project.svg",
"class": "medium"
}
},
{
"if": "assembly_point:fire=yes",
"ifnot": "assembly_point:fire=",
"then": {
"en": "Fire",
"it": "Incendio"
},
"icon": {
"path": "https://upload.wikimedia.org/wikipedia/commons/5/5c/Fire_-_The_Noun_Project.svg",
"class": "medium"
}
}
]
}
]
},
{
"id": "ses_station",
"title": "SES station",
"description": "This layer contains stations of State Emergency Service (SES), an Australian volunteer organisation that provides emergency help during and after declared (natural or otherwise) disasters.",
"documentation": "https://wiki.openstreetmap.org/wiki/Tag%3Aemergency%3Dses_station",
"source": {
"osmTags": {
"and": [
"emergency=ses_station"
]
}
},
"minzoom": 10,
"pointRendering": [
{
"iconSize": "40,40",
"location": [
"point",
"centroid"
],
"anchor": "bottom",
"marker": [
{
"icon": "pin",
"color": "#6BC4F7"
},
{
"icon": "https://upload.wikimedia.org/wikipedia/commons/d/da/CivilDefense_square.svg"
}
]
}
],
"tagRenderings": [
"images",
"website"
]
},
"hospital"
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment