Standalone assembly_point layer

This commit is contained in:
Daniele Santini 2024-02-10 13:56:30 +01:00
parent a070b798c8
commit a86cf5db49
21 changed files with 298 additions and 180 deletions

View file

@ -0,0 +1,112 @@
{
"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.",
"docs": "https://wiki.openstreetmap.org/wiki/Tag:emergency%3Dassembly_point",
"source": {
"osmTags": {
"and": [
"emergency=assembly_point"
]
}
},
"minzoom": 10,
"pointRendering": [
{
"iconSize": "20,20",
"location": [
"point",
"centroid"
],
"anchor": "bottom",
"marker": [
{
"icon": "pin",
"color": "#6BC4F7"
},
{
"icon": "./assets/themes/disaster_response/assembly_point.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": "./assets/themes/disaster_response/earthquake.svg",
"class": "medium"
}
},
{
"if": "assembly_point:flood=yes",
"ifnot": "assembly_point:flood=",
"then": {
"en": "Flood",
"it": "Alluvione"
},
"icon": {
"path": "./assets/themes/disaster_response/flood.svg",
"class": "medium"
}
},
{
"if": "assembly_point:fire=yes",
"ifnot": "assembly_point:fire=",
"then": {
"en": "Fire",
"it": "Incendio"
},
"icon": {
"path": "./assets/themes/disaster_response/fire.svg",
"class": "medium"
}
},
{
"if": "assembly_point:landslide=yes",
"ifnot": "assembly_point:landslide=",
"then": {
"en": "Landslide",
"it": "Frana"
},
"icon": {
"path": "./assets/themes/disaster_response/landslide.svg",
"class": "medium"
}
}
]
}
]
}

View file

@ -0,0 +1,26 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg xmlns:svg="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg" version="1.1"
width="400px" height="400px" viewBox="0 0 178 178" id="svg2">
<defs />
<rect width="178" height="178" x="0" y="0" style="fill:#ffffff" />
<rect width="168" height="168" x="5" y="5" style="fill:#008855;fill-rule:evenodd" />
<g style="fill:#ffffff;fill-rule:evenodd">
<path
d="M 44.9,117.94 44.9,88.84 C 44.9,86.32 47.1,84.64 49.4,84.64 H 76.7 C 76.6,88.08 79,90.5 80.9,93.04 H 74 C 69,93.04 66.5,96.15 66.5,101.74 V 117.94 H 56.9 V 96.04 H 52.7 V 117.94 z M 70.7,127.84 70.7,101.44 C 70.7,98.41 72.7,96.94 75.5,96.94 H 102.5 C 105.8,96.94 107.3,99.73 107.3,101.14 V 127.84 H 101.6 V 106.54 H 97.4 V 127.84 H 80.9 V 106.54 H 76.4 V 127.84 z M 133.1,117.94 133.1,90.04 C 133.1,86.99 131.5,84.64 128.6,84.64 H 101.3 C 101.3,87.95 99,90.54 97.1,93.04 H 103.7 C 108.4,93.04 111.5,97.12 111.5,101.74 V 117.94 H 121.1 V 96.04 H 125.3 V 117.94 z" />
<path d="M 97.86,58.49 A 8.855,8.855 0 0 1 80.15,58.49 8.855,8.855 0 1 1 97.86,58.49 z" />
<path
d="M 122.54,71.069 A 8.8551,8.8551 0 0 1 104.83,71.069 8.8551,8.8551 0 1 1 122.54,71.069 z" />
<path
d="M 72.283,70.693 A 8.8551,8.8551 0 0 1 54.573,70.693 8.8551,8.8551 0 1 1 72.283,70.693 z" />
<path
d="M 97.702,83.413 A 8.8551,8.8551 0 0 1 79.992,83.413 8.8551,8.8551 0 1 1 97.702,83.413 z" />
<path
d="M 14.761,8.9 8.9,14.496 35.275,40.999 H 16.714 L 24.53,48.95 H 48.95 V 25.097 L 41.136,17.146 V 35.404 L 14.761,8.9" />
<path
d="M 163.24,8.902 169.1,14.492 142.72,40.999 H 161.28 L 153.47,48.95 H 129.05 V 25.092 L 136.86,17.142 V 35.402 L 163.24,8.902" />
<path
d="M 14.761,169.1 8.9,163.5 35.275,137 H 16.714 L 24.53,129.05 H 48.95 V 152.9 L 41.136,160.85 V 142.59 L 14.761,169.1" />
<path
d="M 163.24,169.1 169.1,163.51 142.72,137 H 161.28 L 153.47,129.05 H 129.05 V 152.91 L 136.86,160.86 V 142.6 L 163.24,169.1" />
</g>
</svg>

