forked from MapComplete/MapComplete
Fix: license info in 'nearby images' now works for mapillary, add bbox search for panoramax
This commit is contained in:
parent
14fd4e0f4f
commit
7f5544c1e5
6 changed files with 47 additions and 15 deletions
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue