On Jun 29, 1:19 pm, 3D-kreativ <[email protected]> wrote:
> Thanks! Interesting code. I like the use of a switch. But I noticed
> that the zoom level only works the first time. If I change the
> zoonlevel on the map, and then show a polyline, it doesn't change back
> to the zoom level in the script.
> I'm going to analyze the script to see how it works. Thanks again!

You would have to add that to the function.  Currently your code only
sets the zoom level when you create the polylines.

That is what I meant by it could probably be done more efficiently
with a little thought and some design.  If you make an array of the
polylines rather than individual variables, you could probaly have a
single function that does it all with the number as its argument,
since one of your design goals is to show one at a time.

  -- Larry



>
> On 29 Juni, 16:22, "[email protected]" <[email protected]>
> wrote:
>
>
>
> > On Jun 29, 5:06 am, "[email protected]" <[email protected]>
> > wrote:
>
> > > 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...
>
> >http://www.geocodezip.com/fredagsmat_se_mapB.html
>
> >    -- 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-Hidequotedtext -
>
> > > > - Show quoted text -- Hide quoted text -
>
> > > - Show quoted text -- 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.

Reply via email to