/**
 * @description  地图相关默认配置
 * @author       朱琦
 * @date         2022/2/28
 */

/**
 * 地图插件默认配置
 */
export const mapDefaultPlugins = [
  'MouseTool',
  'PlaceSearch',
  'Autocomplete',
  'CircleEditor',
  'PolyEditor',
  'RectangleEditor',
  'MarkerClusterer',
  'Rectangle',
  'HawkEye',
  'MapType',
  'Geolocation',
  'ControlBar',
  'MapType',
  'OverView',
  'ToolBar',
  'Scale',
  'OverView',
  'DistrictLayer',
  'DistrictSearch',
  'HeatMap',
  'Heatmap',
  'Driving',
  'GraspRoad'
]

/**
 * 地图创建基本配置
 */
export const initMapDefaultConfig = {
  key: 'a1fc0ec5f3b78143136030409f1c6e59',
  v: '1.4.15',
  uiVersion: '1.1',
  plugin: mapDefaultPlugins,
  callback: 'amapInitComponent',
  securityJsCode: '07de1684b2516c5823302ff7a45ec34d'
}


/**
 * 地图显示基本配置
 */
export const mapDefaultConfig = {
  //层级
  zoom: 8,
  //中心点
  center: [119.378231, 32.458852],
  //地图平移是否有动画
  animateEnable: false,
}

/**
 * AMapUI基础配置
 */
export const defaultMapUIConfig = {
  MvMapPointSimplifier: 'ui/misc/PointSimplifier', //海量点
  MvMapPathSimplifier: 'ui/misc/PathSimplifier', //路线
  MvMapSimpleMarker: 'ui/overlay/SimpleMarker', //单个标记点
  MvMapSimpleMarkers: 'ui/misc/MarkerList', //多个标记点
  MvMapSimpleInfoWindow: 'ui/overlay/SimpleInfoWindow' //弹框
}

/**
 * 默认打点图标配置
 */
export const defaultIconConfig = {
  name:'icon-default',
  url:'//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-default.png'
}

/**
 * 默认地图打点尺寸
 */
export const defaultIconSize = 30
