Add Bing StreetSide to imagery_used if layer enabled

This commit is contained in:
Bryan Housel
2018-06-13 18:17:51 -04:00
parent aa9cc84ae7
commit 2dd0d9d36b
3 changed files with 9 additions and 4 deletions
+2 -2
View File
@@ -590,8 +590,8 @@ en:
zoom: "Zoom to layer"
browse: "Browse for a file"
streetside:
tooltip: "Streetside photos from Microsoft"
title: "Photo Overlay (Bing Streetside)"
tooltip: "StreetSide photos from Microsoft"
title: "Photo Overlay (Bing StreetSide)"
report: Report a privacy concern with this image
mapillary_images:
tooltip: "Street-level photos from Mapillary"
+2 -2
View File
@@ -716,8 +716,8 @@
"browse": "Browse for a file"
},
"streetside": {
"tooltip": "Streetside photos from Microsoft",
"title": "Photo Overlay (Bing Streetside)",
"tooltip": "StreetSide photos from Microsoft",
"title": "Photo Overlay (Bing StreetSide)",
"report": "Report a privacy concern with this image"
},
"mapillary_images": {
+5
View File
@@ -166,6 +166,11 @@ export function rendererBackground(context) {
imageryUsed.push(extension + 'data file');
}
var streetside = context.layers().layer('streetside');
if (streetside && streetside.enabled()) {
imageryUsed.push('Bing StreetSide');
}
var mapillary_images = context.layers().layer('mapillary-images');
if (mapillary_images && mapillary_images.enabled()) {
imageryUsed.push('Mapillary Images');