IITC-CE / Leaflet.Canvas-Markers

Leaflet plugin for displaying icons on canvas instead of DOM
MIT License
2 stars 4 forks source link

CanvasMarker instead of CanvasIconLayer #2

Open johnd0e opened 5 years ago

johnd0e commented 5 years ago

CanvasMarker should be compatible with all other leaflet layers / layers groups, to use it completely transparent. E.g. to be able to add each marker to any existent layergroup, and process all events.

johnd0e commented 5 years ago

Or it would be like this:

L.Marker.mergeOptions({ renderer: L.CanvasIconLayer }); // doesn't work now