+ 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

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:


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.