astromatic / Leaflet.TileLayer.IIP

Add IIP layering support to the Leaflet library
Other
14 stars 7 forks source link

Leaflet.TileLayer.IIP

This plugin adds IIP layering support to the Leaflet library.

Requirements

Demo

See demo

Usage

<html>
 <head>
  <link rel="stylesheet" href="https://github.com/astromatic/Leaflet.TileLayer.IIP/blob/master/Leaflet/dist/leaflet.css" />
  <script src="https://github.com/astromatic/Leaflet.TileLayer.IIP/raw/master/Leaflet/dist/leaflet-src.js"></script>
  <script src="https://github.com/astromatic/Leaflet.TileLayer.IIP/raw/master/Leaflet.TileLayer.IIP/TileLayer.IIP.js"></script>
 </head>
 <body>
  <div id="map" style="height:256px"></div>
  <script>
   var map = L.map('map', {center: [0.0,0.0], zoom: 0}),
       layer = L.tileLayer.iip('/fcgi-bin/iipsrv.fcgi?FIF=/path/to/image.ptif').addTo(map);
  </script>
 </body>
</html>

Note: L.tileLayer.iip is equivalent to new L.TileLayer.IIP

L.TileLayer.IIP options

L.TileLayer.IIP supports all options from the regular L.TileLayer plus: