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
Jansi AJansi A 

Selecting a certain region in a Map(with radius or bounds) in LWB

We have a requirement, where user needs to select a certain area/region with a 'radius' or 'bounds' in a map than a single point selection. We are looking for this solution specifically on Lighting Web Component. Please share the solutions/ideas if anyone is come across like this or similar to this in your implementations. Thank you in advance.

Example could be like this.
User-added imageUser-added image

Regards
Jansi
AbhinavAbhinav (Salesforce Developers) 
HI Jansi,

This seems  a very complex requirement : 

Have you check lwc map documentation ? we have a attribute 

selected-marker-value.   Provides the value of the currently selected marker. Returns undefined if you don’t pass value to map-markers.

I would suggest check this documetation in detail:

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

Thanks!
Jansi AJansi A
Hi Abhinav,

Thank you for your reply.

Yes, we have checked lwc map documemntation, it is more about how we can 'add markers' or 'add radius'  or 'add bounds' in a map etc. We have not seen the documetation like how to allow the user to select a certain region in the map, this is what we are looking for.