I am using ~200 or so Markers, each with different Icons that change on a very regular basis (up to every second or so). The icons very in color, style, and direction, and I am simply updating the "iconUrl" property in each Icon.
My problem is this: I see no way to force a redraw or refresh an icon for a Marker. The only way to update the icon of a Marker, from what I have seen, is to call Marker.setIcon(). This is what I currently do. It works. However, this is very non-performant and slow. Calls to setIcon() trigger calls to Marker._initIcon() and Marker.update(), which will remove the icon entirely, and then re-add the same icon again, re-initializing the entire icon each time.. In my context, this setIcon() call is becoming a weighty method when all I need to do is refresh the drawable state of my existing icon.
My question is; is there any way I can hack it so I can quickly change the iconUrl of my Icons, without having to completely remove/readd/update the Marker? This would increase my performance significantly.
Thanks,
Patrick