Skip to content

Commit

Permalink
fix wrong variabile name
Browse files Browse the repository at this point in the history
  • Loading branch information
Raruto authored Nov 2, 2018
1 parent e97c51d commit bf3f4b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion leaflet-elevation.js
Original file line number Diff line number Diff line change
Expand Up @@ -746,7 +746,7 @@ L.Control.Elevation = L.Control.extend({
this._map.fitBounds(e.target.getBounds());
});
this.gpx.on("addline", function(e) {
this.addData(e.line, this.g);
this.addData(e.line, this.gpx);
}, this);

this.gpx.addTo(this._map);
Expand Down

0 comments on commit bf3f4b2

Please sign in to comment.