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

Marker : No action on handleMarkerClick #341

Closed
MikeCodeur opened this issue Sep 26, 2016 · 4 comments
Closed

Marker : No action on handleMarkerClick #341

MikeCodeur opened this issue Sep 26, 2016 · 4 comments

Comments

@MikeCodeur
Copy link

MikeCodeur commented Sep 26, 2016

Hi,

I tried this example

http://react-google-maps.tomchentw.com/#/basics/pop-up-window?_k=ylwfg9

But i can't handle click on Marker
I see no event. Any idea ?


return ( <Marker 
                key={index}
                ref={ref}
                position={marker.position}
                onClick={this.handleMarkerClick.bind(this,marker)} >

                {/* 
                  Show info window only if the 'showInfo' key of the marker is true. 
                  That is, when the Marker pin has been clicked and 'handleMarkerClick' has been
                  Successfully fired.
                */}
                {marker.showInfo ? this.renderInfoWindow(ref, marker) : null}

              </Marker>


@rokimoto
Copy link

@mika75 Also having the same issue adding click handlers to markers. Have you found any solution to this?

@MikeCodeur
Copy link
Author

@rokimoto Sorry I have no solution and you ? are you on Async Mode ?

@rokimoto
Copy link

rokimoto commented Oct 6, 2016

@mika75 No solution over here either unfortunately. 😞 But no I was not.

@tomchentw
Copy link
Owner

@mika75 @rokimoto Since 6.0.0 is released on npm beta tag now and we have a new demo page, could you try it here again?
https://tomchentw.github.io/react-google-maps/basics/pop-up-window

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

3 participants