Tooltip
绑定一个tooltip到一个marker.
参数
名字 | 描述 | 默认值 |
---|---|---|
content | 必需 tooltip的内容字符串 | / |
marker | 必需 tooltip所附属的marker实例 | / |
maxWidth | 可选项 number tooltip的最大宽度 | 300 |
方法
名字 | 描述 |
---|---|
open() | 打开tooltip |
close() | 关闭tooltip |
Example
1var tooltip = new nextbillion.maps.Tooltip({
2 marker: marker,
3 content: 'this is a tooltip',
4})
Popup