1.0.6 • Published 6 years ago

@skinnyjames/leaflet-canvas v1.0.6

Weekly downloads
20
License
MIT
Repository
github
Last release
6 years ago

leaflet-canvas

a canvas layer for leaflet maps derived from Sumbera/gLayers.Leaflet

usage

npm install @skinnyjames/leaflet-canvas

test it out

git clone git@github.com: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 cycle

    exposes the canvas element, map, bounds, size, zoom, center and corner register this event to draw on the canvas

  • click -> invoked when the canvas is clicked

    exposes getBufferedBounds in the event object

  • mousemove -> invoked on hover

    exposes getBufferedBounds in the event object

  • move -> invoked when the canvas moves

  • moveend -> invoked after a canvas move

  • zoom

  • resize

  • mounted

  • unmounted

1.0.6

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.0

6 years ago