On May 17, 7:37 pm, etheriau <[email protected]> wrote: > Hi-- > > We have created custom overlay for a custom marker implementation to our > application and they seem to work great -- essentially we put on an HTML div > which accepts onmouseover and click events. > > We've recently upgraded to 3.4 and it seems that when there is an actual > GoogleMarker on the same map, it seems like the marker is installed on an > overlay that is above ours, hence making our custom overlays fail to get > onmouseover and even click events (unless the user double clicks, in which > case usually it works, but not always). If I downgrade back to 3.3 OR > remove the marker, it all seems to work fine again. > > Does anyone have experience in resolving this type of problem?
This may help you figure out what is going on: The big change in v3.4 was rendering the markers in CANVAS. http://code.google.com/p/gmaps-api-issues/wiki/JavascriptMapsAPIv3Changelog Not sure how to get your custom overlay above the CANVAS but that might work, is there a reason why you need to have some native markers and some in your custom overlay? Another option would be to try setting the "optimized" property of the markers to false: (from the documentation) optimized boolean Optimization renders many markers as a single static element. Optimized rendering is enabled by default. Disable optimized rendering for animated GIFs or PNGs, or when each marker must be rendered as a separate DOM element (advanced usage only). -- Larry > > The marker doesn't seem to have anything particularly odd about it IMHO: > > var clp=new google.maps.Marker({ > clickable:false, > draggable:false, > map:map, > position:clpLoc, > title:title, > visible:true > }); > > Please let me know. Thanks! > > Eric -- 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.
