UNPKG

@tianditu/wc

Version:

Web components for tianditu, powered by Demo Macro.

39 lines (34 loc) 1.13 kB
/*! * MIT © Demo Macro */ 'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); const index = require('./index-75a53569.js'); const use = require('./use-c678b375.js'); const TdtControlOverviewMap = class { constructor(hostRef) { index.registerInstance(this, hostRef); this.position = "bottomright"; this.isOpen = true; this.uniqueId = undefined; this.control = undefined; this.map = undefined; } connectedCallback() { use.onload(() => { this.map = globalThis[this.uniqueId]; this.control = new T.Control.OverviewMap({ isOpen: this.isOpen, }); this.map.addControl(this.control); }); } componentWillRender() { use.onload(() => { }); } render() { return (index.h(index.Host, { key: '63eaba6d528a5dba48b3040da2d3e23eeaf4facd' }, index.h("slot", { key: '0b6e099b50b19bd000b0df11634bffdced2f594e' }))); } }; exports.tdt_control_overview_map = TdtControlOverviewMap; //# sourceMappingURL=tdt-control-overview-map.cjs.entry.js.map