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 at 
> http://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