mike,
do you think it would be possible to use something like this?
http://developer.mozilla.org/samples/domref/dispatchEvent.html
I played around with it, but I couldn't seem to get it to work on the
map, here's what I tried:
GEvent.addListener(map,"click",function(overlay,latlng,latlng2){
console.log(overlay);
console.log(latlng);
console.log(latlng2);
});
function simulateClick() {
var evt = document.createEvent("MouseEvents");
evt.initMouseEvent("click", true, true, window, 1, 10, 10, 10, 10,
false, false, false, false, 0, null);
var cb = document.getElementById("map");
var canceled = !cb.dispatchEvent(evt);
if(canceled) {
// A handler called preventDefault
alert("canceled");
} else {
// None of the handlers called preventDefault
alert("not canceled");
}
}
simulateClick();
On Oct 20, 9:33 pm, Mike Williams <[EMAIL PROTECTED]> wrote:
> Wasn't it Anthony who wrote:
>
> >My question is if custom
> >code is still needed or if there is some way to leverage the polygon
> >functionality already in the Google API.
>
> The API functionality is only useful when there's a real click or
> mouseover. If there's no actual click or mouseover, then you need custom
> code.
>
> --http://econym.org.uk/gmap
> The Blackpool Community Church Javascript Team
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---