UNPKG

cione-comp-lib

Version:

`$ yarn add cione-comp-lib` 或者 `$ npm i cione-comp-lib -S`

40 lines (39 loc) 1.45 kB
var __defProp = Object.defineProperty; var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value; var __publicField = (obj, key, value) => { __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value); return value; }; import { MAP_FRAME_TYPE } from "./config/type/MapFrame.mjs"; import { vueAmapModule } from "../otherMapClass/vueAmapClass/module/index.mjs"; class mapManageClass { constructor(options) { __publicField(this, "_this"); __publicField(this, "MapFrameType"); __publicField(this, "centerPoint"); __publicField(this, "zoom"); __publicField(this, "mapLayer"); __publicField(this, "size"); console.log("mapManageClass ********** init ********** constructor"); this._this = this; } initMap(config, callback) { const { centerPoint, zoom, mapLayer, size, frameMap } = config; this.MapFrameType = frameMap; this.centerPoint = centerPoint; this.zoom = zoom; this.mapLayer = mapLayer; this.size = size; console.log("this", this); switch (this.MapFrameType) { case MAP_FRAME_TYPE.Vue_amap: console.log("\u6267\u884CVue_amap\u521D\u59CB\u5316"); vueAmapModule.initMap(); break; } } test() { console.log("***************** mapManageClass\u7BA1\u7406\u7C7B\u6D4B\u8BD5 *****************"); } } export { mapManageClass };