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
Sai Shanmukh 15Sai Shanmukh 15 

Is it possible to display records of List view on Map using lightning?

SubratSubrat (Salesforce Developers) 
Hello Sai ,

I came across a discussion which might help you with your requirement -> https://developer.salesforce.com/docs/component-library/bundle/lightning-map/documentation

Hope this helps !
Thank you.
Arun Kumar 1141Arun Kumar 1141

Hello Sai,

It is feasible to use Salesforce's Lightning Experience to show records from a list view on a map. Utilizing the capabilities of Salesforce Maps Service and Lightning Web Components (LWC), you may accomplish this.

Here is a high-level breakdown of the procedures:

  1. Make a Lightning Web Component (LWC) to manage the integration with the Salesforce Maps Service and show the map
  2. To get the records from the list view that you wish to show on the map, use the Lightning Data Service (LDS) or Apex.
  3. Send the record data to the Lightning Web Component that was retrieved from the list view.
  4. Use the Salesforce Maps Service in the Lightning Web Component to display the records on the map. You can use Google Maps, Leaflet, or the Maps JavaScript API, among other mapping libraries.
  5. Configure the map markers or other graphic components to represent the records according to particular standards or fields.
  6. Implement any other functions or user interface elements you desire, such as allowing users to click on a map marker to view more information about the relevant record.

You may build a custom Lightning component that shows records from a list view on a map in Salesforce by following these instructions, using Lightning Web Components, and using the Salesforce Maps Service.

Mark it as best answer if this helps.

Thanks