Skip to content

Leaflet Canvas Overlay is a straightforward full screen canvas overlay class that calls custom user function for gl drawing.

License

Notifications You must be signed in to change notification settings

donSchoe/L.CanvasOverlay

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

L.CanvasOverlay

Leaflet Canvas Overlay is a straightforward full screen canvas overlay class that calls custom user function for gl drawing.

Requires

  • Leaflet 0.7.3 or later

Usage

Read more:

  /* setup leaflet canvas webgl overlay */
  ovl = L.canvasOverlay().drawing(drawGL).addTo(map);
  cnv = ovl.canvas()
  ovl.canvas.width = cnv.clientWidth;
  ovl.canvas.height = cnv.clientHeight;

... where drawGL() is your custom user draw function.

Copyright & License

Originally (C) 2014 Stanislav Sumbera

Maintained by Alexander Schoedon [email protected]

GPLv3 attached.

Credits

Inspired and portions taken from:

About

Leaflet Canvas Overlay is a straightforward full screen canvas overlay class that calls custom user function for gl drawing.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published