Leaflet Canvas Overlay is a straightforward full screen canvas overlay class that calls custom user function for gl drawing.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
L.CanvasOverlay.js
LICENSE
README.md

README.md

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 schoedon@uni-potsdam.de

GPLv3 attached.

Credits

Inspired and portions taken from: