mirror of
https://expo.survex.com/repositories/troggle/.git
synced 2024-12-01 06:11:51 +00:00
22 lines
401 B
JavaScript
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;
|
|
|
|
} |