Leaflet (v1.8.0) logs a warning in the webconsole when calling hideMeasurements on a polygon that does not display any measurements. Checking the _measurementLayer beforehand would suppress this issue.
Leaflet (v1.8.0) logs a warning in the webconsole when calling hideMeasurements on a polygon that does not display any measurements.
Checking the _measurementLayer beforehand would suppress this issue.