Skip to content

Commit

Permalink
fix: check for zero value on area (#2010)
Browse files Browse the repository at this point in the history
  • Loading branch information
johnnyblasta authored May 17, 2024
1 parent 278d2b7 commit 67d8595
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/controls/measure.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ const Measure = function Measure({
const segmentLabelStyle = drawStyles.getSegmentLabelStyle(line, projection);
styles = styles.concat(segmentLabelStyle);
}
if (label) {
if (label !== '0 m²') {
labelStyle.setGeometry(point);
labelStyle.getText().setText(label);
styles.push(labelStyle);
Expand Down

0 comments on commit 67d8595

Please sign in to comment.