L.Control.FitsMapScale=L.Control.Scale.extend({options:{unitsArePixels:!0,pixelScale:1},_updateMetric:function(t){const e=this._getRoundNum(t);let i,n=this.options.unitsArePixels?e:e*this.options.pixelScale;n=parseFloat(n.toFixed(2)),this.options.unitsArePixels?i="px":n>60?(n/=60,i="'"):i='"';const o=n+i;this._updateScale(this._mScale,o,e/t)}}),L.control.fitsmapScale=function(t){return new L.Control.FitsMapScale(L.extend({imperial:!1,updateWhenIdle:!0},t))};