forked from MapComplete/MapComplete
I should have commited sooner...
This commit is contained in:
parent
2685b6e734
commit
16612b10ef
35 changed files with 570 additions and 177 deletions
32
assets/layers/direction/direction.json
Normal file
32
assets/layers/direction/direction.json
Normal file
|
@ -0,0 +1,32 @@
|
|||
{
|
||||
"id": "direction",
|
||||
"name": {
|
||||
"en": "Direction visualization"
|
||||
},
|
||||
"minzoom": 16,
|
||||
"overpassTags": {
|
||||
"or": ["camera:direction~*","direction~*"]
|
||||
},
|
||||
"doNotDownload": true,
|
||||
"passAllFeatures": true,
|
||||
"title": null,
|
||||
"description": {
|
||||
"en": "This layer visualizes directions"
|
||||
},
|
||||
"tagRenderings": [],
|
||||
"icon": "./assets/svg/direction_gradient.svg",
|
||||
"rotation": {
|
||||
"render": "{camera:direction}",
|
||||
"mappings": [
|
||||
{
|
||||
"if": "direction~*",
|
||||
"then": "{direction}"
|
||||
}
|
||||
]
|
||||
},
|
||||
"iconSize": "200,200,center",
|
||||
"color": "--catch-detail-color",
|
||||
"stroke": "0",
|
||||
"presets": [],
|
||||
"wayHandling": 2
|
||||
}
|
54
assets/svg/direction_gradient.svg
Normal file
54
assets/svg/direction_gradient.svg
Normal file
|
@ -0,0 +1,54 @@
|
|||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<svg
|
||||
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
||||
xmlns:cc="http://creativecommons.org/ns#"
|
||||
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||
xmlns:svg="http://www.w3.org/2000/svg"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:xlink="http://www.w3.org/1999/xlink"
|
||||
width="100"
|
||||
height="100"
|
||||
viewBox="0 0 100 100"
|
||||
version="1.1"
|
||||
id="svg8">
|
||||
<metadata
|
||||
id="metadata8">
|
||||
<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></dc:title>
|
||||
</cc:Work>
|
||||
</rdf:RDF>
|
||||
</metadata>
|
||||
<defs
|
||||
id="defs6">
|
||||
<linearGradient
|
||||
id="linearGradient820">
|
||||
<stop
|
||||
id="innercolor"
|
||||
offset="0"
|
||||
style="stop-color:#000000;stop-opacity:1;" />
|
||||
<stop
|
||||
id="outercolor"
|
||||
offset="1"
|
||||
style="stop-color:#000000;stop-opacity:0" />
|
||||
</linearGradient>
|
||||
<radialGradient
|
||||
gradientUnits="userSpaceOnUse"
|
||||
gradientTransform="matrix(1.5439431,-0.01852438,0.02075364,1.7297431,-28.198837,-42.329969)"
|
||||
r="28.883806"
|
||||
fy="53.828533"
|
||||
fx="49.787739"
|
||||
cy="53.828533"
|
||||
cx="49.787739"
|
||||
id="radialGradient828"
|
||||
xlink:href="#linearGradient820" />
|
||||
</defs>
|
||||
<path
|
||||
style="fill:url(#radialGradient828);fill-opacity:1;stroke:none;stroke-width:0;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
|
||||
d="M 49.787737,49.857275 20.830626,9.2566092 C 35.979158,-2.144159 60.514289,-3.8195259 78.598237,9.0063685 Z"
|
||||
id="path821" />
|
||||
</svg>
|
After Width: | Height: | Size: 1.7 KiB |
|
@ -10,3 +10,17 @@ html {
|
|||
--shadow-color: #0f0 !important;
|
||||
}
|
||||
|
||||
#innercolor {
|
||||
stop-color:#ff0000
|
||||
}
|
||||
.leaflet-div-icon svg {
|
||||
width: calc(100% - 3px);
|
||||
height: calc(100% + 3px);
|
||||
}
|
||||
/*
|
||||
.leaflet-div-icon svg path {
|
||||
fill: none !important;
|
||||
stroke-width: 1px !important;
|
||||
stroke: #0f0 !important;
|
||||
}
|
||||
*/
|
||||
|
|
|
@ -27,6 +27,7 @@
|
|||
"customCss": "./assets/themes/surveillance_cameras/custom_theme.css",
|
||||
"defaultBackgroundId": "Stadia.AlidadeSmoothDark",
|
||||
"layers": [
|
||||
"direction",
|
||||
{
|
||||
"id": "cameras",
|
||||
"name": {
|
||||
|
@ -56,6 +57,7 @@
|
|||
"tagRenderings": [
|
||||
"images",
|
||||
{
|
||||
"#": "Camera type: fixed; panning; dome",
|
||||
"question": {
|
||||
"en": "What kind of camera is this?",
|
||||
"nl": "Wat voor soort camera is dit?"
|
||||
|
@ -97,18 +99,32 @@
|
|||
]
|
||||
},
|
||||
{
|
||||
"#": "direction. We don't ask this for a dome on a pole or ceiling as it has a 360° view",
|
||||
"question": {
|
||||
"en": "In which geographical direction does this camera film?",
|
||||
"nl": "Naar welke geografische richting filmt deze camera?"
|
||||
},
|
||||
"render": "Films to {camera:direction}",
|
||||
"condition": "camera:type!=dome",
|
||||
"condition": {
|
||||
"not": {
|
||||
"and": [
|
||||
"camera:type=dome",
|
||||
{
|
||||
"or": [
|
||||
"camera:mount=ceiling",
|
||||
"camera:mount=pole"
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"freeform": {
|
||||
"key": "camera:direction",
|
||||
"type": "direction"
|
||||
}
|
||||
},
|
||||
{
|
||||
"#": "Operator",
|
||||
"freeform": {
|
||||
"key": "operator"
|
||||
},
|
||||
|
@ -122,6 +138,7 @@
|
|||
}
|
||||
},
|
||||
{
|
||||
"#": "Surveillance type: public, outdoor, indoor",
|
||||
"question": {
|
||||
"en": "What kind of surveillance is this camera",
|
||||
"nl": "Wat soort bewaking wordt hier uitgevoerd?"
|
||||
|
@ -134,8 +151,8 @@
|
|||
]
|
||||
},
|
||||
"then": {
|
||||
"en": "A public area is surveilled, such as a street, a bridge, a square, a park, a train station...",
|
||||
"nl": "Bewaking van de publieke ruilmte, dus een straat, een brug, een park, een plein, een stationsgebouw..."
|
||||
"en": "A public area is surveilled, such as a street, a bridge, a square, a park, a train station, a public corridor or tunnel,...",
|
||||
"nl": "Bewaking van de publieke ruilmte, dus een straat, een brug, een park, een plein, een stationsgebouw, een publiek toegankelijke gang of tunnel..."
|
||||
}
|
||||
},
|
||||
{
|
||||
|
@ -156,13 +173,67 @@
|
|||
]
|
||||
},
|
||||
"then": {
|
||||
"nl": "Een private binnenruimte wordt bewaakt, bv. een wiinkel, een parkeergarage, ...",
|
||||
"nl": "Een private binnenruimte wordt bewaakt, bv. een winkel, een parkeergarage, ...",
|
||||
"en": "A private indoor area is surveilled, e.g. a shop, a private underground parking, ..."
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"#": "Indoor camera? This isn't clear for 'public'-cameras",
|
||||
"question": {
|
||||
"en": "Is the public space surveilled by this camera an indoor or outdoor space?",
|
||||
"nl": "Bevindt de bewaakte publieke ruimte camera zich binnen of buiten?"
|
||||
},
|
||||
"condition": {
|
||||
"and": [
|
||||
"surveillance:type=public"
|
||||
]
|
||||
},
|
||||
"mappings": [
|
||||
{
|
||||
"if": "indoor=yes",
|
||||
"then": {
|
||||
"en": "This camera is located indoors",
|
||||
"nl": "Deze camera bevindt zich binnen"
|
||||
}
|
||||
},
|
||||
{
|
||||
"if": "indoor=no",
|
||||
"then": {
|
||||
"en": "This camera is located outdoors",
|
||||
"nl": "Deze camera bevindt zich buiten"
|
||||
}
|
||||
},
|
||||
{
|
||||
"if": "indoor=",
|
||||
"then": {
|
||||
"en": "This camera is probably located outdoors",
|
||||
"nl": "Deze camera bevindt zich waarschijnlijk buiten"
|
||||
},
|
||||
"hideInAnswer": true
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"#": "Level",
|
||||
"question": {
|
||||
"en": "On which level is this camera located?",
|
||||
"nl": "Op welke verdieping bevindt deze camera zich?"
|
||||
},
|
||||
"freeform": {
|
||||
"key": "level",
|
||||
"type": "nat"
|
||||
},
|
||||
"condition": {
|
||||
"or": [
|
||||
"indoor=yes",
|
||||
"surveillance:type=ye"
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"#": "Surveillance:zone",
|
||||
"question": {
|
||||
"en": "What exactly is surveilled here?",
|
||||
"nl": "Wat wordt hier precies bewaakt?"
|
||||
|
@ -244,6 +315,7 @@
|
|||
]
|
||||
},
|
||||
{
|
||||
"#": "camera:mount",
|
||||
"question": {
|
||||
"en": "How is this camera placed?",
|
||||
"nl": "Hoe is deze camera geplaatst?"
|
||||
|
@ -267,10 +339,10 @@
|
|||
}
|
||||
},
|
||||
{
|
||||
"if": "camera:mount=pole",
|
||||
"if": "camera:mount=ceiling",
|
||||
"then": {
|
||||
"en": "This camera is placed one a pole",
|
||||
"nl": "Deze camera staat op een paal"
|
||||
"en": "This camera is placed on the ceiling",
|
||||
"nl": "Deze camera hangt aan het plafond"
|
||||
}
|
||||
}
|
||||
]
|
||||
|
@ -293,7 +365,7 @@
|
|||
"render": "50,50,center"
|
||||
},
|
||||
"color": {
|
||||
"render": "#00f"
|
||||
"render": "#f00"
|
||||
},
|
||||
"presets": [
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue