海龙 - 自定义图块,有导航器不显示图像



我正在使用OpenSeaDragon,有自定义图块可以显示图像,我无法准确地看到导航的图像...请检查屏幕截图的问题: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>

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

最新更新