React-google-maps: Infobox and enableEventPropagation

Created on 1 Apr 2017  路  4Comments  路  Source: tomchentw/react-google-maps

Hello there. I have problem with click events on infobox. I have many markers on the map, when I open infobox it will cover rest of markers (works as expected), I have enableEventPropagation set to true - in infobox I have one html layer, with onClick event - when I click this layer and underneath of infobox is some covered markers, than - first I'm getting onclick event on marker, and then I'm getting second click on layer but on new infobox. IMHO first click event should be fired on infobox, than maybe on marker - how ever it should be fired if it is underneath of infobox... anther option, to set enableEventPropagation to false and create own listeners, but I dont know, how to reference infbox to ie google.maps.event.addDomListener(infobox, "click", function (e) - any help would be nice. thanks ;)

All 4 comments

Same goes with overlay infowindow, when there is a marker underneath of infowindow layer - this marker is clickable

I have also same problem

I solved this by adding options={{ optimized: false }} to markers props.

Please refer to Getting Help section in the README (or #469).

Was this page helpful?
0 / 5 - 0 ratings

Related issues

MrSaints picture MrSaints  路  3Comments

LukasZvikas picture LukasZvikas  路  3Comments

PaulieScanlon picture PaulieScanlon  路  3Comments

madbean picture madbean  路  3Comments

bansalvks picture bansalvks  路  3Comments