MapTooltip
Extends:
leaflet~L.Tooltip → MapTooltip
用于在地图上显示提示框
Example:
var tooltip = new KQ.Map.MapTooltip({
offset: new KQ.Struct.Point(0, -30),
});
tooltip.setLatLng(new KQ.Struct.LatLng(30, 104));
tooltip.setContent('Hello world!');
mapView.openTooltip(tooltip);
Constructor Summary
Public Constructor | ||
public |
constructor(options: Object) 构造函数 |
Method Summary
Public Methods | ||
public |
addToMapView(mapview: MapView): Null 添加到mapview |
|
public |
remove(): Null 从地图移除 |
|
public |
setContent(htmlContent: String): Null 设置html内容 |
|
public |
设置弹出框弹出的地理点坐标 |