GM - Google Map Record

(gmpkg:MapComponent)

Documentation

GM - Google Map component is used to display Google map view of location. The component can be configured to map the current object or any related object. The location could be on a standard or a custom object.

Use case: Display a property on Google Maps for a real estate company.

Specification

PropertyTypeDescription

Record Id Field *

String

The name of the lookup field to maps.

Set this property to recordId to use the current recordId.

Place Fields *

String

',' Separated list of fields to build the address. Ex BillingStreet,BillingCity,BillingState. This property is useful for place view only.

Latitude Field *

String

Latitude Field. Ex BillingLatitude. This property is useful for street view only.

Longitude Field *

String

Longitude Field. Ex BillingLongitude. This property is useful for street view only.

Maps View

String

Maps default view place | streetview. The user can still switch to a different view if Enable Switch View is checked.

Enable Switch View

Boolean

Check this option to allow the user to switch between place and street view.

Maps Height

Integer

The height of the map.

Custom Label

String

The title of the map.

Custom Icon

String

The card 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.

API Reference

<design:component label="GM - Google Map Record">
    <design:attribute name="recordIdField" label="Record Id Field" 
            description="Record Id Field"/> 
    <design:attribute name="placeField" label="Place Fields" 
            description="',' Separated list of fields to build the address. Ex BillingStreet,BillingCity,BillingState"/> 
    <design:attribute name="latitudeField" label="Latitude Field" 
            description="Latitude Field. Ex BillingLatitude"/> 
    <design:attribute name="longitudeField" label="Longitude Field" 
            description="Longitude Field. Ex BillingLongitude"/> 
    <design:attribute name="view" label="Maps View" 
            description="Default view. Available options are place|streetview"/> 
    <design:attribute name="enableSwitchView" label="Enable Switch View?" 
            description="Enable switch view from Place to StreetView"/>             
    <design:attribute name="height" label="Maps Height" 
            description="Maps Height. The width is automatically calculated"/> 
    <design:attribute name="customLabel" label="Custom Label" 
            description="The label of card"/> 
    <design:attribute name="customIcon" label="Custom Icon" 
            description="Customize the map icon. All lightning icons are supported. You can get the icon name from https://lightningdesignsystem.com/icons/"/> 
    <design:attribute name="showBorder" label="Show Border" 
            description="Show Border"/>
</design:component>

Last updated