Believe me I'm aware that would be easier ;) Unfortunately I cannot do so, given the constraints of this project. So, two further questions: is it possible to trigger non-click events (I want map dragging, etc. to work for instance). Secondly: does the maps API have some sort of hit testing I can use to determine what element is under the mouse as you mention. For example, something like:
object = myMap.hitTest(x, y); google.maps.Event.trigger(object, "mousedown", ...); If not, is there an easy way to map whatever div is under the mouse to the associated object that should have the event triggered on it? Thanks, Francisco On Apr 27, 2:28 am, Andrew Leach <[email protected]> wrote: > On Apr 27, 5:58 am, Francisco Tolmasky <[email protected]> wrote: > > > I have a situation where there is a div on top of the map I am > > displaying, thus preventing any events from reaching said map. Is it > > possible to "forward" events to the map, either by creating synthetic > > browser events or using google.maps.Event.trigger perhaps? I've played > > a little with both with little luck. > > Yes, but it's not trivial. You would need to capture the event on your > div and then trigger a click on whatever is on your map underneath > that point. The hard part is determining which object you need to > trigger the click on. > > It would be far easier to redesign your page so you don't have to > click through something else to get to your map. > > -- > 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 > athttp://groups.google.com/group/google-maps-api?hl=en. -- 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.
