NeptuneLabs FSI Viewer JS User Manual page 94

Table of Contents

Advertisement

3 FSI TouchZoom
Exanple:
<script type="text/javascript
src="/viewer/applications/touchzoom/js/fsitouchzoom.js"></script>
<script type="text/javascript>
addMyImagesToTheDom(); // add your images here
// make FSI.TouchZoom look for new images
$FSI.touchZoom.scanForNewImages();
</script>
II) initialize FSI.TouchZoom manually after adding your images:
Exanple:
<script type="text/javascript
src="/viewer/applications/touchzoom/js/fsitouchzoom.js"></script>
<script type="text/javascript>
// prevent $FSI.TouchZoom from initializing automatically
// on document load
$FSI.touchZoomParameters = {autoInit:false};
function onBodyLoaded()
{
addMyImagesToTheDom(); // add your images here
// create and initialize FSI.TouchZoom
var parameters = {debug:true, useDevicePixelRatio:true};
myTouchZoom = new $FSI.TouchZoom();
myTouchZoom.init(parameters);
}
</script>
NeptuneLabs - FSI Viewer
94

Advertisement

Table of Contents
loading

Table of Contents