@skinnyjames/leaflet-canvas
v1.0.6
Published
a canvas layer for leaflet
Downloads
38
Readme
leaflet-canvas
a canvas layer for leaflet maps derived from Sumbera/gLayers.Leaflet
usage
npm install @skinnyjames/leaflet-canvas
test it out
git clone [email protected]:skinnyjames/leaflet-canvas.git
npm install
npm run build
npm run dev
check out http://localhost:8080
api
draw
-> redraws the canvas layer
events
drawing
-> invoked before each draw cycleexposes the canvas element, map, bounds, size, zoom, center and corner register this event to draw on the canvas
click
-> invoked when the canvas is clickedexposes getBufferedBounds in the event object
mousemove
-> invoked on hoverexposes getBufferedBounds in the event object
move
-> invoked when the canvas movesmoveend
-> invoked after a canvas movezoom
resize
mounted
unmounted