function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Mahmood Syed 6Mahmood Syed 6 

Integrating Google Maps on Case Object

Hi There,

I am trying to integrate Google Map on the Case object to show list of Addresses within a radius related to that Case's Acccount/Contact billing/mailing address.

The trigger I have written gets the latitute and longitude for the account/contact address on the case object, however when I am trying to use Javascript remoting to build the string soql query and call the method in a visualforce page with the help of google map javascript api, it does not work. It simply does not load the map.

It works when I  build the same string soql query for account object. I cannot figure out why it does not work on Case object. If you need any more information please let me know. Thanks for your help!
PratikPratik (Salesforce Developers) 
Hi Mahmood,

Here is the example of integration Google map.

https://developer.salesforce.com/forums/ForumsMain?id=906F000000098oxIAA

Thanks,
Pratik 
Mahmood Syed 6Mahmood Syed 6
Hi Pratik,

I found number of articles which shows how to display stand alone google map on Account, but I am trying to display the map on Case object for an account or contact address.

As I said the trigger i have written gets the coordinates for the account/contact address on Case object, but my vf page which calls the remote function with a string soql query does not work and hence no map comes up on the screen.

Thanks
Mani RenusMani Renus
If you need to call controller method from VF for getting address of Contact for Account then follow the link it might be helpful or based on this you can convert as per your requirement

https://success.salesforce.com/answers?id=90630000000hfDaAAI

Hope it helps you