fix syntax

This commit is contained in:
Philip Beelmann 2023-04-27 09:39:15 +00:00
parent c916a67ae0
commit 5d2a4cab5f

View file

@ -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());
}, },