I solved this with scriblemaps help in a previous post

var ll:LatLng = new LatLng(map.fromViewportToLatLng(new Point(body.x,
body.y)).lat(),map.fromViewportToLatLng(new Point(body.x, body.y)).lng
(), true)

where body is the item being dragged.

SOLVED ! and a lot less overhead than calculating on each movement of
the mouse.

On Dec 22, 8:07 pm, "www.landed.at" <[email protected]> wrote:
> I have since seen that as I drag the event stops firing ! So I'm
> wondering how I can do this while dragging....
>
> On Dec 22, 8:01 pm, "www.landed.at" <[email protected]> wrote:
>
> > I am dropping an item into a map and would like the item to appear to
> > not move. At the point of the drop I hide the dropped item and add a
> > new marker, this new marker gets the following
>
> >                 private function mapmouselocation(e:MapMouseEvent):void
> >                 {
> >                         mouseLat = e.latLng.lat();
> >                         mouseLng = e.latLng.lng();
> >                 }
>
> > the trouble is its not close its like always 2 inches out or
> > something...
>
> > im using
>
> > map.addEventListener(MapMouseEvent.MOUSE_MOVE,mapmouselocation)
>
> > to provide the position , anyone ideas ? thanks

--

You received this message because you are subscribed to the Google Groups 
"Google Maps API For Flash" 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-for-flash?hl=en.


Reply via email to