Closed md-seb closed 4 years ago
git clone git@github.com:IITC-CE/Leaflet.Canvas-Markers.git cd Leaflet.Canvas-Markers git checkout getevents npm install npm install leaflet npm run build cd dist cp leaflet.canvas-markers.js /roads-seb/libs/
You must either preload rbush
, or use leaflet.canvas-markers.standalone.js
.
using leaflet.canvas-markers.standalone.js makes no difference, see updated http://www.metdesk.com/roads-seb/libs/index.html
Ok, I see now.
Change _full.js
to
window.rbush = require("rbush");
var factory = require("./plugin/leaflet.canvas-markers");
window.L.CanvasIconLayer = factory(L);
Then build and use leaflet.canvas-markers.js
.
For sample usage see updated index.html
.
I wanted to use L.circleMarker, but the plugin fails with
Uncaught TypeError: Cannot read property 'load' of undefined at leaflet.canvas-markers.js:386
I looked at the source but I don't see any code handling SVG markers. Am I missing anything?