diff --git a/examples/iiif-example.js b/examples/iiif-example.js index a4aa77e..e9b461f 100644 --- a/examples/iiif-example.js +++ b/examples/iiif-example.js @@ -19,7 +19,7 @@ apostle = L.tileLayer.iiif('http://ids.lib.harvard.edu/ids/iiif/25286610/info.js }); iiifLayers = { - 'Martin Luther King Jr. & Joan Baez ...': stanfordMlk, + // 'Martin Luther King Jr. & Joan Baez ...': stanfordMlk, 'The provinces of New York and N...': princetonMap, 'Apostle: Anonymous sculptor of Fl...': apostle }; diff --git a/leaflet-iiif.js b/leaflet-iiif.js index 62b76f8..6cbee02 100644 --- a/leaflet-iiif.js +++ b/leaflet-iiif.js @@ -111,7 +111,14 @@ L.TileLayer.Iiif = L.TileLayer.extend({ case 'http://iiif.io/api/image/2/level2.json': _this.quality = 'default'; break; + case 'http://iiif.io/api/image/2/level1.json': + _this.quality = 'default'; + break; + case 'http://iiif.io/api/image/2/level0.json': + _this.quality = 'default'; + break; } + console.log(_this.quality) ceilLog2 = function(x) { return Math.ceil(Math.log(x) / Math.LN2);