forked from MapComplete/MapComplete
Themes: add ALPR-cameras to surveillance theme
This commit is contained in:
parent
8fccf78478
commit
97236c80a9
1 changed files with 78 additions and 7 deletions
|
@ -40,6 +40,32 @@
|
||||||
},
|
},
|
||||||
"tagRenderings": [
|
"tagRenderings": [
|
||||||
"images",
|
"images",
|
||||||
|
{
|
||||||
|
"id": "has_alpr",
|
||||||
|
"question": {
|
||||||
|
"en": "Can this camera automatically detect license plates?"
|
||||||
|
},
|
||||||
|
"questionHint": {
|
||||||
|
"en": "An <b>ALPR</b> (Automatic License Plate Reader) typically has two lenses and an array of infrared LEDS in between."
|
||||||
|
},
|
||||||
|
"mappings": [
|
||||||
|
{
|
||||||
|
"if": "surveillance:type=camera",
|
||||||
|
"then": {
|
||||||
|
"en": "This is a normal camera"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"if": "surveillance:type=ALPR",
|
||||||
|
"then": {
|
||||||
|
"en": "This is an ALPR (Automatic License Plate Reader)"
|
||||||
|
},
|
||||||
|
"icon": {
|
||||||
|
"path": "./assets/layers/surveillance_camera/ALPR.svg"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"question": {
|
"question": {
|
||||||
"en": "What kind of camera is this?",
|
"en": "What kind of camera is this?",
|
||||||
|
@ -595,6 +621,40 @@
|
||||||
"fr": "une caméra de surveillance fixée au mur"
|
"fr": "une caméra de surveillance fixée au mur"
|
||||||
},
|
},
|
||||||
"snapToLayer": "walls_and_buildings"
|
"snapToLayer": "walls_and_buildings"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"tags": [
|
||||||
|
"man_made=surveillance",
|
||||||
|
"surveillance:type=ALPR"
|
||||||
|
],
|
||||||
|
"title": {
|
||||||
|
"en": "an ALPR camera (Automatic Number Plate Reader)"
|
||||||
|
},
|
||||||
|
"description": {
|
||||||
|
"en": "An ALPR typically has two lenses and an array of infrared lights."
|
||||||
|
},
|
||||||
|
"exampleImages": [
|
||||||
|
"./assets/layers/surveillance_camera/ALPR_Example.jpg",
|
||||||
|
"./assets/layers/surveillance_camera/ALPR_Example2.jpg"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"tags": [
|
||||||
|
"man_made=surveillance",
|
||||||
|
"surveillance:type=ALPR",
|
||||||
|
"camera:mount=wall"
|
||||||
|
],
|
||||||
|
"title": {
|
||||||
|
"en": "an ALPR camera (Automatic Number Plate Reader) mounted on a wall"
|
||||||
|
},
|
||||||
|
"description": {
|
||||||
|
"en": "An ALPR typically has two lenses and an array of infrared lights."
|
||||||
|
},
|
||||||
|
"exampleImages": [
|
||||||
|
"./assets/layers/surveillance_camera/ALPR_Example.jpg",
|
||||||
|
"./assets/layers/surveillance_camera/ALPR_Example2.jpg"
|
||||||
|
],
|
||||||
|
"snapToLayer": "walls_and_buildings"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"mapRendering": [
|
"mapRendering": [
|
||||||
|
@ -602,6 +662,10 @@
|
||||||
"icon": {
|
"icon": {
|
||||||
"render": "./assets/themes/surveillance/logo.svg",
|
"render": "./assets/themes/surveillance/logo.svg",
|
||||||
"mappings": [
|
"mappings": [
|
||||||
|
{
|
||||||
|
"if": "surveillance:type=ALPR",
|
||||||
|
"then": "./assets/layers/surveillance_camera/ALPR.svg"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"if": "camera:type=dome",
|
"if": "camera:type=dome",
|
||||||
"then": "./assets/themes/surveillance/dome.svg"
|
"then": "./assets/themes/surveillance/dome.svg"
|
||||||
|
@ -619,15 +683,17 @@
|
||||||
"iconSize": {
|
"iconSize": {
|
||||||
"mappings": [
|
"mappings": [
|
||||||
{
|
{
|
||||||
"if": "camera:type=dome",
|
"if": {
|
||||||
"then": "50,50,center"
|
"and": [
|
||||||
},
|
"camera:type=fixed",
|
||||||
{
|
"surveillance:type=camera",
|
||||||
"if": "_direction:leftright~*",
|
"_direction:leftright~*"
|
||||||
|
]
|
||||||
|
},
|
||||||
"then": "100,35,center"
|
"then": "100,35,center"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"render": "50,50,center"
|
"render": "35,35,center"
|
||||||
},
|
},
|
||||||
"location": [
|
"location": [
|
||||||
"point",
|
"point",
|
||||||
|
@ -638,7 +704,12 @@
|
||||||
"render": "calc({_direction:numerical}deg + 90deg)",
|
"render": "calc({_direction:numerical}deg + 90deg)",
|
||||||
"mappings": [
|
"mappings": [
|
||||||
{
|
{
|
||||||
"if": "camera:type=dome",
|
"if": {
|
||||||
|
"or": [
|
||||||
|
"camera:type=dome",
|
||||||
|
"surveillance:type=ALPR"
|
||||||
|
]
|
||||||
|
},
|
||||||
"then": "0"
|
"then": "0"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue