function readOnly(count){ }
Don't have an account?
Search for an answer or ask a question of the zone or Customer Support.
You need to sign in to do that
Sign in to start searching questions
Signup for a Developer Edition
Sign in to start a discussion
<apex:page standardController="Account"> <script src="http://maps.google.com/maps?file=api"> </script> <script type="text/javascript"> var map = null; var geocoder = null; var address = "{!Account.BillingStreet}, {!Account.BillingPostalCode} {!Account.BillingCity}, {!Account.BillingState}, {!Account.BillingCountry}"; function initialize() { if(GBrowserIsCompatible()) { map = new GMap2(document.getElementById("MyMap")); map.addControl(new GMapTypeControl()); map.addControl(new GLargeMapControl3D()); geocoder = new GClientGeocoder(); geocoder.getLatLng( address, function(point) { if (!point) { document.getElementById("MyMap").innerHTML = address + " not found"; } else { map.setCenter(point, 13); var marker = new GMarker(point); map.addOverlay(marker); marker.bindInfoWindowHtml("Account Name : <b><i> {!Account.Name} </i></b> Address : "+address); } } ); } } </script> <div id="MyMap" style="width:100%;height:300px"></div> <script> initialize() ; </script> </apex:page>