3 FSI TouchZoom
89
NeptuneLabs - FSI Viewer
Alternatively it is possible to use an external JavaScript for defining the parameters. This
is useful if the parameters are valid for multiple HTML documents.
In case the script is automatically initialised (default), the automatically created
instance can be adressed via
§FSI.touchZoom
3.1 Initializing FSI TouchZoom manually
Initializing or adding images manually
If you are adding images by script, you can decide to:
I) let FSI.TouchZoom initialize automatically and add image manually:
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: