On Sep 1, 11:46 am, Voldemort <[EMAIL PROTECTED]> wrote: > Thanks Martin and Andrew.. openInfoWindowHtml works now .. :) > > Is it possible to assign a marker to the mouse cursor after clicking > the "Add Listing" link and that marker follows the cursor likes a > faithful dog .. something like > inhttp://koti.mbnet.fi/ojalesa/exam/editor_v2.html
Not easily, because when you click the link your mouse is outside the map. You would need to - in your click handler, set a variable indicating that a marker is to be added to the map - set up a "mouseover" handler on your map which checked that variable and if set, added the marker at the location passed to the handler (which is the mouse location) - set up a "mousemove" handler on your map which checked that variable and set the position of the marker - set up a "click" handler on the map which checked that variable and stopped moving the marker (unset the variable, so that the mousemove handler didn't do anything) Keeping track of exactly which marker is being added and moved could be awkward. Andrew --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
