leaflet-measure-path
Advanced tools
Comparing version 1.4.0 to 1.4.1
@@ -160,3 +160,3 @@ !(function() { | ||
var addInitHook = function() { | ||
const showOnHover = this.options.measurementOptions && this.options.measurementOptions.showOnHover; | ||
var showOnHover = this.options.measurementOptions && this.options.measurementOptions.showOnHover; | ||
if (this.options.showMeasurements && !showOnHover) { | ||
@@ -231,3 +231,3 @@ this.showMeasurements(); | ||
onAdd: override(L.Polyline.prototype.onAdd, function() { | ||
const showOnHover = this.options.measurementOptions && this.options.measurementOptions.showOnHover; | ||
var showOnHover = this.options.measurementOptions && this.options.measurementOptions.showOnHover; | ||
if (this.options.showMeasurements && !showOnHover) { | ||
@@ -361,3 +361,3 @@ this.showMeasurements(this.options.measurementOptions); | ||
onAdd: override(L.Circle.prototype.onAdd, function() { | ||
const showOnHover = this.options.measurementOptions && this.options.measurementOptions.showOnHover; | ||
var showOnHover = this.options.measurementOptions && this.options.measurementOptions.showOnHover; | ||
if (this.options.showMeasurements && !showOnHover) { | ||
@@ -364,0 +364,0 @@ this.showMeasurements(this.options.measurementOptions); |
{ | ||
"name": "leaflet-measure-path", | ||
"version": "1.4.0", | ||
"version": "1.4.1", | ||
"description": "Show measurements on Leaflet paths", | ||
@@ -27,2 +27,2 @@ "main": "leaflet-measure-path.js", | ||
} | ||
} | ||
} |
31215