Fix: license info in 'nearby images' now works for mapillary, add bbox search for panoramax

This commit is contained in:
Pieter Vander Vennet 2025-05-12 11:37:26 +02:00
parent 14fd4e0f4f
commit 7f5544c1e5
6 changed files with 47 additions and 15 deletions

View file

@ -192,7 +192,12 @@ export class Mapillary extends ImageProvider {
license.license = "CC BY-SA 4.0"
// license.license = "Creative Commons Attribution-ShareAlike 4.0 International License";
license.attributionRequired = true
license.date = new Date(response["captured_at"])
const date = response["captured_at"]
try {
license.date = new Date(date)
} catch (e) {
console.warn("Could not parse captured_at date from mapillary image. The date is:", date)
}
return license
}