I haven't found any control for selecting an area on a map that I liked, so I decided to write my own. It works fine, but in IE it's painfully slow at updating the selection box. I'm using the rectangle object in Google Maps API v3 to display the selection area on the map, redrawing it on every mousemove event.
I have found a similar implementation using v2 of the API which is working perfectly. Is there a major decrease in performance between v2 and v3, or is it just too expensive to redraw the rectangle on each mousemove event? If my control is doomed to be slow, is there a way of implementing the same functionality in another way? I have also tried using a timer to only catch some mousemove events, but with no luck.
I'm not (primarily) asking for a link to a working v3 control that doesn't lag like mine, I'm more interested in what I can do to optimize my own code (or if it's a dead end).
An example of my control can be found here: [edit: not available anymore]
Javascript code here: http://pastie.org/private/6xlg4kqh9hvqqyntbc8bfw
Thanks.