leaflet.Graticule

Plugins for Leaflet mapping library.


License
Other
Install
bower install leaflet.Graticule

Documentation

Leaflet plugins

Various plugins to make life easier with Leaflet.

L.Graticule.js

The graticule plugin displays a grid of latitude/longitude lines projected on the map. Extends GeoJson.

Example

Usage

L.graticule().addTo(map);
L.graticule({
  onEachFeature: function(feature, layer) {
    layer.bindPopup('<strong>' + feature.properties.name + '</strong>');
  }
}).addTo(map);
L.graticule({
  surface: true,
  style: {
    fillColor: '#99b3cc',
    fillOpacity: 1,
    weight: 0
  }      
}).addTo(map);