diff options
Diffstat (limited to 'media/jslib/CaveView/lib/NLSProvider.js')
-rw-r--r-- | media/jslib/CaveView/lib/NLSProvider.js | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/media/jslib/CaveView/lib/NLSProvider.js b/media/jslib/CaveView/lib/NLSProvider.js new file mode 100644 index 0000000..8133621 --- /dev/null +++ b/media/jslib/CaveView/lib/NLSProvider.js @@ -0,0 +1,25 @@ +
+
+function NLSProvider () {
+
+}
+
+NLSProvider.prototype.minZoom = 12;
+NLSProvider.prototype.maxZoom = 14;
+
+NLSProvider.prototype.getUrl = function ( x, y, z ) {
+
+ return NLSTileUrlOS( x, y, z );
+
+}
+
+NLSProvider.prototype.getAttribution = function () {
+
+ var a = document.createElement( 'a' );
+
+ a.href = 'http://maps.nls.uk';
+ a.textContent = 'map overlay by National Library of Scotland';
+
+ return a;
+
+}
\ No newline at end of file |