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>
3.2 FSI TouchZoom Parameters
You can optionally modify the way FSI TouchZoom works by passing parameters to
the script. To do so, pass an object containing the parameters and value as an
object to the constructor:
Example:
<script type="text/javascript">
FSITouchZoom = new $FSI.TouchZoom({debug:true,
zoomPrecision:6});
FSITouchZoom.init();
</script>
3 FSI TouchZoom
NeptuneLabs - FSI Viewer
90