Oh wait, I think I see it. Do you mean the following doesn't work in IE?

var icons = poly.get('icons');
poly.set('icons', null);
poly.set('icons', icons);  // Doesn't re-show the icons in IE.

Enoch

On Monday, November 5, 2012 1:35:37 AM UTC+11, Enoch Lau (Google Employee) 
wrote:
>
> 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)" 
>> <enoch...@google.com> 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/-/as8wrahh4ZsJ.
To post to this group, send email to google-maps-js-api-v3@googlegroups.com.
To unsubscribe from this group, send email to 
google-maps-js-api-v3+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-maps-js-api-v3?hl=en.

Reply via email to