geostyler
Version:
Framework for styling geodata
35 lines (34 loc) • 942 B
JavaScript
import { jsx as e } from "react/jsx-runtime";
import { Form as a, InputNumber as l } from "antd";
/* empty css */
import { isGeoStylerFunction as m } from "geostyler-style";
import { useGeoStylerLocale as c } from "../../context/GeoStylerContext/GeoStylerContext.js";
const d = ({
value: o,
onChange: n,
...t
}) => {
const r = c("ScaleDenominator");
return m(o) ? /* @__PURE__ */ e("span", { children: "GeostylerFunction currently not supported'" }) : /* @__PURE__ */ e(
a.Item,
{
className: "gs-max-scaledenominator",
label: r.maxScaleDenominatorLabelText,
colon: !1,
...t,
children: /* @__PURE__ */ e(
l,
{
className: "gs-max-scaledenominator-input",
value: o,
min: 0,
placeholder: r.maxScaleDenominatorPlaceholderText,
onChange: n
}
)
}
);
};
export {
d as MaxScaleDenominator
};