Skip to content

Uncaught TypeError: openseadragon_1.OpenSeadragon is not a function #23

@emohankrishna

Description

@emohankrishna

I have added openseadragon-annotations fro my angular project and added
"../node_modules/openseadragon/build/openseadragon/openseadragon.js",
"../node_modules/openseadragon-annotations/dist/openseadragon-annotations.js"
under scripts and
var viewer = OpenSeadragon({
id: 'viewer',
showNavigator: true,
tileSources: {
Image: {
xmlns: 'http://schemas.microsoft.com/deepzoom/2008',
Url: 'http://content.zoomhub.net/dzis/TDbz_files/',
Format: 'jpg',
Overlap: '1',
TileSize: '254',
ServerFormat: 'Default',
Size: {
Height: '4409',
Width: '7793'
}
}
}
});

const annotations = new OpenSeadragon.Annotations({ viewer });
It was givving the error:
Uncaught TypeError: openseadragon_1.OpenSeadragon is not a function
looking for help..

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions