Map API
Props
| Prop | Default | Description |
|---|---|---|
| apiKey string | undefined |
百度地图 API KEY |
| withCenterMarker boolean | false |
是否标注中心点。默认否。 |
| events Array.<string> | undefined |
需要引入的 Map 事件。 |
| withAllMapEvents boolean | false |
是否导入百度地图 Map 全部事件。默认否。建议通过 events 只引入需要用到的事件。 |
| options {label: string, address: string, lng: number, lat: number, zoom: number} | undefined |
地图中心点配置 |
Events
| Event | Returns | Description |
|---|---|---|
| instance | {center} | 取地图中心坐标点时触发 |
| recentre | {center} | 取地图中心坐标点时触发 |
| ready | Nothing | 地图 initialise 完成后触发 |
Slots
| Slot | Slot Props | Description |
|---|---|---|
| default | None | No Description |
Last Updated: 2021-08-29