UNPKG

@tuoyuan/map-adapter-lib

Version:

地图适配器库

50 lines (49 loc) 1.06 kB
var s = Object.defineProperty; var h = (e, t, o) => t in e ? s(e, t, { enumerable: !0, configurable: !0, writable: !0, value: o }) : e[t] = o; var r = (e, t, o) => h(e, typeof t != "symbol" ? t + "" : t, o); import { EventBus as i } from "./MapEvent.js"; class _ extends i { constructor() { super(...arguments); /** 地图上下文 */ r(this, "_ctx", null); /** 渲染DOM */ r(this, "_dom", null); /** 当前缩放层级 */ r(this, "_zoom", 0); /** 当前旋转角度 */ r(this, "_rotate", 0); /** 当前相机高度 */ r(this, "_height", 0); /** 当前俯仰角 */ r(this, "_pitch", 0); } get dom() { return this._dom; } get zoom() { return this._zoom; } getZoom() { return this._zoom; } getRotate() { return this._rotate; } getHeight() { return this._height; } getPitch() { return this._pitch; } /** 设置地图上下文 */ setCtx(o) { this._ctx || (this._ctx = o); } } class u extends _ { } export { u as AbstractMap, _ as BaseMap };