After

Width:  |  Height:  |  Size: 2.1 KiB

View file

@ -0,0 +1,2 @@
SPDX-FileCopyrightText: https://commons.wikimedia.org/wiki/User:Epop
SPDX-License-Identifier: CC0-1.0

View file

Before

Width:  |  Height:  |  Size: 811 B

After

Width:  |  Height:  |  Size: 811 B

View file

@ -0,0 +1,2 @@
SPDX-FileCopyrightText: United Nations Office for the Coordination of Humanitarian Affairs (OCHA)
SPDX-License-Identifier: CC0-1.0

View file

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 1.1 KiB

View file

@ -0,0 +1,2 @@
SPDX-FileCopyrightText: United Nations Office for the Coordination of Humanitarian Affairs (OCHA)
SPDX-License-Identifier: CC0-1.0

View file

Before

Width:  |  Height:  |  Size: 2.2 KiB

After

Width:  |  Height:  |  Size: 2.2 KiB

View file

@ -0,0 +1,2 @@
SPDX-FileCopyrightText: Iconathon
SPDX-License-Identifier: CC0-1.0

View file

@ -0,0 +1,26 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<svg id="svg5184" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns="http://www.w3.org/2000/svg" height="15" width="15" version="1.1" xmlns:cc="http://creativecommons.org/ns#" xmlns:dc="http://purl.org/dc/elements/1.1/" viewBox="0 0 15 15">
<metadata id="metadata5189">
<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/>
</cc:Work>
</rdf:RDF>
</metadata>
<g id="layer1" transform="translate(0 -1037.4)">
<g id="landslide-15" transform="translate(-185 775)">
<path id="path7243" opacity=".5" stroke-linejoin="round" style="color:#000000" d="m199 263.36-5.6562 5.6562l-3.34-0.66-2.84 0.16 0.84 0.84c-0.82843 0-1.5 0.67157-1.5 1.5s0.67157 1.5 1.5 1.5 1.5-0.67157 1.5-1.5l1 1-4.5 4.5h13v-13zm-8 1c-1.1046 0-2 0.89543-2 2s0.89543 2 2 2 2-0.89543 2-2-0.89543-2-2-2zm-4 2c-0.55229 0-1 0.44771-1 1s0.44771 1 1 1 1-0.44771 1-1-0.44771-1-1-1z" stroke-dashoffset="9.9" stroke="#fefefe" stroke-linecap="round" stroke-width="2" fill="#fefefe"/>
<g>
<path id="path7186" style="color:#000000" d="m199 263.36-13 13h13v-13z"/>
<g>
<circle id="path7188" style="color:#000000" transform="translate(177 88.362)" cy="178" cx="14" r="2"/>
<circle id="path7188-4" style="color:#000000" transform="matrix(0.75 0 0 0.75 177.5 137.36)" cy="178" cx="14" r="2"/>
<circle id="path7188-4-0" style="color:#000000" transform="matrix(0.5 0 0 0.5 180 178.36)" cy="178" cx="14" r="2"/>
</g>
</g>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 1.6 KiB

View file

@ -0,0 +1,2 @@
SPDX-FileCopyrightText: Development Seed
SPDX-License-Identifier: CC-BY-3.0

View file

