I would say, pass the mouse move event to the map manually. Or perhaps
capture the mousemove on polygons and refer to the same function to update
your position, that seems cleaner in my opinion.
GEvent.addListener(oPolyline, 'mousemove', function(a,b,c){
updateLocation(a,b,c); });
2009/9/6 sTeamTraen <[email protected]>
>
> Please excuse me not making a test site available right away - my app
> is fairly mature and the code is buried inside a site which requires
> logon. If someone can reassure me that this is not a FAQ then I will
> try to build a simple demo.
>
> Browser is Firefox 3.0.13 on Windows XP, gMap version is '2' (not 2.x
> or 2.s).
>
> My application tracks the latitude and longitude of the cursor
> position as the mouse moves around the screen, displaying the lat/long
> values just below the map, using a 'mousemove' event.
>
> I have noticed that when I move the pointer into a polygon overlay,
> the tracking stops (and investigation shows that the 'mousemove'
> handler is not being called). The polygon has three events registered
> to it: 'click', 'mouseover', and 'mouseout'. Removing all three of
> these events causes the map to resume receiving 'mousemove' events;
> putting any one of them back prevents these events from getting
> through.
>
> Can I do anything about this, or should I consider preparing a bug
> report?
>
> Thanks
> Nick
>
> >
>
--
Bjorn Brala
----------------
www.GeoStart.nl/english/ - Google maps - Swis Webdesign
www.twitter.com/bbrala
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Maps API" 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-api?hl=en
-~----------~----~----~----~------~----~------~--~---