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>
3 FSI TouchZoom
NeptuneLabs - FSI Viewer
94