Skip to content

Instantly share code, notes, and snippets.

@salomvary
Last active September 15, 2015 21:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save salomvary/ea24870975bd5ef829c3 to your computer and use it in GitHub Desktop.
Save salomvary/ea24870975bd5ef829c3 to your computer and use it in GitHub Desktop.
Evaluating Leaflet PolyLine Drawing Plugins

Evaluating Leaflet PolyLine Drawing Plugins

Criteria

  • Small footprint
  • Decent code
  • Active development
  • Touch support
  • Drawing a new line
  • Editing mid-points of an existing line
  • Continuing an existing line
  • Removing points
  • Removing multiple points from an existing line

Leaflet.draw

Pros

  • Official
  • Active development (last commit 13 days ago)
  • Decent code, tests
  • Touch support

Cons

  • Can not continue line
  • Can not remove multiple poit
  • Can only remove points one-by-one

leaflet-editable-polyline

Pros

  • Claims to be able to handle lines with large amount of points
  • Small footprint (600 loc)

Cons

  • Last commit more than 1 year ago
  • No tests
  • No touch support
  • Can only add one point at a time to an existing line

Leaflet Plotter

Pros

  • Small footprint (160 loc)

Cons

  • No tests
  • Last commit more than a year ago
  • No touch

Leaflet.Editable

Pros

  • No UI controls
  • Last commit 4 days ago
  • Documentation (!!)
  • Tests
  • Touch support

Cons

  • Source is a single file (1.2 kloc)
  • Continue line did not work
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment