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
marker = new google.maps.Marker({
map:map,
draggable:true,
animation: google.maps.Animation.DROP,
position: parliament
});
##<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