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
FilikinFilikin 

nested repeat in apex:map

Hi,
I am trying to use a nested repeat in an apex:map, but as soon as I try I get an error "<apex:repeat> cannot be used inside <apex:map> in the markup.

Here is the page:
<apex:page Controller="TestMapController" >
    <apex:map id="visitsMap" width="100%" height="800px" mapType="roadmap" center="Dublin, Ireland">  
         <apex:repeat value="{!Addresses}" var="address">
            <apex:repeat value="{!Addresses}" var="subaddress">
                <apex:mapMarker title="{!address}" position="{!address}">
                </apex:mapMarker>
             </apex:repeat>
       </apex:repeat>
    </apex:map>
</apex:page>

and the controller is:
public class TestMapController
{
    public String[] getAddresses()
    {
        return new String[]{'120 Drumcondra Road, Dublin 9','3 Corbawn Court, Dublin 18','35 Cremore Cresent, Dublin 11'};
    }
}

can anyone see what I am doing wrong?
Best Answer chosen by Filikin
ShashankShashank (Salesforce Developers) 
You may find this helpful: https://developer.salesforce.com/forums/?id=906F0000000BRFCIA4

All Answers

ShashankShashank (Salesforce Developers) 
You may find this helpful: https://developer.salesforce.com/forums/?id=906F0000000BRFCIA4
This was selected as the best answer
FilikinFilikin
Yes, thanks, I was going to bring it to Dreamforce.
It is a pity the error message to so obtuse.