GM - Map List
(gmpkg:mapListLWC)
Documentation
GM - Google Map List component enables users to conveniently map multiple records for any object (Standard or Custom). This component offers a unique blend of map view and list view, facilitating record filtering and action-taking capabilities.
Use case: Display list of Accounts on Google Maps and And filter Accounts by Billing Country. See GM - Google Map List .
Specification
Property | Type | Description |
---|---|---|
Map Provider | String | The map provider (google | osm). Currently we support Google and OpenStreetMap. |
Object Name* | String | The API Name of the related object to display. Don’t forget __c for custom objects. |
Custom Label | String | The title of the map. |
Filter | String | JSON string to define filter criteria. Don’t forget __c for custom fields. See example below: |
Street Field* | String | Street Field. EX BillingStreet |
City Field | String | City Field. EX BillingCity |
Postal Code Field | String | Postal Code Field. EX BillingPostalCode |
State Field | String | State Field. EX BillingState |
Country Field | String | Country Field. EX BillingCountry |
LatitudeField* | String | Latitude Field. Ex BillingLatitude. |
Longitude Field | String | Longitude Field. Ex BillingLongitude. |
Title Field | String | Title Field to build the popup when the user click on the marker. It's used also for the item list. EX Name |
Detail Fields* | String | ',' Separated list of fields to build the record details when the user expand the item.EX Type,BillingCity,Website |
Search Fields | String | ',' separated search fields. With this option enabled, the user will be able to search for specific records. |
Enable Filtering | Boolean | Check this option if you enable Quick/Advanced filtering. |
Marker Icon | String | Map Marker Icon. All utility lightning icons are supported. The list of icons is available under https://lightningdesignsystem.com/icons/ |
List Icon | String | The list item icon. All lightning icons are supported. The list of icons is available under https://lightningdesignsystem.com/icons/ |
Show Border | Boolean | Check this option to add a border to the card. |
Height | Integer | The height of the map. Set the height to 9999 for a responsive height. |
Marker Coloring | String | JSON conditions for marker coloring. You can define a list of coloring and the corresponding conditions. See GM - RelatedList Grid cell coloring fields property for more details. |
Search Around | String | JSON Search Around configuration. See Search Around Setup. |
Actions | String | JSON string to initialize the list of available mass actions. |
Record Actions | String | Json string to initialize the list of available record actions. |
The GM - Google Map List component requires either a street set of fields (Street, City, Postal Code, State, Country) or a geolocation (Latitude, Longitude) to map an given object.
If the map provider is OSM only geolocations (Latitude, Longitude) is supported.
API Reference
Last updated