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

6.0.0 and Custom controls #371

Closed
n0ne opened this issue Oct 26, 2016 · 8 comments
Closed

6.0.0 and Custom controls #371

n0ne opened this issue Oct 26, 2016 · 8 comments

Comments

@n0ne
Copy link

n0ne commented Oct 26, 2016

Hi everyone.
How to create one small button with two states and one onClick event?
I have no idea...Are there some examples or tuts?
It'll be great...
Thank you!

@amangeot
Copy link
Contributor

amangeot commented Oct 28, 2016

Have you seen these demos: https://tomchentw.github.io/react-google-maps/ ?

@n0ne
Copy link
Author

n0ne commented Nov 4, 2016

Yees....why are you asking? I don't see any buttons on this map...

@RishabhJain96
Copy link
Contributor

I believe you can either use an OverlayView, or try something like this: https://developers.google.com/maps/documentation/javascript/examples/control-custom.

@kstratis
Copy link

kstratis commented Nov 9, 2016

@n0ne I was wondering the exact same thing.

It seems however that we are out of lack. Peeking at the SearchBox code, I see hints everywhere that it's customly designed for maps usage (google maps specific controlPosition prop) and as such no plain react component can be used.

Any thoughts on that @tomchentw ?

or even a workaround for such a common scenario?

Thanks.

@jm90m
Copy link

jm90m commented Apr 3, 2017

@kstratis Were you able to find a solution to this / workaround? I am trying to add a legend on the map, similar to adding controls

@kstratis
Copy link

kstratis commented Apr 3, 2017

@jm90m None I'm afraid...

@jm90m
Copy link

jm90m commented Apr 3, 2017

@kstratis Oh ok thanks for the reply

@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

6 participants