Fork me on GitHub

OpenSeadragon 2.2.1

example: tile map service support

The Tile Map Service is a tile scheme developed by the Open Source Geospatial Foundation and specified here.

OpenSeadragon supports TMS tile sources thanks to Rainer Simon.

Inline Configuration for Tile Map Services

Inline configuration couldn't be much simpler for using a TMS as a tile source.

Example Inline Configuration for TMS Tile Sources

Configuration is done via the tileSources option (or programatically). Because of its rich levels and depth, we slow down the zoomPerScroll option a little, wrap horizontally, and hide the navigator. Also we set a lower minimum zoom pixel ratio to allow the user to pull back just a little further.

    id:                 'example-inline-configuration-for-tms',
    prefixUrl:          '/openseadragon/images/',
    showNavigator:      false,
    wrapHorizontal:     true,
    zoomPerScroll:      1.2,
    minZoomImageRatio:  0.5,
    tileSources:   [{
        type:       'tiledmapservice',
        tilesUrl:   '',
        width: 256 * 65534,
        height: 256 * 32767