On Jun 28, 11:54 pm, 3D-kreativ <[email protected]> wrote: > Hi! > > Well it's not working for me! Could you be so kind and show me an > example of how to hide them all (polylines)? The strange thing is that > it is possible to hide a polyline by clicking on a "hide" button, but > if I call this function in the script before I show a new polyline, it > seems like the script stop. If a user click more than one time a new > polyline is showing and suddenly there are two or more polylines on > the map, but it's seems like you can only hide tha last one? I would > really preciate example of how to do this? Thanks in advance!
Sure, when I get back to the computer that has that test page on it. I will admit that it is a brute force proof of concept and could certainly be implemented more efficiently than I did it there, but it works... -- Larry > > On 29 Juni, 01:03, "[email protected]" <[email protected]> > wrote: > > > > > 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- Hide quoted text - > > - Show quoted text - -- 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.
