diff --git a/serverless/alpr_cache/src/alpr_cache.py b/serverless/alpr_cache/src/alpr_cache.py index 9cf3b78..f4f6235 100644 --- a/serverless/alpr_cache/src/alpr_cache.py +++ b/serverless/alpr_cache/src/alpr_cache.py @@ -38,7 +38,8 @@ def terraform_rate_expression_to_minutes(rate_expression: str) -> int: "camera:direction", "surveillance:brand", "surveillance:operator", - "surveillance:manufacturer" + "surveillance:manufacturer", + "wikimedia_commons" ] def get_all_nodes(): diff --git a/webapp/src/components/DFMapPopup.vue b/webapp/src/components/DFMapPopup.vue index 4e5a8df..9e3520c 100644 --- a/webapp/src/components/DFMapPopup.vue +++ b/webapp/src/components/DFMapPopup.vue @@ -45,6 +45,7 @@
mdi-open-in-newView on OSM + mdi-imageView image
@@ -107,6 +108,14 @@ const abbreviatedOperator = computed(() => { return operator; }); +const imageLink = computed(() => { + if (!props.alpr.tags.hasOwnProperty("wikimedia_commons")) { + return; + } + const file_uri_encoded = encodeURIComponent(props.alpr.tags["wikimedia_commons"]); + return `https://commons.wikimedia.org/wiki/${file_uri_encoded}`; +}); + function osmNodeLink(id: string): string { return `https://www.openstreetmap.org/node/${id}`; }