Permalink example

Coordinates to permalink can be added with method addPermalink(). This method accepts boolean or object with options:

  • accuracy [number]
  • geoFormat [boolean] switcher between local coordinates x, y or geographical coordinates lat, long
  • addToEnd [string] adds custom string to permalink

Usage:


      var url = 'http://demo.iiifhosting.com/iiif/demo/info.json';
      var IIIF = new IiifViewer('map', url, function() {
        //turn on permalink
        IIIF.addPermalink({
                accuracy: 1, //def. 4
                geoFormat: true, //def. true
                addToEnd: 'layers=T'
              });
      });