diff --git a/assets/layers/fire_hydrants/fire_hydrants.json b/assets/layers/fire_hydrants/fire_hydrants.json new file mode 100644 index 0000000..d41c3c1 --- /dev/null +++ b/assets/layers/fire_hydrants/fire_hydrants.json @@ -0,0 +1,427 @@ +{ + "id": "fire_hydrants", + "name": { + "nl": "Hydranten", + "en": "Hydrants" + }, + "minzoom": 14, + "source": { + "osmTags": { + "or": [ + "emergency=fire_hydrant", + "disused:emergency=fire_hydrant", + "abandoned:emergency=fire_hydrant", + {"and": [ + "removed:emergency=fire_hydrant", + "has_marker=yes" + ]} + ] + } + }, + "title": { + "render": { + "nl": "Hydrant", + "en": "Hydrant" + }, + "mappings": [ + { + "if": "ref~*", + "then": { + "nl": "Hydrant {ref}", + "en": "Hydrant {ref}" + } + } + ] + }, + "tagRenderings": [ + { + "question": { + "nl": "Wat is de meest opvallende kleur van de hydrant?", + "en": "What is the most prominent colour of the hydrant?" + }, + "render": { + "nl": "Kleur (in het Engels): {colour}", + "en": "Colour: {colour}" + }, + "condition": { + "and": [ + "fire_hydrant:type!~underground", + "fire_hydrant:type!~pipe" + ] + }, + "freeform": { + "key": "colour" + }, + "mappings": [ + { + "if": { + "and": ["colour=red"] + }, + "then": { + "nl": "De hydrant is rood", + "en": "The hydrant is red" + } + }, + { + "if": { + "and": ["colour=yellow"] + }, + "then": { + "nl": "De hydrant is geel", + "en": "The hydrant is yellow" + } + }, + { + "if": { + "and": ["colour=grey"] + }, + "then": { + "nl": "De hydrant is grijs", + "en": "The hydrant is grey" + } + } + ] + }, + { + "question": { + "nl": "Welk soort hydrant is het?", + "en": "What type of hydrant is it?" + }, + "mappings": [ + { + "if": { + "and": ["fire_hydrant:type=underground"] + }, + "then": { + "nl": "Ondergrondse hydrant", + "en": "Underground hydrant" + } + }, + { + "if": { + "and": ["fire_hydrant:type=pillar"] + }, + "then": { + "nl": "Bovengrondse pilaarachtige hydrant", + "en": "Overground pillar hydrant" + } + }, + { + "if": { + "and": ["fire_hydrant:type=pipe"] + }, + "then": { + "nl": "Bovengrondse pijphydrant", + "en": "Overground pipe hydrant" + } + }, + { + "if": { + "and": ["fire_hydrant:type=wall"] + }, + "then": { + "nl": "Hydrant aan muur", + "en": "Wall-attached hydrant" + } + }, + { + "if": { + "and": ["fire_hydrant:type~*"] + }, + "then": { + "nl": "Ander soort hydrant", + "en": "Other type of hydrant" + } + } + ] + }, + { + "question": { + "nl": "Hoeveel aansluitingen zijn er?", + "en": "How many couplings are there?" + }, + "render": { + "nl": "Aantal aansluitingen: {couplings}", + "en": "Amount of couplings: {couplings}" + }, + "freeform": { + "key": "couplings", + "type": "pnat" + } + }, + { + "render": { + "nl": "Referentiecode: {ref}", + "en": "Reference code: {ref}" + }, + "question": { + "nl": "Heeft de hydrant een referentiecode?", + "en": "Does the hydrant have a reference code?" + }, + "freeform": { + "key": "ref", + "addExtraTags": [ + "noref=" + ] + }, + "mappings": [ + { + "if": { + "and": [ + "ref=", + "noref=yes" + ] + }, + "then": { + "nl": "De hydrant heeft geen referentiecode.", + "en": "The hydrant does not have a reference code." + } + } + ] + }, + { + "question": { + "nl": "Update de status van de hydrant.", + "en": "Update the status of the hydrant." + }, + "render": { + "nl": "Status", + "en": "Status" + }, + "freeform": { + "key": "disused:emergency" + }, + "mappings": [ + { + "if": { + "and": [ + "emergency=fire_hydrant", + "disused:emergency=", + "abandoned:emergency=", + "removed:emergency=" + ] + }, + "then": { + "nl": "De hydrant lijkt (volledig of gedeeltelijk) functioneel.", + "en": "The hydrant looks like it's (fully or partially) working." + } + }, + { + "if": { + "or": [ + {"and": [ + "disused:emergency=fire_hydrant", + "abandoned:emergency=", + "emergency=", + "removed:emergency=" + ]}, + {"and": [ + "abandoned:emergency=fire_hydrant", + "disused:emergency=", + "emergency=", + "removed:emergency=" + ]} + ] + }, + "then": { + "nl": "De hydrant is onbruikbaar.", + "en": "The hydrant is unavailable for use." + } + }, + { + "if": { + "and": [ + "removed:emergency=fire_hydrant", + "disused:emergency=", + "abandoned:emergency=", + "emergency=" + ] + }, + "then": { + "nl": "De hydrant is verwijderd.", + "en": "The hydrant has been removed." + } + } + ] + }, + { + "question": { + "nl": "Is er nog (ten onrechte) een bordje voor de verwijderde hydrant?", + "en": "Is there a (now incorrect) marker left for the removed hydrant?" + }, + "mappings": [ + { + "if": { + "and": ["has_marker=yes"] + }, + "then": { + "nl": "Er is ten onrechte een bordje!", + "en": "Underground hydrant" + } + } + ], + "condition": { + "and": [ + "removed:emergency=fire_hydrant" + ] + } + }, + { + "question": { + "nl": "Waar bevindt de hydrant zich?", + "en": "Where is the hydrant?" + }, + "render": { + "nl": "Omgeving: {fire_hydrant:position}", + "en": "Position: {fire_hydrant:position}" + }, + "mappings": [ + { + "if": { + "and": ["fire_hydrant:position=lane"] + }, + "then": { + "nl": "In of naast de rijbaan", + "en": "In or along the road" + } + }, + { + "if": { + "and": ["fire_hydrant:position=sidewalk"] + }, + "then": { + "nl": "Trottoir", + "en": "Sidewalk" + } + } + ], + "freeform": { + "key": "fire_hydrant:position" + }, + "condition": { + "and": [ + "removed:emergency!=fire_hydrant" + ] + } + }, + { + "question": { + "nl": "Heb je opmerkingen die niet pasten in de andere vragen?", + "en": "Any other remarks that don't fit in the other questions?" + }, + "render": { + "nl": "Extra info: {description:0}", + "en": "Extra info: {description:0}" + }, + "freeform": { + "key": "description:0" + } + } + ], + "hideUnderlayingFeaturesMinPercentage": 0, + "icon": { + "render": "./assets/layers/fire_hydrants/hydrant_unknown.svg", + "mappings": [ + { + "if": { + "or": [ + "disused:emergency=fire_hydrant", + "abandoned:emergency=fire_hydrant" + ] + }, + "then": "./assets/layers/fire_hydrants/hydrant_disused.svg" + }, + { + "if": { + "and": [ + "removed:emergency=fire_hydrant", + "has_marker=yes" + ] + }, + "then": "./assets/layers/fire_hydrants/hydrant_marker_only.svg" + }, + { + "if": { + "and": [ + "emergency=fire_hydrant", + "fire_hydrant:type=underground" + ] + }, + "then": "./assets/layers/fire_hydrants/hydrant_underground.svg" + }, + { + "if": { + "and": [ + "emergency=fire_hydrant", + "fire_hydrant:type=pillar" + ] + }, + "then": "./assets/layers/fire_hydrants/hydrant_pillar_without_h.svg" + } + ] + }, + "wayHandling": 1, + "width": { + "render": "8" + }, + "iconSize": { + "render": "18,18,center" + }, + "color": { + "render": "#00f" + }, + "presets": [ + { + "tags": [ + "emergency=fire_hydrant", + "fire_hydrant:type=underground" + ], + "title": { + "nl": "Ondergrondse hydrant", + "en": "Underground hydrant" + } + }, + { + "tags": [ + "emergency=fire_hydrant", + "fire_hydrant:type=pillar" + ], + "title": { + "nl": "Bovengrondse pilaarachtige hydrant", + "en": "Overground pillar hydrant" + }, + "description": { + "nl": "Een hydrant met bovengrondse aansluitingen, zoals de stereotype brandkraan uit de film.", + "en": "A hydrant with overground couplings, like the stereotypical hydrant from the movie." + } + }, + { + "tags": [ + "emergency=fire_hydrant", + "fire_hydrant:type=pipe" + ], + "title": { + "nl": "Bovengrondse pijphydrant", + "en": "Overground pipe hydrant" + }, + "description": { + "nl": "Een hydrant die niet veel meer is dan een pijpleiding die boven de grond eindigt. Vooral bij blusmeren, waarbij de leiding niet onder druk staat en de brandweerwagen water moet oppompen.", + "en": "A hydrant that is little more than a tube, ending overground. Especially with \"dry hydrants\", where the fire engine pumps water from a reservoir." + } + }, + { + "tags": [ + "emergency=fire_hydrant", + "fire_hydrant:type=wall" + ], + "title": { + "nl": "Hydrant aan muur", + "en": "Wall-attached hydrant" + }, + "description": { + "nl": "Een hydrant aan de muur, vooral in tunnels. Niet verwarren met een brandslang: een hydrant is een aansluiting voor de brandweer, een brandslang kan door iedereen gebruikt worden.", + "en": "A hydrant on the wall, especially in tunnels. Do not confuse with a fire hose: a hydrant is a connection point for fire fighters, a hose can be used by anyone." + } + } + ] +} diff --git a/assets/layers/fire_hydrants/hydrant_attention.svg b/assets/layers/fire_hydrants/hydrant_attention.svg new file mode 100644 index 0000000..10db542 --- /dev/null +++ b/assets/layers/fire_hydrants/hydrant_attention.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/assets/layers/fire_hydrants/hydrant_disused.svg b/assets/layers/fire_hydrants/hydrant_disused.svg new file mode 100644 index 0000000..9fc8025 --- /dev/null +++ b/assets/layers/fire_hydrants/hydrant_disused.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/assets/layers/fire_hydrants/hydrant_marker_only.svg b/assets/layers/fire_hydrants/hydrant_marker_only.svg new file mode 100644 index 0000000..677252e --- /dev/null +++ b/assets/layers/fire_hydrants/hydrant_marker_only.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/assets/layers/fire_hydrants/hydrant_pillar.svg b/assets/layers/fire_hydrants/hydrant_pillar.svg new file mode 100644 index 0000000..98a7497 --- /dev/null +++ b/assets/layers/fire_hydrants/hydrant_pillar.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/assets/layers/fire_hydrants/hydrant_pillar_without_h.svg b/assets/layers/fire_hydrants/hydrant_pillar_without_h.svg new file mode 100644 index 0000000..55442b0 --- /dev/null +++ b/assets/layers/fire_hydrants/hydrant_pillar_without_h.svg @@ -0,0 +1,4 @@ + + + + diff --git a/assets/layers/fire_hydrants/hydrant_underground.svg b/assets/layers/fire_hydrants/hydrant_underground.svg new file mode 100644 index 0000000..c792ec7 --- /dev/null +++ b/assets/layers/fire_hydrants/hydrant_underground.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/assets/layers/fire_hydrants/hydrant_unknown.svg b/assets/layers/fire_hydrants/hydrant_unknown.svg new file mode 100644 index 0000000..6ef487e --- /dev/null +++ b/assets/layers/fire_hydrants/hydrant_unknown.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/assets/layers/fire_hydrants/src/hydrant_attention.svg b/assets/layers/fire_hydrants/src/hydrant_attention.svg new file mode 100644 index 0000000..b3920a8 --- /dev/null +++ b/assets/layers/fire_hydrants/src/hydrant_attention.svg @@ -0,0 +1,83 @@ + + + + + + image/svg+xml + + + + + + + + + + + + + diff --git a/assets/layers/fire_hydrants/src/hydrant_marker_only.svg b/assets/layers/fire_hydrants/src/hydrant_marker_only.svg new file mode 100644 index 0000000..d609323 --- /dev/null +++ b/assets/layers/fire_hydrants/src/hydrant_marker_only.svg @@ -0,0 +1,100 @@ + + + + + + image/svg+xml + + + + + + + + + + + + + + + diff --git a/assets/layers/fire_hydrants/src/hydrant_pillar.svg b/assets/layers/fire_hydrants/src/hydrant_pillar.svg new file mode 100644 index 0000000..4863bb5 --- /dev/null +++ b/assets/layers/fire_hydrants/src/hydrant_pillar.svg @@ -0,0 +1,76 @@ + + + + + + + + + + image/svg+xml + + + + + + + + + + diff --git a/assets/layers/fire_hydrants/src/hydrant_pillar_without_h.svg b/assets/layers/fire_hydrants/src/hydrant_pillar_without_h.svg new file mode 100644 index 0000000..bd88b4e --- /dev/null +++ b/assets/layers/fire_hydrants/src/hydrant_pillar_without_h.svg @@ -0,0 +1,72 @@ + + + + + + + + + + image/svg+xml + + + + + + + + + diff --git a/assets/layers/fire_hydrants/src/hydrant_underground.svg b/assets/layers/fire_hydrants/src/hydrant_underground.svg new file mode 100644 index 0000000..ca2df6a --- /dev/null +++ b/assets/layers/fire_hydrants/src/hydrant_underground.svg @@ -0,0 +1,75 @@ + + + + + + + + + + image/svg+xml + + + + + + + + + + diff --git a/assets/layers/fire_hydrants/src/hydrant_unknown.svg b/assets/layers/fire_hydrants/src/hydrant_unknown.svg new file mode 100644 index 0000000..2068eeb --- /dev/null +++ b/assets/layers/fire_hydrants/src/hydrant_unknown.svg @@ -0,0 +1,77 @@ + + + + + + image/svg+xml + + + + + + + + + + + + diff --git a/assets/themes/fire/fire.json b/assets/themes/fire/fire.json new file mode 100644 index 0000000..0f2e598 --- /dev/null +++ b/assets/themes/fire/fire.json @@ -0,0 +1,35 @@ +{ + "id": "fire", + "title": { + "nl": "Brandweerkaart", + "en": "Fire map" + }, + "shortDescription": { + "nl": "Map brandkranen", + "en": "Map fire hydrants" + }, + "description": { + "nl": "De brandweer kan in hun tankwagens maar een beperkte hoeveelheid bluswater meenemen. Bij een brand zijn hydranten (brandkranen) dan ook van levensbelang. Als tijdens de rit al een kaart van de hydranten beschikbaar is, wordt tijd er uitgespaard en kan er dus sneller geblust worden.\n\nIn Belgiƫ: neem eens een kijkje op straat, je vindt vast een wit bord met een rode rand. Op het bord staat bv. H100 (hydrant met aanvoerleiding met diameter 100 mm), een referentiecode, en afstanden in meter die wijzen naar waar de hydrant zich werkelijk bevindt. Als het goed is, vind je op de aangegeven plaats een ovaal putdeksel met een \"H\" of \"brandkraan\" op of een bovengrondse brandkraan.", + "en": "Fire engines can hold only so much water, so hydrants are crucial for firefighting. If the team has access to a map of the hydrants while driving, time is saved when they arrive at the scene. Time they can use to put out the fire sooner.\n\nIn Belgium: take a look outside on the street, you're bound to find a white sign with a red rim. The sign says e.g. H100 (hydrant with supply pipe with diameter of 100 mm), a reference code, and distances in meter that point to where the hydrant is installed. Normally you should find an oval covering with \"H\" or \"hydrant\" on it or a pillar." + }, + "language": [ + "nl", + "en" + ], + "maintainer": "Midgard", + "icon": "./assets/layers/fire_hydrants/pillar.svg", + "version": "0", + "startLat": 50.642, + "startLon": 4.482, + "startZoom": 8, + "widenFactor": 0.01, + "socialImage": "./assets/layers/fire_hydrants/pillar.svg", + "clustering": { + "maxZoom": 18 + }, + "layers": [ + "fire_hydrants" + ], + "roamingRenderings": [], + "defaultBackgroundId": "AGIV" +}