---
title: API
order: 3
---

<br/>

| 参数名    | 说明                                                                                                                | 必填 | 类型                                                                                                                | 默认值 | 备注 |
|-----------|-------------------------------------------------------------------------------------------------------------------|------|---------------------------------------------------------------------------------------------------------------------|--------|------|
| children  | 点标记内容<br /><br />不设置即默认icon点标记                                                                        | N    | ReactNode                                                                                                           | -      |      |
| className | 样式类                                                                                                              | N    | String                                                                                                              | -      |      |
| type      | marker类型                                                                                                          | N    | 'cluster'（聚合点）, 'icon'（带icon点） , 'dot'（小点）, 'event'（事件点）, 'poi'（POI点）, 'component'（部件点）, 'avatar'（人） | null   | ---  |
| bizProps  | 对应type biz的属性                                                                                                  | N    | [IClusterProps , IDotProps , IEventProps , IPoiProps , IComponentProps , IAvatarProps](#bizprops)                   | null   | ---  |
| ...       | 其他配置参数对应高德Marker类的[**MarkerOptions**](https://lbs.amap.com/api/javascript-api/reference/overlay#marker) | N    | Object                                                                                                              | -      |      |

### bizProps

```typescript

interface IClusterProps {
  count: number;
  icon?: string;
  content?: React.ReactNode;
  normal?: {
    count?: number;
    color?: string;
    content?: React.ReactNode;
  };
  active?: {
    count?: number;
    color?: string;
    content?: React.ReactNode;
  };
};

interface IDotProps {
  color?: string;
  animation?: string[] | boolean;
}

interface IEventProps {
  color?: string;
  status?: 'pending' /* 待处置 */ | 'disposing'  /* 处置中 */;
  level?: string | number; // 严重等级
  count?: number;
  rotateImg?: string;
}

interface IPoiProps {
  fill?: string;
  stroke?: string;
  content?: React.ReactNode;
}

interface IComponentProps {
  color?: string;
  content: React.ReactNode;
  title: React.ReactNode;
  info: React.ReactNode;
}

interface IAvatarProps {
  content?: React.ReactNode;
}

```