Skip to content

Commit

Permalink
fix: check for zero value on area
Browse files Browse the repository at this point in the history
  • Loading branch information
johnnyblasta committed May 14, 2024
1 parent c8d0e61 commit 4dc5519
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 4dc5519

Please sign in to comment.