2
0
mirror of https://expo.survex.com/repositories/troggle/.git synced 2024-11-30 22:01:53 +00:00
troggle/media/jslib/CaveView/lib/OSMProvider.js
2021-04-02 19:02:10 +01:00

22 lines
401 B
JavaScript

function OSMProvider () {
}
OSMProvider.prototype.getUrl = function ( x, y, z ) {
return 'https://b.tile.openstreetmap.org/' + z + '/' + x + '/' + y + '.png';
}
OSMProvider.prototype.getAttribution = function () {
var a = document.createElement( 'a' );
a.textContent = '© OpenStreetMap contributors';
a.href = 'http://www.openstreetmap.org/copyright';
return a;
}