Skip to content

A spy satellite simulator in your browser, except the data is real. Live open source spatial intelligence on a photorealistic 3D globe.

fix(street-level): credit every imagery source in the attribution lightbox

German Khokhlovd983ef23d849
diff --git a/src/data/dataCredits.js b/src/data/dataCredits.js
index 8d3949351..3b9a93c0b 100644
--- a/src/data/dataCredits.js
+++ b/src/data/dataCredits.js
@@ -300,6 +300,22 @@ export const DATA_CREDITS = [
'Traffic cameras (Toronto): contains information licensed under the ' +
'<a href="https://www.toronto.ca/city-government/data-research-maps/open-data/open-data-licence/" target="_blank" rel="noopener">Open Government Licence – Toronto</a>',
},
+ {
+ key: 'mapillary',
+ html: 'Street Level: imagery © <a href="https://www.mapillary.com" target="_blank" rel="noopener">Mapillary</a> contributors, <a href="https://creativecommons.org/licenses/by-sa/4.0/" target="_blank" rel="noopener">CC BY-SA 4.0</a>',
+ },
+ {
+ key: 'google-street-view',
+ html: 'Street Level: Street View imagery © <a href="https://www.google.com/streetview/" target="_blank" rel="noopener">Google</a>',
+ },
+ {
+ key: 'kartaview',
+ html: 'Street Level: imagery © <a href="https://kartaview.org" target="_blank" rel="noopener">KartaView</a> contributors, <a href="https://creativecommons.org/licenses/by-sa/4.0/" target="_blank" rel="noopener">CC BY-SA 4.0</a>',
+ },
+ {
+ key: 'panoramax',
+ html: 'Street Level: imagery © <a href="https://panoramax.fr" target="_blank" rel="noopener">Panoramax</a> contributors, licence per picture',
+ },
{
key: 'gbfs',
html:
diff --git a/src/data/dataCredits.test.mjs b/src/data/dataCredits.test.mjs
index 30a19b8fe..dc3a7951f 100644
--- a/src/data/dataCredits.test.mjs
+++ b/src/data/dataCredits.test.mjs
@@ -128,3 +128,16 @@ test('the NYC camera credit carries NYC DOT’s requested disclaimer', () => {
assert.match(credit.html, /make no representation as to the accuracy/);
assert.match(credit.html, /observe posted signage/);
});
+
+test('every Street Level imagery source is in the attribution lightbox', () => {
+ for (const key of [
+ 'mapillary',
+ 'google-street-view',
+ 'kartaview',
+ 'panoramax',
+ ])
+ assert.ok(
+ DATA_CREDITS.some((entry) => entry.key === key),
+ `${key} has no credit`,
+ );
+});