ProjectMirador / mirador2

[DEPRECATED] An open-source, web-based 'multi-up' viewer that supports zoom-pan-rotate functionality, ability to display/compare simple images, and images with annotations.
Other
0 stars 2 forks source link

Mirador does not check whether the given CanvasID is present the manifest #4

Open ublrama opened 4 years ago

ublrama commented 4 years ago

When setting a the variable "canvasID" in window objects, mirador opens the manifest on the selected canvas. Though if a canvas is set that is not present in the manifest an error below occurs. Ideally the manifest should just open on the first canvas, or prompt the user that the canvas was not found in the manifest

imageView.js:705 Uncaught TypeError: Cannot read property 'getBounds' of undefined at $.ImageView.initialiseImageCanvas (imageView.js:705) at $.ImageView.init (imageView.js:91) at new $.ImageView (imageView.js:30) at $.Window.toggleImageView (window.js:767) at $.Window.init (window.js:235) at new $.Window (window.js:60) at $.Workspace.addWindow (workspace.js:516) at Object.<anonymous> (workspace.js:79) at Object.dispatch (jquery.min.js:2) at Object.y.handle (jquery.min.js:2)