Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Infobox and enableEventPropagation #457

Closed
trag opened this issue Mar 31, 2017 · 4 comments
Closed

Infobox and enableEventPropagation #457

trag opened this issue Mar 31, 2017 · 4 comments

Comments

@trag
Copy link

trag commented Mar 31, 2017

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 ;)

@rafath
Copy link

rafath commented Mar 31, 2017

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

@feux07
Copy link

feux07 commented Apr 7, 2017

I have also same problem

@feux07
Copy link

feux07 commented Apr 7, 2017

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

@tomchentw
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants