+ Start a Discussion
Charlotte TWCharlotte TW 

Map Nearby Accounts 1.1 - activation issue - HELP!!!


HELP!!!!!!!!!!!!!!!!  Very novice technology user just about to throw laptop out the window:-)

Have downloaded and installed the above App (it is listed in my 'Packages Installed from the App Exchange' list), but no 'Map Nearby Accounts' button is showing up on the Accounts Page.  Any ideas what I need to do?

Thank you,

I also have the same problem, key error.

I went in the scontrol code options and did copy and past the na6 server key into the right spot, that is the server I am on but still receive the error. Any advice?

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
    <script type="text/javascript" src="/js/functions.js"></script>
    <script src="/soap/ajax/10.0/connection.js"></script>
    <script src="http://maps.google.com/maps?file=api&amp;v=2&amp;key=ABQIAAAAn-_wL1b8pbIpJfus80000000DWi1GdZI-P7ekoe_gyhfzl1yZhQIi8Cp4aV-qJ1UGOrfYuaqMQ64Dw"
        KEY FOR na1 = ABQIAAAAn-_wL1b8pbIpJfus80000000DWi2JvtWvmgvEdrgGXs5szHHahSo3uqS80000000525hpNVXvjCUJQ
        KEY FOR na2= ABQIAAAAn-_wL1b8pbIpJfus80000000DWi3xWLg1N8Ce02Xd800000009LEH4RfeXqfJttrBEVklwfOQn2xNA
        KEY FOR na3= ABQIAAAAn-_wL1b8pbIpJfus80000000DWi4k7K_jsQk84g_OzUaojTBGhSetwHN8w7iaZgkWincYpb3inlM5w
        KEY FOR na4=ABQIAAAAn-_wL1b8pbIpJfus80000000DWi5nYooAkiOINMA2L3CdHnjwRTDGIUZZctCpWuTgsmBTVfM2m-zGw
        KEY FOR na5= ABQIAAAAn-_wL1b8pbIpJfus80000000DWi1GdZI-P7ekoe_gyhfzl1yZhQIi8Cp4aV-qJ1UGOrfYuaqMQ64Dw
        KEY FOR na6= ABQIAAAAn-_wL1b8pbIpJfus80000000DWi68BDbI5KFRawO0dUAA_H1zxT4GgBIrvvw23OpfYYkx0d11SMXPw


 <body onunload="GUnload()" onload="window.resizeTo(450,700)" >
    <div id="map" style="width: 400px; height: 300px"></div>
    <script type="text/javascript">
    document.bgColor = '#f3f3ec';
    var map = new GMap(document.getElementById("map"));

   map.addControl(new GSmallZoomControl());
    map.addControl(new GMapTypeControl());

var geo = new GClientGeocoder();

var street= "{!Account.BillingStreet} ";
var city = "{!Account.BillingCity}";
var zip= "{!Account.BillingPostalCode}";
    street+" "+city,
    function(point) {
      if (!point) {
        alert(street+" "+city + " " +zip+ " not found");
      } else {
        var marker = new GMarker(point);

        GEvent.addListener(marker, "click", function() {
          marker.openInfoWindowHtml(street+" " +city +" " + zip);


function wheelevent(e)

    if (!e){
        e = window.event
    if (e.preventDefault){
    e.returnValue = false;

GEvent.addDomListener(map.getContainer(), "DOMMouseScroll", wheelevent);
map.getContainer().onmousewheel = wheelevent;

function clearMarkers(){

function addMarker(street, city, zip,type,name){
    var geoTwo = new GClientGeocoder();
    geoTwo.getLatLng(street+" "+city,
        function(point) {
              if (!point) {
            alert(street+" "+city + " " +zip+ " not found");
              else {
                var marker = new GMarker(point);
                GEvent.addListener(marker, "click", function() {
                                marker.openInfoWindowHtml("<b>"+name+"</b><br/>"+street+"<br/>"+city+", "+zip);

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" id="FlexSalesforce" width="100%" height="90%"
    <param name="movie" value="{!Scontrol.JavaArchive}" />
    <param name="quality" value="high" /><param name="play" value="true" />
    <param name="bgcolor" value="#f3f3ec" /><param name="allowScriptAccess" value="always"/>
        <param name="wmode" value="transparent" />
        <param name="flashvars"          value="session_id={!API.Session_ID}&server_url={!API.Partner_Server_URL_90}&BillingCode={!Account.BillingPostalCode}" />
    <embed src="{!Scontrol.JavaArchive}"  play="true"  bgcolor="#f3f3ec" width="100%" height="700" 
        name="FlexSalesforce" align="middle"
         loop="false" allowScriptAccess="always"
For na6 you can use

Has anyone been able to get this to work with a fully qualified zip code (5+4)?  I have found that my accounts that only have 5 digit zips work great, but if you have the full US Postal Service zip, the 5 + 4 format, they don't display on the map.

Ok , I know this sounds stupid but where do you go to find the server key?

I am on server na 2, but cannot find the long string of characters.


I am trying to get the Map Nearby Accounts button on the account detail page.


Any advice is more than appreciated.


Thank you



OK - I have the key and copied it where it should be but still no button showing up in my org. It actually displays the map and the nearby accounts, but I woudl like to have a button instead...My account detail page without a Map nearby Accounts button is getting pretty long. Those of you that made this one work have to done anything specific to it?


Also, I am still getting the google error message that the key used was already registered for a different web site.....The server that I am on is na2 and the google key I have received was: ABQIAAAAYy1o4vLuQDjuoOBDU42RkhQGj_Ywn8a8xXg80TPzUWLwn-py4hT0oXEBtZep2brXa6EbypmD6K0GVg


Does anybody have something else that I could try?


Any advice is more than appreciated.


Thank you


Solution found! Thanks!



I would just wondering that does this Na2 server key will be avaible for free?


I just tried to use it and works well for me but just afraid to use key without license...


Does it will be free for Na2.salesforce.com domian...And no need to get the valid?


I know that so many company have same domain name and key will be smae for many compnay who uses for na2.salesforce.com.


My question is does it free?


It would be great if someone from salesforce can reply as they own this domian.




Any ideas what the NA 1 key is. I also need to know where to paste it to.




You need to generate a maps key first by going to : http://code.google.com/apis/maps/signup.html


Then once you have the key given by google maps, then you have to go to Custom S-Control Detail ( FLEX: Map Nearby Accounts) and paste that NA1 key just right next to where it says: KEY FOR na1 =



Hope this helps.


If you are still using this version, please consider going to the new Find Nearby Accounts on the AppExchange.  It's completely native (Visual Force / Apex) and is much more robust than the 1.1 version mentioned here.

Or contact me to get my own version of the Nearby Accounts customization.