Skip to content

Latest commit

 

History

History
40 lines (25 loc) · 847 Bytes

README.md

File metadata and controls

40 lines (25 loc) · 847 Bytes

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: