1. What is this? onMouseover="Show Poly Route 1" onMouseout="Hide Poly Route 1"
Your script crashes there. 2. GPolyline has a .isHidden() method. http://code.google.com/apis/maps/documentation/reference.html#GPolyline.isHidden You don't need to add your own .hidden property. -- Marcelo - http://maps.forum.nu -- On Dec 8, 12:51 pm, Mircea <[email protected]> wrote: > Hi, > I want to create a show/hide polyline for a map with multiple routes. > I think that polyline.show(); and polyline.hide(); should do it but I > can not get it to work. > > The map is based onhttp://www.geocodezip.com/multiple_routesB.asp > > The map I am working on is at:http://www.amsterdamsat.com/Test/hide_show.html > > I want to do a mouseover show/hide on a link for each route. I got a > toggle polymap function that I do not know how to integrate: > > function toggleRoute() { > var polyline = directions.getPolyline(); > if (polyline.hidden) { > polyline.show(); > polyline.hidden = false; > } else { > polyline.hide(); > polyline.hidden = true; > } > } > > Thank you, > Mircea -- 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.
