Hi Paul,
Under v2.x it was possible with something as simple as this:
GEvent.addListener(map,'mousemove',function(latlng)
{ var myLat = latlng.lat();
var myLon = latlng.lng();
var myLoc = RoundTo(myLat,5) + ", " + RoundTo(myLon,5);
parent.data.form.elements[1].value = myLoc;} );
Now I can't figure out a simple way to do it in v3. Using the Canvas
approach is far more complicated that I need the application to be.
-Steve
> This has been recently discussed in this thread:
http://groups.google.com/group/google-maps-js-api-v3/browse_thread/th....
> There are also feature requests for this and related features
> referenced in that thread that you can star.
>
> Paul (
http://notebook.kulchenko.com/maps/)
>
> On Oct 15, 1:10 pm, shsavage <
shsav...@asu.edu> wrote:
>
>
>
> > Hi,
>
> > In the older versions of GM, there was a mousemove event on the map
> > itself that could be listened for in order to report the mouse
> > location. I don't see that event in the v 3.0 documentation. A
> > mousemove event seems only to be attached to polylines and polygons.
> > Is there another way to fetch the coordinates as the mouse moves over
> > the map?
>
> > Thanks,
>
> > -Steve- Hide quoted text -
>
> - Show quoted text -