diff --git a/umap/static/umap/js/umap.features.js b/umap/static/umap/js/umap.features.js index d9fc87d2..e7f01e35 100644 --- a/umap/static/umap/js/umap.features.js +++ b/umap/static/umap/js/umap.features.js @@ -854,7 +854,7 @@ L.U.Polyline = L.Polyline.extend({ }, 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()); }, @@ -1005,7 +1005,7 @@ L.U.Polygon = L.Polygon.extend({ }, 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()); },