mirror of
https://github.com/openseadragon/openseadragon.git
synced 2024-11-22 21:26:10 +03:00
fixing example image paths with prefixUrl
This commit is contained in:
parent
9fc4388ac9
commit
ae30208b36
@ -19,7 +19,7 @@
|
|||||||
// Example
|
// Example
|
||||||
OpenSeadragon({
|
OpenSeadragon({
|
||||||
id: "contentDiv",
|
id: "contentDiv",
|
||||||
prefixUrl: "/openseadragon/",
|
prefixUrl: "/openseadragon/images/",
|
||||||
tileSources: "/openseadragon/examples/images/highsmith/highsmith.js",
|
tileSources: "/openseadragon/examples/images/highsmith/highsmith.js",
|
||||||
showNavigator: false,
|
showNavigator: false,
|
||||||
debugMode: true
|
debugMode: true
|
||||||
|
@ -18,7 +18,7 @@
|
|||||||
// Example
|
// Example
|
||||||
OpenSeadragon({
|
OpenSeadragon({
|
||||||
id: "contentDiv",
|
id: "contentDiv",
|
||||||
prefixUrl: "/openseadragon/",
|
prefixUrl: "/openseadragon/images/",
|
||||||
tileSources: "/openseadragon/examples/images/highsmith/highsmith.js"
|
tileSources: "/openseadragon/examples/images/highsmith/highsmith.js"
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
@ -31,7 +31,7 @@
|
|||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
OpenSeadragon({
|
OpenSeadragon({
|
||||||
id: "contentDiv",
|
id: "contentDiv",
|
||||||
prefixUrl: "/openseadragon",
|
prefixUrl: "/openseadragon/images/",
|
||||||
tileSources: "/openseadragon/examples/images/highsmith/highsmith.dzi",
|
tileSources: "/openseadragon/examples/images/highsmith/highsmith.dzi",
|
||||||
toolbar: "toolbarDiv",
|
toolbar: "toolbarDiv",
|
||||||
showNavigator: true,
|
showNavigator: true,
|
||||||
|
@ -44,7 +44,7 @@ OpenSeadragon({
|
|||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
var viewer = OpenSeadragon({
|
var viewer = OpenSeadragon({
|
||||||
id: "example-tilesource-collection",
|
id: "example-tilesource-collection",
|
||||||
prefixUrl: "/openseadragon",
|
prefixUrl: "/openseadragon/images/",
|
||||||
//debugMode: true,
|
//debugMode: true,
|
||||||
showNavigator: false,
|
showNavigator: false,
|
||||||
minPixelRatio: 0.0,
|
minPixelRatio: 0.0,
|
||||||
|
@ -58,7 +58,7 @@
|
|||||||
<script>
|
<script>
|
||||||
OpenSeadragon({
|
OpenSeadragon({
|
||||||
id: "example-custom-tilesource",
|
id: "example-custom-tilesource",
|
||||||
prefixUrl: "/openseadragon",
|
prefixUrl: "/openseadragon/images/",
|
||||||
navigatorSizeRatio: 0.25,
|
navigatorSizeRatio: 0.25,
|
||||||
wrapHorizontal: true,
|
wrapHorizontal: true,
|
||||||
tileSources: {
|
tileSources: {
|
||||||
@ -88,28 +88,38 @@
|
|||||||
</p>
|
</p>
|
||||||
<pre>
|
<pre>
|
||||||
OpenSeadragon({
|
OpenSeadragon({
|
||||||
id: "example2-custom-tilesource",
|
...
|
||||||
prefixUrl: "/openseadragon",
|
showNavigator: false,
|
||||||
navigatorSizeRatio: 0.25,
|
blendTime: 0,
|
||||||
|
alwaysBlend: false,
|
||||||
|
wrapHorizontal: true,
|
||||||
tileSources: {
|
tileSources: {
|
||||||
height: 512*256,
|
height: 1024*256,
|
||||||
width: 512*256,
|
width: 1024*256,
|
||||||
tileSize: 256,
|
tileSize: 256,
|
||||||
minLevel: 8,
|
minLevel: 9,
|
||||||
getTileUrl: function( level, x, y ){
|
getTileUrl: function( level, x, y ){
|
||||||
return "http://s3.amazonaws.com/com.modestmaps.bluemarble/"+(level-8)+"-r"+x+"-c"+y+".jpg";
|
|
||||||
|
function zeropad( i ) {
|
||||||
|
var n = String( i ),
|
||||||
|
m = 6 - n.length;
|
||||||
|
n = (m < 1) ? n : new Array(m + 1).join( "0" ) + n;
|
||||||
|
return n.substr(0, 3) + "/" + n.substr(3);
|
||||||
|
};
|
||||||
|
|
||||||
|
return "http://s3.amazonaws.com/info.aaronland.tiles.shapetiles/"+(level-8)+"/"+zeropad(x)+"/"+zeropad(y)+".png";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
...
|
||||||
});
|
});
|
||||||
</pre>
|
</pre>
|
||||||
<script>
|
<script>
|
||||||
OpenSeadragon({
|
OpenSeadragon({
|
||||||
id: "example2-custom-tilesource",
|
id: "example2-custom-tilesource",
|
||||||
prefixUrl: "/openseadragon",
|
prefixUrl: "/openseadragon/images/",
|
||||||
showNavigator: false,
|
showNavigator: false,
|
||||||
blendTime: 0,
|
blendTime: 0,
|
||||||
alwaysBlend: false,
|
alwaysBlend: false,
|
||||||
//immediateRender: true,
|
|
||||||
wrapHorizontal: true,
|
wrapHorizontal: true,
|
||||||
tileSources: {
|
tileSources: {
|
||||||
height: 1024*256,
|
height: 1024*256,
|
||||||
|
@ -32,7 +32,7 @@
|
|||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
OpenSeadragon({
|
OpenSeadragon({
|
||||||
id: "example-xmlhttprequest-for-dzi",
|
id: "example-xmlhttprequest-for-dzi",
|
||||||
prefixUrl: "/openseadragon",
|
prefixUrl: "/openseadragon/images/",
|
||||||
tileSources: "/openseadragon/examples/images/highsmith/highsmith.dzi",
|
tileSources: "/openseadragon/examples/images/highsmith/highsmith.dzi",
|
||||||
showNavigator: true
|
showNavigator: true
|
||||||
});
|
});
|
||||||
@ -102,7 +102,7 @@ OpenSeadragon({
|
|||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
OpenSeadragon({
|
OpenSeadragon({
|
||||||
id: "example-jsonprequest-for-dzi-jsonp",
|
id: "example-jsonprequest-for-dzi-jsonp",
|
||||||
prefixUrl: "/openseadragon",
|
prefixUrl: "/openseadragon/images/",
|
||||||
tileSources: "/openseadragon/examples/images/highsmith/highsmith.js",
|
tileSources: "/openseadragon/examples/images/highsmith/highsmith.js",
|
||||||
showNavigator: true
|
showNavigator: true
|
||||||
});
|
});
|
||||||
@ -188,7 +188,7 @@ OpenSeadragon({
|
|||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
OpenSeadragon({
|
OpenSeadragon({
|
||||||
id: "example-inline-configuration-for-dzi",
|
id: "example-inline-configuration-for-dzi",
|
||||||
prefixUrl: "/openseadragon",
|
prefixUrl: "/openseadragon/images/",
|
||||||
showNavigator: true,
|
showNavigator: true,
|
||||||
tileSources: {
|
tileSources: {
|
||||||
Image: {
|
Image: {
|
||||||
@ -218,7 +218,7 @@ OpenSeadragon({
|
|||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
OpenSeadragon({
|
OpenSeadragon({
|
||||||
id: "example-wide-dzi",
|
id: "example-wide-dzi",
|
||||||
prefixUrl: "/openseadragon",
|
prefixUrl: "/openseadragon/images/",
|
||||||
tileSources: "/openseadragon/examples/images/pnp/pan/6a32000/6a32400/6a32487.dzi"
|
tileSources: "/openseadragon/examples/images/pnp/pan/6a32000/6a32400/6a32487.dzi"
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
@ -27,7 +27,7 @@
|
|||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
OpenSeadragon({
|
OpenSeadragon({
|
||||||
id: "example-xmlhttprequest",
|
id: "example-xmlhttprequest",
|
||||||
prefixUrl: "/openseadragon",
|
prefixUrl: "/openseadragon/images/",
|
||||||
tileSources: "/openseadragon/examples/images/rbc/rbc0001/2003/rosen.xml",
|
tileSources: "/openseadragon/examples/images/rbc/rbc0001/2003/rosen.xml",
|
||||||
showNavigator: true
|
showNavigator: true
|
||||||
});
|
});
|
||||||
@ -109,7 +109,7 @@ OpenSeadragon({
|
|||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
OpenSeadragon({
|
OpenSeadragon({
|
||||||
id: "example-jsonprequest",
|
id: "example-jsonprequest",
|
||||||
prefixUrl: "/openseadragon",
|
prefixUrl: "/openseadragon/images/",
|
||||||
tileSources: "/openseadragon/examples/images/rbc/rbc0001/2003/rosen.js",
|
tileSources: "/openseadragon/examples/images/rbc/rbc0001/2003/rosen.js",
|
||||||
showNavigator: true
|
showNavigator: true
|
||||||
});
|
});
|
||||||
@ -173,7 +173,7 @@ OpenSeadragon({
|
|||||||
// Example
|
// Example
|
||||||
OpenSeadragon({
|
OpenSeadragon({
|
||||||
id: "inline-configuration",
|
id: "inline-configuration",
|
||||||
prefixUrl: '/openseadragon',
|
prefixUrl: "/openseadragon/images/",
|
||||||
showNavigator: true,
|
showNavigator: true,
|
||||||
tileSources: {
|
tileSources: {
|
||||||
type: 'legacy-image-pyramid',
|
type: 'legacy-image-pyramid',
|
||||||
@ -243,7 +243,7 @@ OpenSeadragon({
|
|||||||
// Example
|
// Example
|
||||||
OpenSeadragon({
|
OpenSeadragon({
|
||||||
id: "aspect-ratio",
|
id: "aspect-ratio",
|
||||||
prefixUrl: '/openseadragon',
|
prefixUrl: "/openseadragon/images/",
|
||||||
showNavigator: true,
|
showNavigator: true,
|
||||||
tileSources: {
|
tileSources: {
|
||||||
type: 'legacy-image-pyramid',
|
type: 'legacy-image-pyramid',
|
||||||
|
@ -47,7 +47,7 @@
|
|||||||
// Example
|
// Example
|
||||||
OpenSeadragon({
|
OpenSeadragon({
|
||||||
id: "contentDiv1",
|
id: "contentDiv1",
|
||||||
prefixUrl: '/openseadragon',
|
prefixUrl: "/openseadragon/images/",
|
||||||
showNavigator: true,
|
showNavigator: true,
|
||||||
tileSources: [{
|
tileSources: [{
|
||||||
type: 'legacy-image-pyramid',
|
type: 'legacy-image-pyramid',
|
||||||
@ -487,7 +487,7 @@
|
|||||||
// Example
|
// Example
|
||||||
OpenSeadragon({
|
OpenSeadragon({
|
||||||
id: "contentDiv2",
|
id: "contentDiv2",
|
||||||
prefixUrl: '/openseadragon',
|
prefixUrl: "/openseadragon/images/",
|
||||||
showNavigator: true,
|
showNavigator: true,
|
||||||
defaultZoomLevel: 1.05,
|
defaultZoomLevel: 1.05,
|
||||||
tileSources: [
|
tileSources: [
|
||||||
@ -507,7 +507,7 @@
|
|||||||
// Example
|
// Example
|
||||||
OpenSeadragon({
|
OpenSeadragon({
|
||||||
id: "contentDiv3",
|
id: "contentDiv3",
|
||||||
prefixUrl: '/openseadragon',
|
prefixUrl: "/openseadragon/images/",
|
||||||
showNavigator: true,
|
showNavigator: true,
|
||||||
preserveViewport: true,
|
preserveViewport: true,
|
||||||
tileSources: [{
|
tileSources: [{
|
||||||
@ -585,7 +585,7 @@
|
|||||||
// Example
|
// Example
|
||||||
OpenSeadragon({
|
OpenSeadragon({
|
||||||
id: "contentDiv4",
|
id: "contentDiv4",
|
||||||
prefixUrl: '/openseadragon',
|
prefixUrl: "/openseadragon/images/",
|
||||||
showNavigator: true,
|
showNavigator: true,
|
||||||
tileSources: [{
|
tileSources: [{
|
||||||
type: 'legacy-image-pyramid',
|
type: 'legacy-image-pyramid',
|
||||||
|
@ -36,7 +36,7 @@
|
|||||||
|
|
||||||
OpenSeadragon({
|
OpenSeadragon({
|
||||||
id: "contentDiv",
|
id: "contentDiv",
|
||||||
prefixUrl: "/openseadragon",
|
prefixUrl: "/openseadragon/images/",
|
||||||
toolbar: "toolbarDiv",
|
toolbar: "toolbarDiv",
|
||||||
zoomInButton: "zoom-in",
|
zoomInButton: "zoom-in",
|
||||||
zoomOutButton: "zoom-out",
|
zoomOutButton: "zoom-out",
|
||||||
|
@ -19,7 +19,7 @@
|
|||||||
|
|
||||||
OpenSeadragon({
|
OpenSeadragon({
|
||||||
id: "contentDiv",
|
id: "contentDiv",
|
||||||
prefixUrl: "/openseadragon",
|
prefixUrl: "/openseadragon/images/",
|
||||||
showReferenceStrip: true,
|
showReferenceStrip: true,
|
||||||
tileSources: [{
|
tileSources: [{
|
||||||
type: 'legacy-image-pyramid',
|
type: 'legacy-image-pyramid',
|
||||||
@ -106,7 +106,7 @@ The relevant configuration options are shown below.
|
|||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
OpenSeadragon({
|
OpenSeadragon({
|
||||||
id: "contentDiv2",
|
id: "contentDiv2",
|
||||||
prefixUrl: "/openseadragon",
|
prefixUrl: "/openseadragon/images/",
|
||||||
toolbar: "toolbarDiv",
|
toolbar: "toolbarDiv",
|
||||||
springStiffness: 10,
|
springStiffness: 10,
|
||||||
showReferenceStrip: true,
|
showReferenceStrip: true,
|
||||||
|
@ -25,7 +25,7 @@
|
|||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
OpenSeadragon({
|
OpenSeadragon({
|
||||||
id: "contentDiv",
|
id: "contentDiv",
|
||||||
prefixUrl: "/openseadragon",
|
prefixUrl: "/openseadragon/images/",
|
||||||
tileSources: "/openseadragon/examples/images/highsmith/highsmith.dzi",
|
tileSources: "/openseadragon/examples/images/highsmith/highsmith.dzi",
|
||||||
toolbar: "toolbarDiv",
|
toolbar: "toolbarDiv",
|
||||||
showNavigator: true
|
showNavigator: true
|
||||||
|
@ -20,7 +20,7 @@
|
|||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
OpenSeadragon({
|
OpenSeadragon({
|
||||||
id: "contentDiv",
|
id: "contentDiv",
|
||||||
prefixUrl: "/openseadragon",
|
prefixUrl: "/openseadragon/images/",
|
||||||
tileSources: "/openseadragon/examples/images/highsmith/highsmith.dzi",
|
tileSources: "/openseadragon/examples/images/highsmith/highsmith.dzi",
|
||||||
showNavigator: true
|
showNavigator: true
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user