On Apr 24, 11:52 am, wiryono <[email protected]> wrote:
> Is it possible to make the marker stay in "drag" mode. i mean keep the
> marker floating ( with the crosshair below the marker ) while not
> holding the mouse left click.

I haven't tried it myself, but you can probably do it by operating the
mouse programatically with document.createEvent:
https://developer.mozilla.org/en/DOM/document.createEvent

Note that the syntax may be different for IE.

GEvent trigger will only call the event handler function, but it will
not perform the action that would normally trigger the event.

Here is a map that uses document.createEvent to force you to release
the polygon that you're dragging when you get close enough to its
proper position
http://maps.forum.nu/gm_place_that_state.html

With Firefox, try dragging a state *almost* to its correct location,
and notice how the application takes it away from the mouse when you
are close enough.

--
Marcelo - http://maps.forum.nu
--

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to