Many Many Thanks On Thu, May 28, 2009 at 10:48 PM, RndPig <[email protected]> wrote:
> > Larry, > > Thanks so much for the reply; I took your suggestion and changed my > code to get rid of the overused 'i' variable and everything works > great. This is one of the fundamental coding rules that I obviously > failed to learn! > > Ryan > > On May 28, 10:42 am, "[email protected]" <[email protected]> > wrote: > > On May 28, 8:19 am, RndPig <[email protected]> wrote: > > > > > > > > > > > > > Hello, I previously implemented (successfully) a Google map, but it > > > has stopped working since I've transitioned to a Joomla site. The > > > problem is that the 'id' variable I had been using as a unique > > > identifier for each record is also used as a variable for the Joomla > > > site. Thus, the same map point is invoked each time the map is > > > displayed because 'id=11' is part of the web address for the map page. > > > Because of this oversight on my part, I thought I could just change > > > 'id' to 'mapid' throughout the pertinent API code, but the system is > > > still not working properly. > > > > > Here is a link to the membership directory from which the map markers > > > can be invoked: > > > > >http://www.indianasheep.com/index.php?option=com_content&view=article. > .. > > > > > (you'll notice the address contains 'id=10' as a variable for the web > > > address) > > > > > Next to each member record is a yellow button that links to the map > > > page. Embedded in that link is the 'mapid' variable that I want to use > > > to invoke a bubble on the map for that specific member. > > > > > Here is a link to the map: > > > > >http://www.indianasheep.com/index.php?option=com_content&view=article. > .. > > > > > Everything else on the map is working properly, including the ability > > > to show only those map points which correspond to the specific > > > categories shown to the right of the map. > > > > > If anyone has advice as to the (likely small) error that I'm making in > > > my code, I would greatly appreciate it. > > > > You have multiple "i" variables. The one that your createMarker > > function is using to start with is local to the load() function and > > set to 5 to start with (at least in IE),so all the memebers of the > > idmarkers array are offset by 5 from where you are expecting. > > > > -- Larry > > > > > > > > > > > > > I have always been impressed with this community and how willing > > > everyone is to provide assistance. Thanks in advance! > > > > > Ryan- Hide quoted text - > > > > - Show quoted text -- Hide quoted text - > > > > - Show quoted text - > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
