Archives

Apex Code: Visualforce Google Maps Address mapping

Below is the code to display Google map of the Billing Address of an Account. Add the Visualforce page to your page layout. <apex:page standardController=”Account”> <head> <script type=”text/javascript” src=”https://maps.google.com/maps/api/js?sensor=false”></script&gt; <script type=”text/javascript” src=”https://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js”></script&gt; <script type=”text/javascript $(document).ready(function() { var myOptions = { zoom: 15, mapTypeId: google.maps.MapTypeId.ROADMAP, mapTypeControl: false } var map; var marker; var geocoder = new […]

Rate this:

Read More