Add Embedded Google Maps on Leads, Accounts, and Contacts

ChadSmithSalesforce Tips, Visualforce

Here’s how we can get a very nice looking Google map tied to the current Lead, Account, or Contact that you are currently viewing.   First create a new Visualforce page (Setup > Develop > Page) for each of the types, here is the code for each: Leads: [html] <apex:page standardController="Lead"> <apex:pageBlock > <head> <script type="text/javascript" src="https://maps.google.com/maps/api/js?sensor=false"></script> <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script> … Read More