Don't use real filenames in the imagery_used field (for privacy)

(closes #4530)
This commit is contained in:
Bryan Housel
2017-11-15 11:56:32 -05:00
parent af3b0bc1c9
commit 6e0a2c1221
+4 -1
View File
@@ -91,7 +91,10 @@ export function rendererBackground(context) {
var gpx = context.layers().layer('gpx');
if (gpx && gpx.enabled() && gpx.hasGpx()) {
imageryUsed.push(gpx.getSrc());
// Include a string like '.gpx data file' or '.geojson data file'
var match = gpx.getSrc().match(/(kml|gpx|(?:geo)?json)$/i);
var extension = match ? ('.' + match[0].toLowerCase() + ' ') : '';
imageryUsed.push(extension + 'data file');
}
var mapillary_images = context.layers().layer('mapillary-images');