Hi Brice,

Please provide a link to your site, and mention which browsers and operating
systems you've tried.

Polygons are placed in the overlayLayer pane (
http://code.google.com/apis/maps/documentation/v3/reference.html#MapPanes).
I see that the custom overlays example (
http://code.google.com/apis/maps/documentation/v3/overlays.html#CustomOverlays)
places
content in the overlayLayer pane too, so it should be possible to set a
z-index on your div to ensure that polys render in front of your content and
receive mouse events.

Polygon zIndex only controls the ordering of polygons relative to each
other.  Does your overlay block polygon events only where it overlaps with
polygons, or everywhere on your map?  Where your overlay overlaps with
polygons, do you want polygons to render in front and receive events?

Markers are placed in the overlayImage pane, just in the front of the
overlayLayer pane.  That is why markers remain clickable.  Consider placing
your content in the mapPane.  That lies underneath the polygons.

Cheers
Ben

On Thu, May 13, 2010 at 10:36 AM, Brice <[email protected]> wrote:

> Hello,
>
> I've added an image overlay to my map following this example here:
>
>
> http://code.google.com/apis/maps/documentation/v3/overlays.html#CustomOverlays
>
> And now I am trying to add polygons as well.  The mouse events for the
> polygon don't fire when the div that contains the image is on the
> map.  When I delete that div using firebug the events start working
> again.  I've tried giving that div a z-index of -1 and the polygons a
> large z-index but that doesn't fix the problem.
>
> Is it possible to have this extra div over the map and have polygon
> events?  I also have markers on the map and those events work so it
> seems to be only related to the polygons.
>
> Thanks,
> Brice
>
> --
> 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]<google-maps-js-api-v3%[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