fixing example image paths with prefixUrl

This commit is contained in:
thatcher 2013-01-30 17:10:16 -05:00
parent 9fc4388ac9
commit ae30208b36
12 changed files with 41 additions and 31 deletions

View File

@ -19,7 +19,7 @@
// Example
OpenSeadragon({
id: "contentDiv",
prefixUrl: "/openseadragon/",
prefixUrl: "/openseadragon/images/",
tileSources: "/openseadragon/examples/images/highsmith/highsmith.js",
showNavigator: false,
debugMode: true

View File

@ -18,7 +18,7 @@
// Example
OpenSeadragon({
id: "contentDiv",
prefixUrl: "/openseadragon/",
prefixUrl: "/openseadragon/images/",
tileSources: "/openseadragon/examples/images/highsmith/highsmith.js"
});
</script>

View File

@ -31,7 +31,7 @@
<script type="text/javascript">
OpenSeadragon({
id: "contentDiv",
prefixUrl: "/openseadragon",
prefixUrl: "/openseadragon/images/",
tileSources: "/openseadragon/examples/images/highsmith/highsmith.dzi",
toolbar: "toolbarDiv",
showNavigator: true,

View File

@ -44,7 +44,7 @@ OpenSeadragon({
<script type="text/javascript">
var viewer = OpenSeadragon({
id: "example-tilesource-collection",
prefixUrl: "/openseadragon",
prefixUrl: "/openseadragon/images/",
//debugMode: true,
showNavigator: false,
minPixelRatio: 0.0,

View File

@ -58,7 +58,7 @@
<script>
OpenSeadragon({
id: "example-custom-tilesource",
prefixUrl: "/openseadragon",
prefixUrl: "/openseadragon/images/",
navigatorSizeRatio: 0.25,
wrapHorizontal: true,
tileSources: {
@ -88,28 +88,38 @@
</p>
<pre>
OpenSeadragon({
id: "example2-custom-tilesource",
prefixUrl: "/openseadragon",
navigatorSizeRatio: 0.25,
...
showNavigator: false,
blendTime: 0,
alwaysBlend: false,
wrapHorizontal: true,
tileSources: {
height: 512*256,
width: 512*256,
height: 1024*256,
width: 1024*256,
tileSize: 256,
minLevel: 8,
minLevel: 9,
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>
<script>
OpenSeadragon({
id: "example2-custom-tilesource",
prefixUrl: "/openseadragon",
prefixUrl: "/openseadragon/images/",
showNavigator: false,
blendTime: 0,
alwaysBlend: false,
//immediateRender: true,
wrapHorizontal: true,
tileSources: {
height: 1024*256,

View File

@ -32,7 +32,7 @@
<script type="text/javascript">
OpenSeadragon({
id: "example-xmlhttprequest-for-dzi",
prefixUrl: "/openseadragon",
prefixUrl: "/openseadragon/images/",
tileSources: "/openseadragon/examples/images/highsmith/highsmith.dzi",
showNavigator: true
});
@ -102,7 +102,7 @@ OpenSeadragon({
<script type="text/javascript">
OpenSeadragon({
id: "example-jsonprequest-for-dzi-jsonp",
prefixUrl: "/openseadragon",
prefixUrl: "/openseadragon/images/",
tileSources: "/openseadragon/examples/images/highsmith/highsmith.js",
showNavigator: true
});
@ -188,7 +188,7 @@ OpenSeadragon({
<script type="text/javascript">
OpenSeadragon({
id: "example-inline-configuration-for-dzi",
prefixUrl: "/openseadragon",
prefixUrl: "/openseadragon/images/",
showNavigator: true,
tileSources: {
Image: {
@ -218,7 +218,7 @@ OpenSeadragon({
<script type="text/javascript">
OpenSeadragon({
id: "example-wide-dzi",
prefixUrl: "/openseadragon",
prefixUrl: "/openseadragon/images/",
tileSources: "/openseadragon/examples/images/pnp/pan/6a32000/6a32400/6a32487.dzi"
});
</script>

View File

@ -27,7 +27,7 @@
<script type="text/javascript">
OpenSeadragon({
id: "example-xmlhttprequest",
prefixUrl: "/openseadragon",
prefixUrl: "/openseadragon/images/",
tileSources: "/openseadragon/examples/images/rbc/rbc0001/2003/rosen.xml",
showNavigator: true
});
@ -109,7 +109,7 @@ OpenSeadragon({
<script type="text/javascript">
OpenSeadragon({
id: "example-jsonprequest",
prefixUrl: "/openseadragon",
prefixUrl: "/openseadragon/images/",
tileSources: "/openseadragon/examples/images/rbc/rbc0001/2003/rosen.js",
showNavigator: true
});
@ -173,7 +173,7 @@ OpenSeadragon({
// Example
OpenSeadragon({
id: "inline-configuration",
prefixUrl: '/openseadragon',
prefixUrl: "/openseadragon/images/",
showNavigator: true,
tileSources: {
type: 'legacy-image-pyramid',
@ -243,7 +243,7 @@ OpenSeadragon({
// Example
OpenSeadragon({
id: "aspect-ratio",
prefixUrl: '/openseadragon',
prefixUrl: "/openseadragon/images/",
showNavigator: true,
tileSources: {
type: 'legacy-image-pyramid',

View File

@ -47,7 +47,7 @@
// Example
OpenSeadragon({
id: "contentDiv1",
prefixUrl: '/openseadragon',
prefixUrl: "/openseadragon/images/",
showNavigator: true,
tileSources: [{
type: 'legacy-image-pyramid',
@ -487,7 +487,7 @@
// Example
OpenSeadragon({
id: "contentDiv2",
prefixUrl: '/openseadragon',
prefixUrl: "/openseadragon/images/",
showNavigator: true,
defaultZoomLevel: 1.05,
tileSources: [
@ -507,7 +507,7 @@
// Example
OpenSeadragon({
id: "contentDiv3",
prefixUrl: '/openseadragon',
prefixUrl: "/openseadragon/images/",
showNavigator: true,
preserveViewport: true,
tileSources: [{
@ -585,7 +585,7 @@
// Example
OpenSeadragon({
id: "contentDiv4",
prefixUrl: '/openseadragon',
prefixUrl: "/openseadragon/images/",
showNavigator: true,
tileSources: [{
type: 'legacy-image-pyramid',

View File

@ -36,7 +36,7 @@
OpenSeadragon({
id: "contentDiv",
prefixUrl: "/openseadragon",
prefixUrl: "/openseadragon/images/",
toolbar: "toolbarDiv",
zoomInButton: "zoom-in",
zoomOutButton: "zoom-out",

View File

@ -19,7 +19,7 @@
OpenSeadragon({
id: "contentDiv",
prefixUrl: "/openseadragon",
prefixUrl: "/openseadragon/images/",
showReferenceStrip: true,
tileSources: [{
type: 'legacy-image-pyramid',
@ -106,7 +106,7 @@ The relevant configuration options are shown below.
<script type="text/javascript">
OpenSeadragon({
id: "contentDiv2",
prefixUrl: "/openseadragon",
prefixUrl: "/openseadragon/images/",
toolbar: "toolbarDiv",
springStiffness: 10,
showReferenceStrip: true,

View File

@ -25,7 +25,7 @@
<script type="text/javascript">
OpenSeadragon({
id: "contentDiv",
prefixUrl: "/openseadragon",
prefixUrl: "/openseadragon/images/",
tileSources: "/openseadragon/examples/images/highsmith/highsmith.dzi",
toolbar: "toolbarDiv",
showNavigator: true

View File

@ -20,7 +20,7 @@
<script type="text/javascript">
OpenSeadragon({
id: "contentDiv",
prefixUrl: "/openseadragon",
prefixUrl: "/openseadragon/images/",
tileSources: "/openseadragon/examples/images/highsmith/highsmith.dzi",
showNavigator: true
});