Popup
- Last UpdatedApr 23, 2024
- 2 minute read
Describes the content of a popup shown when a feature is clicked.
For Layer popup configuration, there are four options: graphic, text, html, and none.
Graphic
Uses an Industrial Graphic as a popup content.
Below are the configurable options for this type of popup:
|
Property |
Type |
Description |
|||
|---|---|---|---|---|---|
|
customProperties [optional] |
customProperties |
Defines Custom properties to set when displaying the Industrial Graphic Below are the configurable options for CustomProperties:
|
|||
|
graphic |
string |
Defines Industrial Graphic name template. For instance, symbols use tagname symbol. You can use {attribute} to insert a feature's field attribute value. |
|||
|
height [Optional] |
String | Number |
Provides Popup content height in pixels. A template string can be used to set the width using a feature's attribute field value. |
|||
|
type |
graphic |
A type of Popup. |
|||
|
width [Optional] |
String | Number |
Provides popup content width in pixels. A template string can be used to set the width using a feature's attribute field value. |
Text
Uses a plain text template as popup content.
Below are the configurable options for this type of popup.
|
Property |
Type |
Description |
|---|---|---|
|
height [Optional] |
String | Number |
Provides popup content height in pixels. A template string can be used to set the width using a feature's attribute field value. |
|
text |
String |
Defines text template. Use {attribute} to insert a feature's field attribute value. |
|
type |
text |
A type of Popup. |
|
width [Optional] |
String | Number |
Defines Popup content width in pixels. A template string can be used to set the width using a feature's attribute field value. |
html
Uses an HTML template as popup content.
Below are the configurable options for this type of popup.
|
Property |
Type |
Description |
|
height [Optional] |
String | Number |
Defines Popup content height in pixels. A template string can be used to set the width using a feature's attribute field value. |
|
Html |
String |
Defines HTML template. Use {attribute} to insert a feature's field attribute value. |
|
Type |
html |
A Popup type. |
|
width [Optional] |
String | Number |
Defines popup content width in pixels. A template string can be used to set the width using a feature's attribute field value. |
none
Disables popup for this layer.