From 5d2a4cab5f4b69c4189ebb350bf70abe2da2bd16 Mon Sep 17 00:00:00 2001 From: Philip Beelmann Date: Thu, 27 Apr 2023 09:39:15 +0000 Subject: [PATCH] fix syntax --- umap/static/umap/js/umap.features.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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()); },