I am looking to integrate Google Maps into Salesforce and need some guidance on how to achieve the following functionalities using an API key:
1. *Load the map with the current location as the default view*: When the map loads, it should automatically center on the user's current geographical location.
2. *Pin locations on the map with a mouse click*: Users should be able to click on the map to place a pin at the clicked location.
3. *Retrieve the latitude and longitude of the pinned location*: Once a pin is placed, I need to be able to extract and utilize the latitude and longitude coordinates of that location.
Could someone provide a step-by-step guide or point me to relevant resources for implementing this integration? Sample code snippets would be greatly appreciated!
note: this is not salesforce maps
Thank you for your help!
what API Script to be added.. can you share me an example.