@ -0,0 +1,56 @@
[
{
"path": "assembly_point.svg",
"license": "CC0-1.0",
"authors": [
"https://commons.wikimedia.org/wiki/User:Epop"
],
"sources": [
"https://commons.wikimedia.org/wiki/File:E011.svg"
]
},
{
"path": "earthquake.svg",
"license": "CC0-1.0",
"authors": [
"United Nations Office for the Coordination of Humanitarian Affairs (OCHA)"
],
"sources": [
"https://thenounproject.com/icon/fire-4232/",
"https://commons.wikimedia.org/wiki/File:Earthquake_-_The_Noun_Project.svg"
]
},
{
"path": "fire.svg",
"license": "CC0-1.0",
"authors": [
"United Nations Office for the Coordination of Humanitarian Affairs (OCHA)"
],
"sources": [
"https://thenounproject.com/icon/fire-4234/",
"https://commons.wikimedia.org/wiki/File:Fire_-_The_Noun_Project.svg"
]
},
{
"path": "flood.svg",
"license": "CC0-1.0",
"authors": [
"Iconathon"
],
"sources": [
"https://thenounproject.com/icon/flood-752/",
"https://commons.wikimedia.org/wiki/File:Flood_(752)_-_The_Noun_Project.svg"
]
},
{
"path": "landslide.svg",
"license": "CC-BY-3.0",
"authors": [
"Development Seed"
],
"sources": [
"https://github.com/developmentseed/mapbox/blob/master/icons-maki/maki-icons.svg",
"https://commons.wikimedia.org/wiki/File:Maki1-landslide-15.svg"
]
}
]

View file

@ -0,0 +1,2 @@
SPDX-FileCopyrightText: https://commons.wikimedia.org/wiki/User:MStankie
SPDX-License-Identifier: LicenseRef-TRIVIAL

View file

@ -1,17 +0,0 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg xmlns:svg="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg" version="1.1" width="400px" height="400px" viewBox="0 0 178 178" id="svg2">
<defs/>
<rect width="178" height="178" x="0" y="0" style="fill:#ffffff"/>
<rect width="168" height="168" x="5" y="5" style="fill:#008855;fill-rule:evenodd"/>
<g style="fill:#ffffff;fill-rule:evenodd">
<path d="M 44.9,117.94 44.9,88.84 C 44.9,86.32 47.1,84.64 49.4,84.64 H 76.7 C 76.6,88.08 79,90.5 80.9,93.04 H 74 C 69,93.04 66.5,96.15 66.5,101.74 V 117.94 H 56.9 V 96.04 H 52.7 V 117.94 z M 70.7,127.84 70.7,101.44 C 70.7,98.41 72.7,96.94 75.5,96.94 H 102.5 C 105.8,96.94 107.3,99.73 107.3,101.14 V 127.84 H 101.6 V 106.54 H 97.4 V 127.84 H 80.9 V 106.54 H 76.4 V 127.84 z M 133.1,117.94 133.1,90.04 C 133.1,86.99 131.5,84.64 128.6,84.64 H 101.3 C 101.3,87.95 99,90.54 97.1,93.04 H 103.7 C 108.4,93.04 111.5,97.12 111.5,101.74 V 117.94 H 121.1 V 96.04 H 125.3 V 117.94 z"/>
<path d="M 97.86,58.49 A 8.855,8.855 0 0 1 80.15,58.49 8.855,8.855 0 1 1 97.86,58.49 z"/>
<path d="M 122.54,71.069 A 8.8551,8.8551 0 0 1 104.83,71.069 8.8551,8.8551 0 1 1 122.54,71.069 z"/>
<path d="M 72.283,70.693 A 8.8551,8.8551 0 0 1 54.573,70.693 8.8551,8.8551 0 1 1 72.283,70.693 z"/>
<path d="M 97.702,83.413 A 8.8551,8.8551 0 0 1 79.992,83.413 8.8551,8.8551 0 1 1 97.702,83.413 z"/>
<path d="M 14.761,8.9 8.9,14.496 35.275,40.999 H 16.714 L 24.53,48.95 H 48.95 V 25.097 L 41.136,17.146 V 35.404 L 14.761,8.9"/>
<path d="M 163.24,8.902 169.1,14.492 142.72,40.999 H 161.28 L 153.47,48.95 H 129.05 V 25.092 L 136.86,17.142 V 35.402 L 163.24,8.902"/>
<path d="M 14.761,169.1 8.9,163.5 35.275,137 H 16.714 L 24.53,129.05 H 48.95 V 152.9 L 41.136,160.85 V 142.59 L 14.761,169.1"/>
<path d="M 163.24,169.1 169.1,163.51 142.72,137 H 161.28 L 153.47,129.05 H 129.05 V 152.91 L 136.86,160.86 V 142.6 L 163.24,169.1"/>
</g>
</svg>

