You need to sign in to do that
Don't have an account?
Rony57
Google Map on Custom detail page
I want to user the google map on my detail page layout. how can we use this like my section is Location having street address and City How can we use this on the custom object.
- Use Visual Force to add a live, interactive Google Map with zoom controls and maptype select buttons to Salesforce Accounts and Leads and other detail record pages:
Go to Your Name » Setup » Develop » Pages
Copy/paste the following code into a new Page replacing what appears by default. Notice that in this example we're using custom fields for the Account address components:
+1 to SolidLucas
The above code works simply superb.
If its not working for you change these two lines
<script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false"></script>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
To :
<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>
It will work like a charm.
Thanks
Anil.B