import { watch as a } from "vue";
function o(e) {
  a(
    () => e.settings.tangram_globe?.values.enabled,
    (t) => {
      if (!e.map.isReady.value) return;
      e.map.getMapInstance().setProjection(t ? { type: "globe" } : { type: "mercator" });
    },
    { immediate: !0 }
  ), a(e.map.isReady, (t) => {
    t && e.settings.tangram_globe?.values.enabled && e.map.getMapInstance().setProjection({ type: "globe" });
  });
}
export {
  o as install
};
//# sourceMappingURL=index.js.map
