leaflet-transitivelayer

0.2.0 • Public • Published

Leaflet.TransitiveLayer

A Leaflet plugin for overlaying a Transitive.js map on a Leaflet map.

NOTE: Version 0.1.0 no longer supports component. To use with component, specify version 0.0.2

Basic Usage

// create a Leaflet map (disabling inertia and zoom animation is recommended)
var map = L.map('map', {
  inertia: false,
  zoomAnimation: false
});

// create and add the base map layer
map.addLayer(new L.TileLayer(YOUR_TILE_URL));

// create the Transitive instance
var transitive = new Transitive({
  data: YOUR_TRANSITIVE_DATA
});

// create and add the Transitive layer to the map
map.addLayer(new L.TransitiveLayer(transitive));

Readme

Keywords

none

Package Sidebar

Install

npm i leaflet-transitivelayer

Weekly Downloads

1

Version

0.2.0

License

MIT

Last publish

Collaborators

  • trevorgerhardt
  • david.emory