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
API Reference
<design:componentlabel="GM - Map Record"> <design:attributename="recordIdField"label="Record Id Field"description="Record Id Field"/> <design:attributename="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:attributename="longitudeField"label="Longitude Field"description="Longitude Field. Ex BillingLongitude"/> <design:attributename="view"label="Maps View"description="Default view. Available options are place|streetview"/> <design:attributename="enableSwitchView"label="Enable Switch View?"description="Enable switch view from Place to StreetView"/> <design:attributename="height"label="Maps Height"description="Maps Height. The width is automatically calculated"/> <design:attributename="customLabel"label="Custom Label"description="The label of card"/> <design:attributename="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>