Before

Width:  |  Height:  |  Size: 1.9 KiB

View file

@ -3,9 +3,7 @@
"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."
},
"extraLink": {
"href": "https://wiki.openstreetmap.org/wiki/Emergency_facilities_and_amenities"
},
"docs": "https://wiki.openstreetmap.org/wiki/Emergency_facilities_and_amenities",
"icon": "./assets/themes/disaster_response/CivilDefence.svg",
"id": "disaster_response",
"socialImage": "./assets/themes/disaster_response/social.jpg",
@ -15,13 +13,12 @@
},
"layers": [
"hospital",
"assembly_point",
{
"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",
"extraLink": {
"href": "https://wiki.openstreetmap.org/wiki/Tag:emergency%3Ddisaster_response"
},
"docs": "https://wiki.openstreetmap.org/wiki/Tag:emergency%3Ddisaster_response",
"source": {
"osmTags": {
"and": [
@ -60,113 +57,11 @@
"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.",
"extraLink": {
"href": "https://wiki.openstreetmap.org/wiki/Tag:emergency%3Dassembly_point"
},
"source": {
"osmTags": {
"and": [
"emergency=assembly_point"
]
}
},
"minzoom": 10,
"pointRendering": [
{
"iconSize": "20,20",
"location": [
"point",
"centroid"
],
"anchor": "bottom",
"marker": [
{
"icon": "pin",
"color": "#6BC4F7"
},
{
"icon": "./assets/themes/disaster_response/assembly_point.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": "./assets/themes/disaster_response/earthquake.svg",
"class": "medium"
}
},
{
"if": "assembly_point:flood=yes",
"ifnot": "assembly_point:flood=",
"then": {
"en": "Flood",
"it": "Alluvione"
},
"icon": {
"path": "./assets/themes/disaster_response/flood.svg",
"class": "medium"
}
},
{
"if": "assembly_point:fire=yes",
"ifnot": "assembly_point:fire=",
"then": {
"en": "Fire",
"it": "Incendio"
},
"icon": {
"path": "./assets/themes/disaster_response/fire.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",
"docs": "https://wiki.openstreetmap.org/wiki/Tag%3Aemergency%3Dses_station",
"source": {
"osmTags": {
"and": [

View file

@ -9,60 +9,6 @@
"https://commons.wikimedia.org/wiki/File:CivilDefence.svg"
]
},
{
"path": "assembly_point.svg",
"license": "CC0-1.0",
"authors": [
"https://commons.wikimedia.org/wiki/User:Epop"
],
"sources": [
"https://commons.wikimedia.org/wiki/File:E011.svg"
]
},
{
"path": "earthquake.svg",
"license": "CC0-1.0",
"authors": [
"United Nations Office for the Coordination of Humanitarian Affairs (OCHA)"
],
"sources": [
"https://thenounproject.com/icon/fire-4232/",
"https://commons.wikimedia.org/wiki/File:Earthquake_-_The_Noun_Project.svg"
]
},
{
"path": "fire.svg",
"license": "CC0-1.0",
"authors": [
"United Nations Office for the Coordination of Humanitarian Affairs (OCHA)"
],
"sources": [
"https://thenounproject.com/icon/fire-4234/",
"https://commons.wikimedia.org/wiki/File:Fire_-_The_Noun_Project.svg"
]
},
{
"path": "flood.svg",
"license": "CC0-1.0",
"authors": [
"Iconathon"
],
"sources": [
"https://thenounproject.com/icon/flood-752/",
"https://commons.wikimedia.org/wiki/File:Flood_(752)_-_The_Noun_Project.svg"
]
},
{
"path": "landslide.svg",
"license": "CC-BY-3.0",
"authors": [
"Development Seed"
],
"sources": [
"https://github.com/developmentseed/mapbox/blob/master/icons-maki/maki-icons.svg",
"https://commons.wikimedia.org/wiki/File:Maki1-landslide-15.svg"
]
},
{
"path": "social.jpg",
"license": "CC0-1.0",

View file

@ -0,0 +1,2 @@
SPDX-FileCopyrightText: United States Agency for International Development
SPDX-License-Identifier: CC0-1.0

View file

@ -483,6 +483,32 @@
"render": "Artwork"
}
},
"assembly_point": {
"tagRenderings": {
"disaster_type": {
"mappings": {
"0": {
"then": "Earthquake"
},
"1": {
"then": "Flood"
},
"2": {
"then": "Fire"
},
"3": {
"then": "Landslide"
}
},
"question": "For which disaster type is this assembly point meant?"
},
"operator": {
"question": "What organization operates this assembly point?",
"render": "This assembly point is operated by {operator}"
}
},
"title": "Emergency assembly points"
},
"atm": {
"description": "ATMs to withdraw money",
"filter": {

View file

@ -142,6 +142,32 @@
"render": "Opera darte"
}
},
"assembly_point": {
"tagRenderings": {
"disaster_type": {
"mappings": {
"0": {
"then": "Terremoto"
},
"1": {
"then": "Alluvione"
},
"2": {
"then": "Incendio"
},
"3": {
"then": "Frana"
}
},
"question": "Per quali tipi di disastro è pensata questa area di attesa?"
},
"operator": {
"question": "Quale organizzazione gestisce questa area di attesa?",
"render": "Questa area di attesa è gestita da {operator}"
}
},
"title": "Aree di attesa per emergenze"
},
"atm": {
"description": "Sportello Bancomat per prelevare denaro",
"name": "Sportelli Bancomat",

View file

@ -631,6 +631,10 @@
"description": "The goal of this map is to present cyclists with an easy-to-use solution to find the appropriate infrastructure for their needs.<br><br>You can track your precise location (mobile only) and select layers that are relevant for you in the bottom left corner. You can also use this tool to add or edit pins (points of interest) to the map and provide more data by answering the questions.<br><br>All changes you make will automatically be saved in the global database of OpenStreetMap and can be freely re-used by others.<br><br>For more information about the cyclofix project, go to <a href='https://cyclofix.osm.be/'>cyclofix.osm.be</a>.",
"title": "Cyclofix - a map for cyclists"
},
"disaster_response": {
"description": "This theme contains elements meant for disaster risk reduction and response.",
"title": "Disaster response"
},
"drinking_water": {
"description": "On this map, publicly accessible drinking water spots are shown and can be easily added",
"title": "Drinking Water"

View file

@ -401,6 +401,10 @@
"description": "Questa mappa offre a chi va in bici una soluzione semplice per trovare tutte le infrastrutture di cui ha bisogno.<br><br>Puoi tracciare la tua posizione esatta (solo su mobile) e selezionare i livelli che ti interessano nell'angolo in basso a sinistra. Puoi anche usare questo strumento per aggiungere o modificare punti di interesse alla mappa e aggiungere nuove informazioni rispendendo alle domande.<br><br>Tutte le modifiche che apporterai saranno automaticamente salvate nel database mondiale di OpenStreetMap e potranno essere liberamente riutilizzate da tutti e tutte.<br><br>Per maggiori informazioni sul progetto ciclofix, visita <a href='https://cyclofix.osm.be/'>cyclofix.osm.be</a>.",
"title": "Cyclofix - una mappa libera per chi va in bici"
},
"disaster_response": {
"description": "Questo tema contiene elementi pensati per la riduzione del rischio e per la risposta ai disastri.",
"title": "Risposta ai disastri"
},
"drinking_water": {
"description": "Questa mappa mostra tutti i luoghi in cui è disponibile acqua potabile ed è possibile aggiungerne di nuovi",
"title": "Acqua potabile"