On Mar 3, 7:44 am, Olha Buchel <[email protected]> wrote: > There is another problem with the script now. > When I click on the labels in the sidebar, the map opens the same marker for > all labels. > And the yellow background sticks to the second label in the sidebar, it does > not move.
All your sidebar entries call myclick(0), therefore they all open the infowindow associated with gmarkers[0]. The "i" variable is always zero, that is what you initialize it to and you return from the createMarker function before incrementing it. -- Larry > > > > On Thu, Mar 3, 2011 at 9:38 AM, Olha Buchel <[email protected]> wrote: > > I just fixed the mistake with the labels. But now I have a problem with the > > overlay. > > It looks like it is attached to one marker only. > > > Olha > > > On Thu, Mar 3, 2011 at 9:32 AM, Olha Buchel <[email protected]> wrote: > > >> Thank you, yes, I had a mistake there. > >> I corrected it, the script got better, but it still does not show labels > >> in the sidebar. > > >> Olha > > >> On Thu, Mar 3, 2011 at 9:21 AM, Rossko <[email protected]>wrote: > > >>> >http://abuchel.apmaths.uwo.ca/%7Eobuchel/maps/iframes_example/example. > >>> .. > > >>> My browser tells me about a javascript error, "parent.frame2 is not an > >>> object" in > >>> parent.frame2.sideBar(side_bar_html); > >>> and it is correct. Are you supposed to be doing some sort of value > >>> assigning here? > > >>> -- > >>> You received this message because you are subscribed to the Google Groups > >>> "Google Maps API V2" 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.- Hide quoted text - > > - Show quoted text - -- You received this message because you are subscribed to the Google Groups "Google Maps API V2" 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.
