index.js

/*
 * @Author: jianlei wang
 * @Date: 2024-02-28 15:07:24
 * @Last Modified by: jianlei wang
 * @Last Modified time: 2024-08-15 17:43:49
 */

export { default as Map } from './Map'
export { BaseLayer } from './core/Layers'
export {
  PosFromXYZ,
  Coordinate,
  Screen,
  Turf,
  Measurement,
} from './utils/Modules'
export { default as HandlerEvent } from './utils/Events'
export { default as CreateRemindertip } from './utils/ReminderTip'

import {
  regionData,
  provinceAndCityData,
  codeToText,
} from 'element-china-area-data'

import * as WebApi from './utils/WebApi'

/**
 * 图层对象,高亮类型,正对于地图场景中以Entity形式加载的对象
 * @enum {String}
 */
const ActiveType = {
  /**
   * 呼吸灯效果,点(广告版)、线、面对象均有效
   * @type {String}
   * @constant
   */
  BLINK: 'blink',
  /**
   * 闪烁(缩放)效果,限点(广告版)、线对象生效,面对象无效
   * @type {String}
   * @constant
   */
  SCALING: 'scaling',
  /**
   * 跳跃效果,仅点(广告版)对象有效,线和面对象无效
   * @type {String}
   * @constant
   */
  JUMP: 'jump',
}
/**
 * 中国行政区划及编码
 * @enum
 */
const ChinaCode = {
  /**
   * 三级行政区划对象
   * @type {Array<RegionCode>}
   * @constant
   */
  regionData,
  /**
   * 二级行政区划对象
   * @type {Array<RegionCode>}
   * @constant
   */
  provinceAndCityData,
  /**
   * 三级行政区划对象
   * @enum {String}
   */
  codeToText,
}
export { ActiveType, WebApi, ChinaCode }