location
The location widget displays a map or location on its surface. Configure it within a jig under the widgets property, then reference its name (widgetId) and define its size in a grid-item component.

Configuration 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, USAIn an expression calling a datasource
[email protected] & ',' & @ctx.datasources.address.city & ',' & @ctx.datasources.address.countrylatitude and longitude, e.g.
address: 40.759412, -73.912306
is AnimationDisabled
true or false to determine if map animation is disabled.
isFollowUserLocationEnabled
When enabled, the viewPoint will be centred on the user’s real-time location.
markers
Multiple markers can be configured to display on the map. There is a 10k limit for markers showing on the map. See multi-markers code example below. You can use an expression to provide the latitude and longitude points from a datasource. See multi-datasource code example below.
marker-item
anchorTo: - Anchor the marker to a specific point, either bottom-center or center radius - Display a circle around the marker. In the radius you can configure the color, unit (Default is kilometres) icon - Choose an icon for the markers. You can style the icon color, emphasis, type, shape and size.
paths
Create one path from many points. The first point is the start destination, and the last is the end destination. There is a 10K limit for paths showing on the map. See path-multi-points code example below.
viewPoint
Controls the visible area of the map, defining what the user sees. It allows control over position, zoom and orientation. Options include: centerPosition: middle or top
zoomLevel
Defines the initial zoom level of the map. Zooming in enlarges the view, revealing finer details, improving readability, and enhancing location precision.
- type: component.location
options:
markers:
data:
- latitude: 40.759412
longitude: -73.912306
- latitude: 40.745368
longitude: -74.057189
- latitude: 40.76479429122513
longitude: -73.97429291692742 markers:
data: |
[email protected].{"lng": $number($.lng), "lat": $number($.lat)} - type: component.location
options:
paths:
data:
- latitude: 40.759412
longitude: -73.912306
- latitude: 40.803495
longitude: -73.950694
address: [email protected][0].addressbottom
The component will be added to the bottom of the widget.
footer
Add text to the footer of the widget.
footerAlign
Align the footer text to left, right, center.
top
The component will be added to the top of the widget.
Considerations
The location widget can only be used on grid-items with widget sizes of 2x2, 2x4, 4x2, 4x4.
Examples and code snippets
location widget using address (4x2)

This example demonstrates how to configure a widget within a default jig and display it on a jig.grid using a 4x2 layout. The widget focuses on showcasing a specific location based on the provided address.
Examples: See the complete example using static data in GitHub. See the complete example using dynamic data in GitHub.
Datasources: See the complete datasource for dynamic data in GitHub.
widgets:
# Provide name for the widget that will be used as the widgetId.
widgetAddress:
type: widget.location
instanceId: address
options:
viewPoint:
centerPosition: middle
# Add the address of the location.
address: Národní 135/14, 110 00 Praha
# Add a pin to the exact address.
markers:
# To add a pin to the exact location, configure a marker & icon.
data: [email protected][0]
item:
type: component.marker-item
options:
address: [email protected][0].street
children:
type: component.icon
options:
# Specify the color of the icon.
color: negative
# Specify the type of icon.
icon: pin-1-map widgets:
# Provide name for the widget that will be used as the widgetId.
widgetAddress:
type: widget.location
instanceId: address
options:
viewPoint:
centerPosition: middle
# Add the address of the location using a datasource.
address: |
[email protected][0].street
& ',' & @ctx.datasources.address[0].city
& ',' & @ctx.datasources.address[0].country
# To add a pin to the exact location, configure a marker & icon.
markers:
data: [email protected][0]
item:
type: component.marker-item
options:
address: [email protected][0].street
children:
type: component.icon
options:
# Specify the color of the icon.
color: negative
# Specify the type of icon.
icon: pin-1-map title: Location widgets
type: jig.grid
children:
- type: component.grid-item
options:
# Specify the size of the widget.
size: "4x2"
children:
# Choose a jig.component in the grid-item.
type: component.jig-widget
options:
# Provide the name of the jig where the widget is configured.
jigId: location-widgets
# Specify the widgetId = Widget Name
widgetId: widgetAddressdatasources:
address:
type: datasource.static
options:
data:
- id: 1
street: Národní 135/14
city: 110 00 Praha
country: Praha
- id: 2
street: 768 5th Ave
city: New York
country: US# Grid-item for the static jig.
children:
- type: component.grid-item
options:
size: "4x2"
children:
type: component.jig-widget
options:
jigId: location-widget
widgetId: widgetAddresslocation widget with multiple markers (4x2)

