import { jsx as n } from "react/jsx-runtime";
import l from "./clustering/ClusterLayer.js";
import { wrapSimpleTheme as p } from "../../../utils/clustering.js";
import { useMapContext as i } from "../../MapContext.js";
const f = (t) => {
  const e = i(), { simpleTheme: r, clusterDissolvable: o = !0, ...s } = t, m = !o || e.showCluster, a = {
    clusterTheme: r && p(r, e.enableMarkerIconCache),
    ...s
  };
  return /* @__PURE__ */ n(l, { ...a, minWeight: m ? void 0 : 1e9 });
};
export {
  f as default
};
//# sourceMappingURL=MarkerLayer.js.map
