On Jun 28, 2:41 pm, 3D-kreativ <[email protected]> wrote: > Hi! > > I have made a map with three different walking path that I show as > polylines. I just want to show one polyline + one start and one goal > marker. Every time someone choose to show another walking path by > showing a another polyline the script must first check if there are > any other polylines and start and goal marker on the map and hide > them.
You could just hide them all, then show the new one. > > That is my problem, to know in some way if a polyline is set and how > to hide it. Aswell how to hide single markers on the map? I have > modified and shorten the walking path on the map just to make the code > as simple as posible. I vave also tried to make a function that hides > a polyline, but I closed that with // because it didn't work. I have a > "hide" button for each polyline, but this is only to show how I mean. > I only want buttons to show polylines. The hiding process I want in > the code. I hope you readers understand what I mean? Please have a > look at the site and the code. Hiding and showing markers is just like showing and hiding polylines (or at least can be). What problem are you having doing that? -- Larry > > Preciate some help! Thanks! > > http://fredagsmat.se/map.html -- You received this message because you are subscribed to the Google Groups "Google Maps JavaScript API v3" 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-js-api-v3?hl=en.
