Skip to content

Simple Code to have Google Map V3 API display accounts information on Visualforce

Notifications You must be signed in to change notification settings

mailtoharshit/GoogleMapV3

Repository files navigation

GoogleMapV3

Simple Code to have Google Map V3 API display accounts information on Visualforce

 Read full blog post here at : http://www.oyecode.com/2015/01/how-to-add-google-map-in-salesforce.html

ScreenShot

Script for Pin-Drop Animation :

   marker = new google.maps.Marker({
   map:map,
   draggable:true,
   animation: google.maps.Animation.DROP,
   position: parliament
   }); 

Adding Circular Zone for Salesforce Accounts:

ScreenShot

##<b>Pull Salesforce Accounts with Properties : </b><br/>
public with sharing class GoogleMapsControllers {
public static Integer getTexasAccounts(){ return [select id from Account where Account.BillingState='TX'].size();}
public Integer getCaliforniatAccounts() { return [select id from Account where Account.BillingState='TX'].size();}
public Integer getNewyorktAccounts() { return [select id from Account where Account.BillingState='NY'].size();}
} 

Fork Repository and Clone Code to check full code

About

Simple Code to have Google Map V3 API display accounts information on Visualforce

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages