mejackreed/Leaflet-IIIF

Uncaught TypeError

bcail opened this issue · 7 comments

Thanks for reporting @bcail . I'm looking into it.

@bcail The issue seems to stem from the fact that https://repository.library.brown.edu/iiif/image/bdr:597184/info.json is reporting a potentially conflicting tileSize.

screen shot 2016-12-05 at 8 35 19 am

There is also a bug in Leaflet-IIIF where an explicit tileSize declaration is not being honored. A PR is coming soon to fix this.

@bcail #56 should fix your issue, I'll cut a new release soon. In the meantime, you may want to look into why your preferred tileSize is reporting that large of a width. That might also be problematic.

bcail commented

Thanks, @mejackreed, for fixing the issue & pointing out the issue with our IIIF info.

bcail commented

@mejackreed thanks for the release as well. Unfortunately, I'm still getting the same error (on line 94, in the _fitBounds function). Is that supposed to be working now?

@bcail you will need to specify an explicit tileSize when instantiating the layer since your width/height is most likely incompatible with the info.json "tile" section: https://jsfiddle.net/mejackreed/r3cfaej8/

bcail commented

thanks.