Thursday, May 22, 2014

Leaflet editable polyline

I just rewrote my online GPS editing app to use leaflet and OSM layers instead of google map. One of the most difficult part was editable polylines. Leaflet already has support for editable polylines, but their performance deteriorates badly when the number of points reaches thousands.

That's why I wrote leaflet-editable-polylines

How it works? It doesn't show the editable markers until you zoom close enough. (That was the original problem, too many markers with too many event handlers to handle all the time). 

Check here for an example with 20,000 points.

No comments:

Post a Comment