On Jan 12, 4:17 pm, xelawho <[email protected]> wrote: > > Looks to me like when you call togglePoly from the check box you only > > give it the id. > > quite likely. But > side_bar_html += '<input type="checkbox" id="poly'+id+'" > onclick="togglePoly('+id+',point,html);">' + " " + label + '<br />'; > > doesn't work at all... Or is that not what you meant?
The point is that the togglePoly function displays the html argument in the infowindow that it opens. So it is doing exactly what you are telling it to do (opening an empty infowindow). I would suggest firing a "click" event on the polyline (by calling myclick instead of toggle poly) when that box is clicked, then if clicking on the polyline displays the correct content, it will show the same content. It looks like your click handler is already coded to handle the case of being "triggered" rather than getting a real click. -- Larry -- 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.
