fix syntax
This commit is contained in:
parent
c916a67ae0
commit
5d2a4cab5f
1 changed files with 2 additions and 2 deletions
|
@ -854,7 +854,7 @@ L.U.Polyline = L.Polyline.extend({
|
||||||
},
|
},
|
||||||
|
|
||||||
getMeasure: function (shape) {
|
getMeasure: function (shape) {
|
||||||
var measure = L.GeoUtil.lineLength(this.map, shape | this._defaultShape());
|
var measure = L.GeoUtil.lineLength(this.map, shape || this._defaultShape());
|
||||||
return L.GeoUtil.readableDistance(measure, this.map.measureTools.getMeasureUnit());
|
return L.GeoUtil.readableDistance(measure, this.map.measureTools.getMeasureUnit());
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@ -1005,7 +1005,7 @@ L.U.Polygon = L.Polygon.extend({
|
||||||
},
|
},
|
||||||
|
|
||||||
getMeasure: function (shape) {
|
getMeasure: function (shape) {
|
||||||
var measure = L.GeoUtil.lineLength(this.map, shape | this._defaultShape());
|
var measure = L.GeoUtil.lineLength(this.map, shape || this._defaultShape());
|
||||||
return L.GeoUtil.readableArea(measure, this.map.measureTools.getMeasureUnit());
|
return L.GeoUtil.readableArea(measure, this.map.measureTools.getMeasureUnit());
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue