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>
如果有人有類似的問題,請讓我知道,因爲我不知道如何着手解決這個問題。
它確實對DZI圖塊源有效。控制檯中沒有錯誤。不幸的是,我無法分享鏈接,因爲我正在使用的圖像是專有的。我已經將此添加到Github上的OpenSeadragon問題。謝謝您的幫助。 – Tirendel