Popup component for displaying properties of a map feature.
Example
<OlMapPopup />
Methods
(function) data()
Method data
(method) hasFeatureStatsButton() → {boolean}
Checks should we display feature stats button
Returns:
True if the feature has a history button, false otherwise.
- Type
- boolean
(method) hide()
Hides the popup.
(method) show(map, title, coordinates, feature, additionalProps)
Shows the popup.
Parameters:
Name | Type | Description |
---|---|---|
map |
Object | The map to show the popup on. |
title |
string | The title of the popup. |
coordinates |
Array | The coordinates of the popup. |
feature |
Object | The feature to show the popup for. |
additionalProps |
Object | Additional properties to show in the popup. |
(method) showFeatureStats()
Method showFeatureStats
(method) showHistory()
Method showHistory
(function) mounted()
Initializes the popup.
(function) onclick()
Method onclick