This example demonstrates how to configure a widget within a default jig and display it on a jig.grid using a 4x2 layout. The widget focuses on showcasing multiple markers based on the provided coordinates.
Examples:
See the complete example using static data in GitHub.
widgets:
# Provide name for the widget that will be used as the widgetId.
widgetMarkers:
type: widget.location
options:
viewPoint:
centerPosition: middle
# Add the address of the location using a datasource.
address: |
[email protected][1].street
& ',' & @ctx.datasources.address[1].city
& ',' & @ctx.datasources.address[1].country
# Adjust the zoomlevel to fit the location markers in the widget.
zoomLevel: 8
# Specify the markers using latitude & longitude co-ordinates.
markers:
data: [email protected]title: Location widgets
type: jig.grid
children:
- type: component.grid-item
options:
# Specify the size of the widget.
size: "4x2"
children:
# Choose a jig.component in the grid-item.
type: component.jig-widget
options:
# Provide the name of the jig where the widget is configured.
jigId: location-widgets
# Specify the widgetId = Widget Name.
widgetId: widgetMarkersdatasources:
# First datasource for the adress.
address:
type: datasource.static
options:
data:
- id: 1
street: Národní 135/14
city: 110 00 Praha
country: Praha
- id: 2
street: 768 5th Ave
city: New York
country: US
# Second datasource used for the markers
points:
type: datasource.static
options:
data:
- latitude: 40.759412
longitude: -73.912306
- latitude: 40.745368
longitude: -74.057189
- latitude: 40.803495
longitude: -73.950694 # Grid-item for the static jig.
children:
- type: component.grid-item
options:
size: "4x2"
children:
type: component.jig-widget
options:
jigId: multiple-markers
widgetId: widgetMarkerslocation widget displaying path (4x4)

This example demonstrates how to configure a widget within a default jig and display it on a jig.grid using a 4x4 layout. The widget focuses on showcasing paths based on provided points that use coordinates.
Examples: See the complete example using static data in GitHub.
widgets:
# Provide name for the widget that will be used as the widgetId.
widgetPath:
type: widget.location
options:
viewPoint:
centerPosition: middle
# Add the address using coordinates.
latitude: 40.759412
longitude: -73.912306
isAnimationEnabled: true
zoomLevel: 9
# Add icon markers for the addresses.
markers:
data: [email protected]
item:
type: component.marker-item
options:
anchorTo: bottom-center
latitude: [email protected]
longitude: [email protected]
children:
type: component.icon
options:
# Specify the icon to be used as the marker.
icon: end-marker
# Paths defined in a datasource in latitude and longitude.
paths:
data: [email protected] title: Location widgets
type: jig.grid
children:
- type: component.grid-item
options:
# Specify the size of the widget.
size: "4x4"
children:
# Choose a jig.component in the grid-item.
type: component.jig-widget
options:
# Provide the name of the jig where the widget is configured.
jigId: location-widgets
# Specify the widgetId = Widget Name.
widgetId: widgetPathdatasources:
points:
type: datasource.static
options:
data:
- latitude: 40.759412
longitude: -73.912306
- latitude: 40.745368
longitude: -74.057189
- latitude: 40.803495
longitude: -73.950694 # Grid-item for the static jig.
children:
- type: component.grid-item
options:
size: "4x4"
children:
type: component.jig-widget
options:
jigId: location-widget-path
widgetId: widgetPathlocation widget with longitude and latitude (2x4)\/col
This example demonstrates how to configure a widget within a default jig and display it on a jig.grid using a 2x4 layout with longitude and latitude coordinates. A component.title is configured to display the name and address of the location.

widgets:
# Provide name for the widget that will be used as the widgetId.
widgetLatitude:
type: widget.location
options:
# Configure a title to display on the widget with a left icon.
bottom:
type: component.titles
options:
title: Museum
subtitle: 131 W 55th St, New York
align: left
icon: pin
viewPoint:
centerPosition: middle
# Specify the address using latitude and longitude.
latitude: [email protected][2].latitude
longitude: [email protected][2].longitude
# Add endpoint marker icon for the address.
markers:
data: [email protected][2]
item:
type: component.marker-item
options:
latitude: [email protected]
longitude: [email protected]
children:
type: component.icon
options:
# Specify the color of the icon.
color: negative
# Specify the icon to be used as the marker.
icon: [email protected][2].icon title: Location widgets
type: jig.grid
children:
- type: component.grid-item
options:
# Specify the size of the widget.
size: "2x4"
children:
# Choose a jig.component in the grid-item.
type: component.jig-widget
options:
# Provide the name of the jig where the widget is configured.
jigId: location-widgets
# Specify the widgetId = Widget Name.
widgetId: widgetLatitudedatasources:
appointments:
type: datasource.static
options:
data:
- id: 1
name: Empire State Building
latitude: 40.748676182418976
longitude: -73.98567513213604
address: 20 W 34th St., New York, NY 10001, United States
icon: home
- id: 2
name: Great Lawn Softball Field 6
latitude: 40.782091612607864
longitude: -73.9655512166898
address: 86th St Transverse, New York, NY 10024, United States
icon: stadium-1-building
- id: 3
name: Museum
latitude: 40.7925
longitude: -73.9519
address: 131 W 55th St, New York
icon: end-marker # Grid-item for the jig.
children:
- type: component.grid-item
options:
size: "4x4"
children:
type: component.jig-widget
options:
jigId: location-lat-long_2x4
widgetId: widgetLatitudeLast updated
Was this helpful?