(()=>{function e(e,t){let n;try{n=JSON.parse(e)}catch(t){n=e}return""==n||Array.isArray(n)&&n.includes(t.options&&t.options.group)||t.options&&t.options.group===n}LeafletWidget.methods.setMeasurementOptions=function(e){(function(){this.measurementOptions=e}).call(this)},LeafletWidget.methods.enableMeasurements=function(t){(function(){var n=this.measurementOptions||{};this.eachLayer((function(s){e(t,s)&&"function"==typeof s.showMeasurements&&s.showMeasurements(n)}))}).call(this)},LeafletWidget.methods.disableMeasurements=function(t){(function(){this.eachLayer((function(n){e(t,n)&&"function"==typeof n.hideMeasurements&&n.hideMeasurements()}))}).call(this)},LeafletWidget.methods.refreshMeasurements=function(t){(function(){this.eachLayer((function(n){e(t,n)&&"function"==typeof n.updateMeasurements&&n.updateMeasurements()}))}).call(this)}})();