Hi Larry. Thanks for your reply. The click event does not trigger for the black polygon I added which is a little further north of the alert icons.
The black polygon was created by instantiating a new google.map.Polygon, whereas the construction/alert looking markers are coming in from the imported KML layer. It seems like I can only have either the polygons or the KML layer objects be interactive, which is at its most basic case wasn't how Maps 2 behaved. I feel like I must be missing something obvious here. On Sep 1, 5:39 pm, "[email protected]" <[email protected]> wrote: > On Sep 1, 2:18 pm, Lee R <[email protected]> wrote: > > > > > > > Hello, > > > I've been porting some code for a University campus map to V3 and I'm > > having a lot of trouble with one particular issue I can't trace to > > anything I've written. > > > I am importing KML from maps.google.com using KmlLayer. In the V2 > > version of this code, I was using GGeoXML. On both versions, I am > > creating and adding Polygons to the map as well. > > > If I register a click handler for any of these polygons, the KML Layer > > objects become inoperable. > > > Any advice on how to get this working like it should would be > > valuable. I spent a significant amount of time searching google groups > > for references to this problem, and I did find one post, but no one > > had to say anything about this particular issue. > > > A sample file can be found below. As you will note, I am not using the > > suppressInfoWindows parameter. I even tried setting it to false at one > > point. > > >http://angilas.ur.northwestern.edu/~leeroberson/maptest.html > > > If you comment out foo.setMap(map), the click event for the polygon > > fires. Otherwise, it does not. Surely there must be a way to get KML > > Layers to display info windows and polygons to have their own click > > events on the same map? > > Both click events fire for me in IE. What browser exhibits the > problem? > > -- Larry -- You received this message because you are subscribed to the Google Groups "Google Maps JavaScript API v3" 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-js-api-v3?hl=en.
