You could use the 'mouseup' event on the map object
GEvent.addListener(map,'mouseup',function(latlon){
alert('Object dropped at ' + latlon.toUrlValue())
})
--
Marcelo - http://maps.forum.nu
--
On Oct 24, 11:00 am, scottd <[EMAIL PROTECTED]> wrote:
> Sorry this is an odd one probably, not sure.
>
> I am about to start building a site which I guess is similar to a lot
> of the draggable markers examples you see like this
> (http://www.mapmyrun.com/create_new) where you can select a custom marker and
> place it on the map, but I don't want to do the usual where you first
> click on a marker and then click on the map and that marker appears...
> I want the user to be able to pick up an icon from somewhere on the
> page and be able to drag that icon onto the map and then position it
> and interact with an info window.
>
> I am just playing around with a mock up at the mo which is here
> (http://dev.profero.com.au/map/) but I am not sure I am heading down
> the right track and are seeking some advice.
>
> I have started to use Custom Controls for the initial icons that the
> user drags onto the map because I am able to position these via the
> dom rather than coords... if I could use markers then that would be
> easier I think but am I right in that you can only position them using
> coords?
>
> So what I have mocked up is 2 custom controls that you can pick up and
> drag onto the map. What I am then wanting to do is get the coord of
> the drop point and reset the controls and then add a custom draggable
> marker to that point...
>
> I am having trouble getting the coords of the draggable object once
> dropped.. is this even possible using a control or do I really need to
> try and use markers for the initial selection?
>
> scott.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---