Openseadragon - Custom Tiles,有导航器不显示图像

时间:2014-12-30 15:34:50

标签: deepzoom openseadragon

我正在使用OpenSeaDragon,有Customtile来显示图像,我无法完全看到导航的图像...请检查屏幕截图的问题:http://screencast.com/t/BeP6nyA6M

代码在这里:

 <script type="text/javascript">
            var viewer = OpenSeadragon({
                id: "example-custom-tilesource",
                //debugMode: true,
                navigatorSizeRatio: 0.25,
                wrapHorizontal: true,
                showNavigator: true,

                tileSources: {
                    height: 512 * 256,
                    width: 512 * 256,
                    tileSize: 256,
                    minLevel: 8,
                    getTileUrl: function (level, x, y) {
                        console.log("URL::->" + "http://s3.amazonaws.com/com.modestmaps.bluemarble/" + (level - 8) + "-r" + y + "-c" + x + ".jpg")
                        return "http://s3.amazonaws.com/com.modestmaps.bluemarble/" +
                                (level - 8) + "-r" + y + "-c" + x + ".jpg";
                    }
                }
            });

    </script>

1 个答案:

答案 0 :(得分:0)

https://github.com/openseadragon/openseadragon/issues/325中讨论了此问题。它是OpenSeadragon中的一个错误,但您可以通过删除minLevel并调整getTileUrl来修复它,使其适用于所有级别。