On Feb 9, 10:12 pm, jey jey <[email protected]> wrote:
> Hi
>
> I have a map and it iss loading contents from an xml file. I am
> displaying the markers on the map based on one particular order. I
> need to to show the next infobox window from the previously opened
> infobox window based on the order.
Totally untested.
Put this in the code for your infoWindow (beware the quotes, match
them with the ones you are using):
html += '<a href="javascript: showNext('+i+');">Next</a>'
Put this function in the global scope:
function showNext(i) {
i++;
if (i >= gmarkers.length) { i = 0 }
GEvent.trigger(gmarkers[i], "click");
}
-- Larry
>
> Any help appreciated !!
>
> Thanks
>
> jobanhttp://phpqa.blogspot.com
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Maps API" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/Google-Maps-API?hl=en
-~----------~----~----~----~------~----~------~--~---