标签
BmLabel
属性
| 属性名 | 类型 | 默认值 | 描述 |
|---|---|---|---|
| content | String | 文本标注的内容 | |
| title | String | 当鼠标移至标注上时显示此字段 | |
| labelStyle | Object | 文本标注的样式 | |
| offset | Size | 文本标注的位置偏移值 | |
| position | Point | 文本标注的地理位置 | |
| zIndex | Number | 文本标注的z轴位置 | |
| massClear | Boolean | true | 是否在调用map.clearOverlays清除此覆盖物 |
事件
| 事件名 | 参数 | 描述 |
|---|---|---|
| click | event{type, target, point, pixel} | 点击标签后会触发此事件 |
| dblclick | event{type, target, point, pixel} | 双击标签后会触发此事件 |
| mousedown | event{type, target, point, pixel} | 鼠标在标签上按下触发此事件 |
| mouseup | event{type, target, point, pixel} | 鼠标在标签释放触发此事件 |
| mouseout | event{type, target, point, pixel} | 鼠标离开标签时触发此事件 |
| mouseover | event{type, target, point, pixel} | 当鼠标进入标签区域时会触发此事件 |
| remove | event{type, target} | 移除标签时触发 |
| lineupdate | event{type, target} | 覆盖物的属性发生变化时触发 |
vue-baidu-map-3x