I tried these functions:
function setKeys() { var event = {srcElement: mapContainer, target:
mapContainer, nodeType: 1}; google.maps.event.trigger(document, "click",
event); }function noKeys() { var event = {srcElement: body, target: body,
nodeType: 1}; google.maps.event.trigger(document, "click", event); }
There is a surprisingly small amount of information on the web about v3
implementation of your code.
I was able to use the trigger to activate the click event of a marker but not
the map in general. Maybe the syntax is different in v3.
Would the v3 implementation use the same syntax?
--
You received this message because you are subscribed to the Google Groups
"Google Maps JavaScript API v3" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/google-maps-js-api-v3/-/vxJfVVQBUVIJ.
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-js-api-v3?hl=en.