Skip to content

Commit

Permalink
Merge pull request #15 from mejackreed/handle-v2-level01
Browse files Browse the repository at this point in the history
Handle v2 level01
  • Loading branch information
mejackreed committed Feb 6, 2015
2 parents 68cdcfa + 43b1228 commit 93bfe74
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion examples/iiif-example.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
};
Expand Down
7 changes: 7 additions & 0 deletions leaflet-iiif.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 93bfe74

Please sign in to comment.