Skip to content

conveyal/Leaflet.TransitiveLayer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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));

About

A Leaflet plugin for overlaying Transitive.js maps

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •