Giter Site home page Giter Site logo

leaflet.tilelayer.iip's Introduction

Leaflet.TileLayer.IIP

This plugin adds IIP layering support to the Leaflet library.

Requirements

  • IIP 0.9.9
  • Leaflet 0.7.3

Demo

See demo

Usage

<html>
 <head>
  <link rel="stylesheet" href="Leaflet/dist/leaflet.css" />
  <script src="Leaflet/dist/leaflet-src.js"></script>
  <script src="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:

  • contrast : Contrast fractor. Default is 1.0.
  • gamma : Display gamma. Default is 1.0 for 8 or 16 bit images, and 2.2 for 32 bit (integer or floating-point) images.
  • cMap : Colormap for single-channel images. Valid colormaps are 'grey', 'jet', 'cold' and 'hot'. Default is 'grey'.
  • invertCMap : Invert Colormap (like a negative). Default is false.
  • quality : JPEG encoding quality in percent. Default is 90.
  • mix: Switch on multi-channel mixing. Default is false.
  • mixingMatrix: 2D array containing the mixing matrix. Default is [[1,0,0],[0,1,0],[0,0,1]].
  • channelLabels: Array of strings containing the channel labels. Default is ['Channel #1', 'Channel #2', ...]
  • minMaxValues: 2D array of min and max values for each channel. Default is the set of values returned as Min-Max-sample-values by IIPImage (which correspond to the values stored as TIFF SMinSampleValue and SMaxSampleValue tags).

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.