new module:Popup(initialConfig, lizmapState, map, digitizing)
Create a popup instance
Parameters:
| Name | Type | Description |
|---|---|---|
initialConfig |
Config | The lizmap initial config instance |
lizmapState |
Layers | The lizmap user interface state |
map |
Map | OpenLayers map |
digitizing |
Digitizing | The Lizmap digitizing instance |
- Source:
Classes
Methods
(async) displayFeaturePopup(layerId, featureId, pkField, coordinateopt) → {Promise.<boolean>}
Display a feature popup for a given layer and feature id
Parameters:
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
layerId |
string | The layer id |
||
featureId |
string | The feature id |
||
pkField |
string | The primary key field |
||
coordinate |
Array.<number> | null |
<optional> |
null | The popup anchor in the map projection, defaults to the map center |
- Source:
Returns:
True if the popup was displayed, false otherwise
- Type
- Promise.<boolean>
(static) onclick() → {boolean}
Create an overlay to anchor the popup to the map.
- Source:
Returns:
False
- Type
- boolean