Tried that and it works!

Turned up a couple of things. In changelog at:

http://code.google.com/p/gmaps-api-issues/wiki/JavascriptMapsAPIv3Changelog

Entry marked: 3.1 Jul 22, 2010 gives info. on a change to the API:

* Clicking on a KML overlay no longer fires a map click event

and also this post:

http://code.google.com/p/gmaps-api-issues/issues/detail?id=2422

Comment #2 says:

supressInfoWindows is not the same a setting clickable to false, but
Kml Layers do not have a clickable property.
I have filed a feature request for this.

So hopefully this will get sorted eventually.

Many thanks Ben!

Ian

On Sep 6, 10:11 am, Ben Appleton <[email protected]> wrote:
> On Mon, Sep 6, 2010 at 6:51 PM, Big Chief <[email protected]> wrote:
>
> > Yes, that would have been smarter:
>
> >http://www.stams.strath.ac.uk/testmap/
>
> > 1. Click on "Add a marker"
> > 2. Try placing it on top of polygons - click does nothing
> > 3. Try placing it on a clear bit of map - works
>
> > 4. Reload the page
>
> > 5. Repeat step 1.
> > 6. Repeat step 2.
> > 7. Toggle polygon display off
> > 8. You can place the marker anywhere.
>
> > So the KmlLayer is capturing the mouse click events and they don't
> > reach the map layer.
>
> > Can I place markers when a KmlLayer is visible ??
>
> Yes, but not on content inside the KmlLayer.  Consider filing a
> feature request to add option "clickable" to 
> KmlLayerOptions:http://code.google.com/p/gmaps-api-issues/
>
> Meanwhile for a workaround, add a listener to your KmlLayer which
> calls your function to add a marker.
>
> - Ben
>
> > Many thanks
>
> > Ian
>
> > On Sep 6, 5:49 am, Ben Appleton <[email protected]> wrote:
> >> Are you clicking on the polygon?
>
> >> It would help if you can provide a link to your site.
>
> >> Thanks
> >> Ben
>
> > --
> > 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 
> > athttp://groups.google.com/group/google-maps-js-api-v3?hl=en.
>
>

-- 
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.

Reply via email to