to be more specific i noticed that there was a "overlaylatlng" for the
map.click event

On Jan 23, 2:25 pm, Region 3 DFG <[email protected]> wrote:
> i know this thread is a little stale but i just found it as i was
> looking for a solution to such a problem
>
> so wouldnt this also work?..
>
>   map.disableInfoWindow();
>   var myEventListener = GEvent.bind(this.map, "click", this, function
> (overlay,point,opoint) {
>     if (document.getElementById("CPADx").checked) {
>       //
>     } else {
>       return;
>     }
>     if(overlay){
>       point = opoint;
>     }
>
> On Jan 17, 10:24 pm, Mike Williams <[email protected]> wrote:
>
> > Method 1. If you use EGeoXml or GeoXml instead of GGeoXml you would be
> > able to add {polygonoptions{clickable:false}}, in which case all the
> > clicks drop through to the map.
>
> > Method 2: Since you don't appear to be filling the polygon, you could
> > replace it with a polyline by using aKML<LineString> in which case
> > only clicks on the line would be intercepted.
>
> > Method 3: You could listen for map "addoverlay" events, looking for one
> > that's an instanceof GPolygon, then make a copy of it with
> > {clickable:false} and remove the original one. [Be careful not to get
> > into a loop when you get the "addoverlay" event for your new GPolygon.]
>
> > Method 4: You could listen for map "addoverlay" events, looking for one
> > that's an instanceof GPolygon, then add a "click" listener to that. Your
> > polygon "click" listener could either perform your user click processing
> > directly or trigger a map "click" event that would be picked up by your
> > existing map click listener.
>
> > --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
-~----------~----~----~----~------~----~------~--~---

Reply via email to