francoisromain / leaflet-markers-canvas

A Leaflet plugin to render many markers in a canvas instead of the DOM
GNU Affero General Public License v3.0
42 stars 15 forks source link

Redraw doesnt appear to work on markers outside the original draw view #10

Closed Michael-372 closed 2 years ago

Michael-372 commented 2 years ago

I'm drawing trajectories in a map that follow a path of markers. The markers in the original canvas view draw quickly and seem to be lined up (though panning sometimes renders the markers off position). My main problem here is that when I pan to another part of the trajectory, the markers that I know should be there are not drawn.

Is there a way to force markers that are not visible to still be drawn? Or atleast to draw them when they become visible?

In the demos for the tool, it looks like offscreen markers SHOULD be popping in when moving

Michael-372 commented 2 years ago

Disregard, found a bug in my own code