Module: ol-map-popup-obsolete

Popup component for displaying properties of a map feature.

Source:

Example

<OlMapPopup />

Methods

(function) data()

Method data
Source:

(method) hasFeatureStatsButton() → {boolean}

Checks should we display feature stats button

Source:
Returns:

True if the feature has a history button, false otherwise.

Type
boolean

(method) hide()

Hides the popup.

Source:

(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.

Source:

(method) showFeatureStats()

Method showFeatureStats
Source:

(method) showHistory()

Method showHistory
Source:

(function) mounted()

Initializes the popup.

Source:

(function) onclick()

Method onclick
Source: