Leaflet.Canvas-Markers
Leaflet.Canvas-Markers copied to clipboard
Readme.md outdated
The Readme.md installation instructions refer to a dist folder (link), which was removed in 8a243f280786a66fed02b3e642036fce6f777942. I imported the file /src/plugin/leaflet.canvas-markers.js instead and I am getting the following error:

After some clicking around, obviously the /src/_full.js or /src/_standalong.js files have to get imported, but I could not yet figure out what rbush is or what the difference between the two is.
Updating the Readme.md would greatly improve getting started with Leaflet.Canvas-Markers.
These steps worked for me fine:
- import leaflet
- import rbush (since it is dependency of this plugin)
- import /src/plugin/leaflet.canvas-markers.js
- initialize factory with
window.L.CanvasIconLayer = factory(L);
_full.js and _standalone.js are just doing the steps above(reduce boilerplate a bit)
Hope that helps
Edit :
window.L.CanvasIconLayer = layerFactory(L);
FYI the dist folder is still there if you get the library through npm