I currently have a visualforce component in the account details page. In that component is an apex map component which has markers on it for accounts close to the current one of the details page you are currently on. To the left of the map is a list of all the accounts shown on the map. I was wondering if there is anyway that, when I press on the name of an account(to the left of the map, these are outputlinks), I could pan the map to show that account's marker. I have looked at the map class page on salesforce's website and several other places, but have not found any methods that do this. Perhaps y'all know something I do not.
In case my description was lacking here is what the component looks like(obviously with sample info).
EDIT
Le Code
The table that I'm using:
<apex:pageBlockTable ...>
<apex:column ...>
<apex:column ...>
<apex:column >
<apex:commandLink action="{!setMapCenter}" onclick="setCenter()">
<apex:param name="compAcc" value="{!comp.ShippingStreet},{!comp.ShippingCity},{!comp.ShippingState}" assignTo="{!compAddress}"/>Show on map
</apex:commandLink>
</apex:column>
</apex:pageBlockTable>
The action function:
<apex:actionFunction name="setCenter">
<apex:variable value="{!center}" var="centerVar"/>
<apex:outputText value="{!center}" />
</apex:actionFunction>
</apex:form>
And then in my controller I have:
public PageReference setMapCenter()
{
center = compAddress;
return null;
}
That should be all the relevant code.