commit ab871f83ed130b84abb5eb083e9cfcdae3027fb9 parent 2da03ca07813531dc7934627ff19da2f2b1fa4a2 Author: Sergej Orlov <wladimirych@gmail.com> Date: Wed, 2 Aug 2017 00:12:46 +0300 [elevation profile] fixed error when showing profile first time Diffstat:
M | src/lib/leaflet.control.elevation-profile/index.js | | | 4 | +++- |
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/src/lib/leaflet.control.elevation-profile/index.js b/src/lib/leaflet.control.elevation-profile/index.js @@ -299,7 +299,9 @@ const ElevationProfile = L.Class.extend({ }, removeFrom: function(map) { - this.abortLoading() + if (this.abortLoading) { + this.abortLoading(); + } if (!this._map) { return; }