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
Charlotte TWCharlotte TW 

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

Hi,

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,

Charlotte
shane1800shane1800
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">
<html>
<head>
    <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"
      type="text/javascript">
      /*
        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
        */ 
      </script>

</head>

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

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

var geo = new GClientGeocoder();

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

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

      }
    }
  );



function wheelevent(e)
{

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

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

function clearMarkers(){
    map.clearOverlays();
}

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 {
                map.setCenter(point,13);
                var marker = new GMarker(point);
                map.addOverlay(marker);
                GEvent.addListener(marker, "click", function() {
                                marker.openInfoWindowHtml("<b>"+name+"</b><br/>"+street+"<br/>"+city+", "+zip);
                });   
            }
        });
}
    //]]>



</script>
<div>
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" id="FlexSalesforce" width="100%" height="90%"
     codebase="https://fpdownload.macromedia.com/get/flashplayer/current/swflash.cab">
    <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"
        flashvars="session_id={!API.Session_ID}&server_url={!API.Partner_Server_URL_90}&BillingCode={!Account.BillingPostalCode}"   
         loop="false" allowScriptAccess="always"
         type="application/x-shockwave-flash"
         pluginspage="http://www.adobe.com/go/getflashplayer">
    </embed>
</object>
</div>
</body>
</html>
Chopair2009Chopair2009
For na6 you can use
ABQIAAAAaIgphcjEMUBNLJWc3CvFgxQwNgRt8BDbI5KFRawO0dUAA_H1zxRQd2kLTqh-SbfDQGlYyKQSNmCeKg

crcochrancrcochran
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.
BlankaBlanka

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

 

BlankaBlanka

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

Blanka

BlankaBlanka
Solution found! Thanks!
learnSFlearnSF

Hi,

 

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.

 

-Thanks,

PalstenPalsten

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

 

Thanks

BlankaBlanka

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.

Blanka

ImaghrooriImaghroori
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.
pierre_eymardpierre_eymard

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

 

http://sites.google.com/site/piworksproject/apex---visualforce