You are here:
CockpitMap Control
Define a CockpitMap in the UI contract to display maps in a card container.
Required Editions
| Available in: Lightning Experience in Performance, Unlimited, and Enterprise Editions that have Consumer Goods Cloud enabled. |
| Attribute | Description | Value |
|---|---|---|
| Datasource | Data shown in the map. | ApplicationContext or ProcessContext |
| idField | Name of the attribute in the data source record that stores the marker ID for this record. Labels markers on the map. | String |
| latitudeField | Name of the attribute holding the latitude value. | String |
| longitudeField | Name of the attribute holding the longitude value. | String |
| name | Identification of the map. | String |
| pKeyField | Name of the attribute holding the pKey value. | String |
| toolTipField | Name of the attribute in the data source record that stores the tooltip for markers on the map. | String |
| width | Width of the card. | For example 4 cm, 8 cm, 3 cm |
These attributes are hyperlink enabled:
- Data source
- binding
- id
The child nodes for CockpitMap control has these child nodes:
- Bindings (can have up to three child nodes—Binding or Resource or both)
- Binding
- Resource
- Events
- MarkerInfoClickedEvent
- HideSection
- SelectArea
- ShowSection
- ValidateAndSelectArea
- Params
- Param
Note Up to three child nodes (Binding or Resource or both) are allowed in Bindings.
| Binding Attributes | Description | Value |
|---|---|---|
| target | The UI element. | MarkerImage, CurrentPositionImage, or DisplayTraffic |
| binding | The source of the binding. | ApplicationContext or ProcessContext |
| bindingMode | The binding mode that controls the updating process. | ONE_WAY |
| Resource Attributes | Description | Value |
|---|---|---|
| target | The UI element. | MarkerImage, CurrentPositionImage, or DisplayTraffic |
| type | Defines how the resource is shown. | Image |
| id | Shows the ID that is used for mapping the localized resource and the UI element. | An Image contract |
| defaultImage | Shows the image that is set as default. | String |
| MarkerInfoClickedEvent Attributes | Description | Value |
|---|---|---|
| event | The name of the event that is called in the process. | A case-sensitive event name that matches an event name in the related Process contract. |
| name | The name of the parameter. | String |
| value | The value of the parameter. | String |
Did this article solve your issue?
Let us know so we can improve!

