0.2.0 • Published 8 years ago
leaflet-transitivelayer v0.2.0
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));