Skip to content

Commit

Permalink
Merge remote-tracking branch 'refs/remotes/origin/develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
Raruto committed Apr 7, 2019
2 parents 0f386c9 + e2274f2 commit 6356bc2
Show file tree
Hide file tree
Showing 8 changed files with 286 additions and 2 deletions.
Binary file added images/elevation-lime.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
93 changes: 93 additions & 0 deletions images/elevation-lime.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/elevation-purple.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
93 changes: 93 additions & 0 deletions images/elevation-purple.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/elevation-steelblue.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
93 changes: 93 additions & 0 deletions images/elevation-steelblue.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/elevation.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 7 additions & 2 deletions leaflet-elevation.js
Original file line number Diff line number Diff line change
Expand Up @@ -927,14 +927,19 @@ L.Control.Elevation = L.Control.extend({
eleDiv.appendChild(container);
},

loadGPX: function(map, url) {
if (this.options.detachedView) {
loadChart: function(map) {
if (this.options.detachedView) {
this._addToElevationDiv(map);
} else {
this.addTo(map);
}
},

loadGPX: function(map, url) {
this.loadChart(map);
this.addGPXFile(url);
}

});

L.control.elevation = function(options) {
Expand Down

0 comments on commit 6356bc2

Please sign in to comment.