Google-map-react: adding markers with click events

Created on 26 Jul 2016  路  4Comments  路  Source: google-map-react/google-map-react

Is it possible to add markers to a map without hard coding lat, long coordinates? I'd like a user to click anywhere on the map to drop a marker.

Most helpful comment

FYI the link from @istarkov's earlier comment is broken, here's an updated one: https://github.com/google-map-react/google-map-react/blob/master/API.md#onclick-func

All 4 comments

Have you seen what you you receive in onClick event? Or just seen this https://github.com/istarkov/google-map-react#onclick-func

I must be blind. Thanks.

FYI the link from @istarkov's earlier comment is broken, here's an updated one: https://github.com/google-map-react/google-map-react/blob/master/API.md#onclick-func

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

nhducit picture nhducit  路  5Comments

matanhalevy picture matanhalevy  路  4Comments

figalex picture figalex  路  4Comments

lord-xeon picture lord-xeon  路  3Comments

Ravindra7284 picture Ravindra7284  路  5Comments