import{jsxs as a,jsx as r}from"react/jsx-runtime";import e from"classnames";import{BAR_WIDTH_PX as s}from"../../hooks/useMapViewState.js";import c from"./ScaleIndicator.module.css.js";var t=function(t){var i=t.distance,l=t.className;if(!i)return null;var o={"--scale-bar-width":"".concat(s,"px")};return a("div",{className:e(c.scaleIndicator,l),style:o,children:[r("span",{className:c.label,children:i}),r("div",{className:c.bar})]})};t.displayName="ScaleIndicator";export{t as ScaleIndicator};
//# sourceMappingURL=ScaleIndicator.js.map
