2014-01-22 60 views
0

我正在測試OpenSeadragon以查看它如何處理自定義圖塊源。我也打開了導航器。但是縮略圖圖像不會顯示在導航器中。這裏是我的代碼:OpenSeadragon導航器不顯示縮略圖圖像

<!DOCTYPE html> 
<html> 
<head> 
    <title>OpenSeaDragon (OSD) Custom Tile Sources Test</title> 
</head> 
<body> 
<div id="custom_tilesource" style="width: 800px; height: 600px;"></div> 
<script src="libs/openseadragon/openseadragon.js"></script> 
<script type="text/javascript"> 
    var viewer = OpenSeadragon({ 
    showNavigator: true, 
    navigatorSizeRatio: 0.25, 
    id: "custom_tilesource", 
    prefixUrl: "libs/openseadragon/images/", 
    wrapHorizontal: false, 
    tileSources: { 
     height: 9425, 
     width: 9426, 
     tileSize: 512, 
     maxLevel: 14, 
     minLevel: 10, 
     getTileUrl: function(level, x, y){ 
     var strSources = "W3siQXR0cmlidXRlcyI6eyJPcGVyYXRpb24iOiJTdW0ifSwiSWQiOm51bGwsIlR5cGUiOiJJbWFnZSJ9LHsiQXR0cmlidXRlcyI6e30sIklkIjoiMjIwOSIsIlR5cGUiOiJJbWFnZUlkIn1d"; 
     var strSampleRegion = 161; 

     var handlerURL = "/MultiOmyxU/handler.ashx?X=" + x + "&Y=" + y + "&Level=" + level + "&Sources=" + strSources + "&Reason=SampleRegion=" + strSampleRegion; 

     return handlerURL; 
     } 
    } 
    }); 
</script> 
</body> 
</html> 

如果有人有類似的問題,請讓我知道,因爲我不知道如何着手解決這個問題。

回答

0

有趣。如果您使用DZI而不是自定義tilesource,我認爲它可行?您是否在控制檯中看到任何錯誤?你有鏈接可以分享嗎?

我建議張貼這對OpenSeadragon問題:

https://github.com/openseadragon/openseadragon/issues

有人也許能幫助你。

+1

它確實對DZI圖塊源有效。控制檯中沒有錯誤。不幸的是,我無法分享鏈接,因爲我正在使用的圖像是專有的。我已經將此添加到Github上的OpenSeadragon問題。謝謝您的幫助。 – Tirendel