location
The location component allows the user to display a location on a map inside a . The location can be set on the to show in various options, such as in the standard component layout, in the header, in fullscreen, and configuring actions to show the current location.
Options | |
---|---|
address | The actual address of the location. Valid formats are: - address string - city, street, e.g. address: 20 W 34th St., New York, NY 10001, USA or in an expression calling a datasource [email protected] & ',' & @ctx.datasources.address.city & ',' & @ctx.datasources.address.country - latitude and longitude, e.g. address: 40.759412, -73.912306 - DMS format |
is AnimationDisabled | true or false to determine if map camera animation is disabled. |
markersData | This allows the user to add multiple markers on the map. There is a limit for markers showing on the map of 10k. For example: - type: component.location options: markersData: - lat: 0 lng: 0 - lat: 0 lng: 0 - lat: 0 lng: 0 You can use an expression to provide the latitude and longitude points from a datasource, for example: markersData: | [email protected].{"lng": $number($.lng), "lat": $number($.lat)} |
pathsData | Create one path from many points. The first point is the start destination, and the last is the end destination. There is a limit for paths showing on the map of 10k. for example: - type: component.location options: pathsData: - lat: 0 lng: 0 - lat: 0 lng: 0 address: [email protected] |
zoomLevel | Defines the initial zoom level of the map |
State Configuration | Key | Notes |
---|---|---|
location |
| |
activeItemId now |
|
- Test the layout of the location component when combining it with other components, as it can cause spacing issues.
- To display a location as a full screen, use the jig.fullscreen type with the component.location. See the Fullscreen location example below.