summaryrefslogtreecommitdiffstats
path: root/media/jslib/CaveView/lib/OSMProvider.js
blob: 4c960e33b4571b20487a4f879ade7917e17202c4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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;

}