FeatureTooltip
Displays a tooltip if a feature with a name is hovered.
Static Method Summary
Static Public Methods | ||
public static |
canDisplay(feature: *): * |
Constructor Summary
Public Constructor | ||
public |
constructor(options: FeatureTooltipOptions) |
Member Summary
Private Members | ||
private |
$element_: jQuery |
|
private |
|
|
private |
|
|
private |
feature_: ol.Feature |
|
private |
|
|
private |
overlay_: ol.Overlay |
Method Summary
Public Methods | ||
public |
getFeature(): ol.Feature |
|
public |
|
|
public |
setFeature(feature: ol.Feature, layer: *, coordinate: ol.Coordinate) |
|
public |
|
Static Public Methods
public static canDisplay(feature: *): * source
Params:
Name | Type | Attribute | Description |
feature | * |
Return:
* |
Public Constructors
public constructor(options: FeatureTooltipOptions) source
Params:
Name | Type | Attribute | Description |
options | FeatureTooltipOptions |
|
Private Members
private $element_: jQuery source
private feature_: ol.Feature source
private overlay_: ol.Overlay source
Public Methods
public setFeature(feature: ol.Feature, layer: *, coordinate: ol.Coordinate) source
Params:
Name | Type | Attribute | Description |
feature | ol.Feature |
|
|
layer | * | ||
coordinate | ol.Coordinate |