I have simple WebSite with GoogleMaps. My GoogleMaps have mouseMove-event. All browsers everything is ok, except for IE. When I move the mouse cursor over the map - IE very much uses cpu. mouseMove-event very important for my WebSite, but because of IE it works very slowly. I google it and find same problem (Jun 26, 2006): gmap2 mousemove events using 100% cpu in IE. I tested it in IE6 and IE8. How I can use mouseMove and have normal speed?
I have very simple mouseMove:
// Script
GEvent.addListener(map, "mousemove", function(point) {
mousex = point.x;
mousey = point.y;
document.getElementById('LatLng').innerHTML =
'LatLng: ' + mousex + ', ' + mousey;
} );
// Body
<span id="LatLng">LatLng</span>