function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Tom DawsonTom Dawson 

lightning:map with force record data

Hi,

We are trying to use the lightning:map component in the context of a case. For example, a member of our community can currently drop a pin on a map when reporting something, but we would like to display the location of that report on a case/record detail page that can be viewed after the customer has submitted their report. 

We are trying to use the force record data function to pull in the information about the case, but when we do the map does not display. 

Is anyone able to help us get this working?

Thanks,

Tom 
Deepali KulshresthaDeepali Kulshrestha
Hi Tom,

Please refer to the following link as it may be helpful in solving your query:

https://developer.salesforce.com/docs/component-library/bundle/lightning:map/documentation

I hope you find the above solution helpful. If it does, please mark as Best Answer to help others too.

Thanks and Regards,
Deepali Kulshrestha