geostyler
Version:
Framework for styling geodata
32 lines (31 loc) • 665 B
JavaScript
import { jsx as o } from "react/jsx-runtime";
import { Select as t } from "antd";
import { isGeoStylerFunction as c } from "geostyler-style";
import a from "../../../../Util/FunctionUtil.js";
const m = t.Option, F = ({
resamplingOptions: i = ["linear", "nearest"],
onChange: r,
value: n
}) => {
const l = i.map((e) => (c(e) && (e = a.evaluateFunction(e)), /* @__PURE__ */ o(
m,
{
value: e,
children: e
},
e
)));
return /* @__PURE__ */ o(
t,
{
className: "editor-field resampling-field",
allowClear: !0,
value: n,
onChange: r,
children: l
}
);
};
export {
F as ResamplingField
};