Skip to content

Commit

Permalink
getLatLngs changed on the leaflet update to >1.*, see Leaflet/Leaflet…
Browse files Browse the repository at this point in the history
  • Loading branch information
afirte committed Oct 19, 2017
1 parent a9fa547 commit 427135f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dist/leaflet.draw.straightlines.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/leaflet.draw.straightlines.js
Expand Up @@ -52,7 +52,7 @@

var currentLine = getLayerOfType(L.Polyline);
if (currentLine) {
var latLngs = currentLine.getLatLngs();
var latLngs = currentLine.getLatLngs()[0];
var lastPosition = latLngs[latLngs.length - 1];
var previousPosition = latLngs[latLngs.length - 2];

Expand Down

0 comments on commit 427135f

Please sign in to comment.