UNPKG

@tianditu/wc

Version:

Web components for tianditu, powered by Demo Macro.

35 lines (32 loc) 1.05 kB
/*! * MIT © Demo Macro */ import { r as registerInstance, h, H as Host } from './index-0cd9c6b6.js'; import { o as onload } from './use-ccb66c1b.js'; const TdtControlOverviewMap = class { constructor(hostRef) { registerInstance(this, hostRef); this.position = "bottomright"; this.isOpen = true; this.uniqueId = undefined; this.control = undefined; this.map = undefined; } connectedCallback() { onload(() => { this.map = globalThis[this.uniqueId]; this.control = new T.Control.OverviewMap({ isOpen: this.isOpen, }); this.map.addControl(this.control); }); } componentWillRender() { onload(() => { }); } render() { return (h(Host, { key: '63eaba6d528a5dba48b3040da2d3e23eeaf4facd' }, h("slot", { key: '0b6e099b50b19bd000b0df11634bffdced2f594e' }))); } }; export { TdtControlOverviewMap as tdt_control_overview_map }; //# sourceMappingURL=tdt-control-overview-map.entry.js.map