I can't reproduce the problem with poly.set('icons', null) - it causes the
symbol to disappear in IE for me... would you be able to provide a link to
a demo that shows it not working please? (Also, which browser version/OS?)
Enoch
On Sunday, November 4, 2012 5:29:02 PM UTC+11, Pil wrote:
>
> Thanks Enoch.
>
> Hmm, there may be a problem arising with this if I understand you
> right.
> When I do this
>
> To show:
>
> var icons = poly.get('icons');
> icons[0].offset = somepercent +'%';
> poly.set('icons', icons);
>
> To hide:
>
> var icons = poly.get('icons');
> icons[0].offset = '101%';
> poly.set('icons', icons);
>
> This is working pefectly in all browsers. But when I do this
>
> To show:
>
> poly.setOptions({ icons: [{ icon: mysymbol, offset: somepercent
> +'%' }] });
>
> To hide:
>
> poly.set('icons', null);
>
> This is only working in 'normal' browsers. (You know which browser I
> mean with 'abnormal').
> What exactly do mean with "an array of symbols"?
>
>
>
> On Nov 4, 12:50 am, "Enoch Lau (Google Employee)"
> <[email protected]> wrote:
> > To hide the symbols on a polyline, set the 'icons' property to null; to
> > reshow, set the 'icons' property to an array of symbols again.
> >
> > If the offset is 101%, then symbol is off the end of the polyline, which
> is
> > why it disappears.
> >
> >
> >
> >
> >
> >
> >
> > On Sunday, November 4, 2012 6:20:13 AM UTC+11, Pil wrote:
> >
> > > The new SVG symbols are really cool. I'm trying to replace all markers
> > > with these symbols. So I'm looking for a possibility to determine the
> > > paths.
> >
> > > Another question: Have you forgotten to make it possible to hide and
> > > unhide the symbols - for example on a polyline? Just found out that
> > > setting the offset property to 101% makes it to disappear. But that
> > > seems not very elegant.
>
--
You received this message because you are subscribed to the Google Groups
"Google Maps JavaScript API v3" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/google-maps-js-api-v3/-/Qexu3NoiTtMJ.
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.