forked from expo/troggle
Caveview enabled - local copy 3MB
This commit is contained in:
22
media/jslib/CaveView/lib/OSMProvider.js
Normal file
22
media/jslib/CaveView/lib/OSMProvider.js
Normal file
@@ -0,0 +1,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;
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user