Skip to content

A graticule for Leaflet maps in the L.CRS.Simple coordinate system

Notifications You must be signed in to change notification settings

der-stefan/Leaflet.SimpleGraticule

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Leaflet.SimpleGraticule

A graticule for maps in Leaflet's L.CRS.Simple coordinate system.Code inspiration came from Jan Pieter Waagmeester's fantastic Leaflet.Grid for world projections. It is very similar in nature but assumes an infinite flat plane.

Usage

Adding L.SimpleGraticule:

var options = {interval: 20,
               showshowOriginLabel: true,
               redraw: 'move'};

L.simpleGraticule(options).addTo(map);

####Options:####

  • interval: The spacing in map units between horizontal and vertical lines.
  • showOriginLabel: true Whether or not to show '(0,0)' at the origin.
  • redraw: on which map event to redraw the graticule. On move is default but moveend can be smoother.

Notes

  • This is my first open source contribution. I appreciate feedback on any topics!

About

A graticule for Leaflet maps in the L.CRS.Simple coordinate system

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 92.7%
  • CSS 7.3%