Matt:

Please try modifying last snippet of your code to:

                                track.setMap(null);
                track = new google.maps.Polyline(trackopts);
                track.setMap(map);
        });
}

On Sep 15, 3:40 am, Matt Smith <[email protected]> wrote:
> Example page:http://xtaz.co.uk/tracks/105
>
> I have code which changes the colour of the polyline when the map type
> changes between map or satellite/hybrid. This has worked fine until
> recently. I've noticed that in the past month or so it's been unreliable. It
> usually works fine if you don't zoom the map or scroll around but if you
> play around with zoom or the position a few times and try it then it seems
> to change to one colour and then stick with that colour if you change it
> back again. The event is firing as I've tested that with some alert()'s. I
> guess redrawing the tiles is what isn't working properly. If I set the API
> version to 3.4 then it works fine, if I use the current version then it does
> this dodgy behaviour.
>
> I've also found that the marker background in IE8 isn't properly transparent
> and you get strange single pixel white lines through the polyline as if the
> tiles are not lining up, works fine in Firefox. Again setting the API to 3.4
> fixes this.

-- 
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