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

Adding a Legend #459

Closed
jm90m opened this issue Apr 3, 2017 · 8 comments
Closed

Adding a Legend #459

jm90m opened this issue Apr 3, 2017 · 8 comments

Comments

@jm90m
Copy link

jm90m commented Apr 3, 2017

Hello, I am trying to add a legend, I though about using the overlay view but I want something more like the example on here: https://developers.google.com/maps/documentation/javascript/adding-a-legend

Looks like that involves pushing to the current instance of map inmap.controls? So is there any way to do this? Thanks

@tomchentw
Copy link
Owner

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

@aldoruizluna
Copy link

Hey @jm90m, did you find a solution for adding a legend to the map? Would love to know if you did. Cheers.

@jm90m
Copy link
Author

jm90m commented Jun 19, 2017

@Aldorl nope, I just made my legend through a custom react component outside this library.

@anubhav0fnu
Copy link

@Aldorl How you did that. Did you use overlay, or not?

@aldoruizluna
Copy link

@anubhav0fnu I never figured out how to do it, so I just added the legend outside of the map

@DanielDouradoFsa
Copy link

Hi. i solve this based on https://developers.google.com/maps/documentation/javascript/adding-a-legend.
Component_google
In onGoogleReady:
onGoogleReady
And it works great! The google prop we get from props is not the same as google, we should use google which is received from the second onReady parameter. Hope it helps y'all

@jhoanborges
Copy link

+1

@jhoanborges
Copy link

Hi. i solve this based on https://developers.google.com/maps/documentation/javascript/adding-a-legend. Component_google In onGoogleReady: onGoogleReady And it works great! The google prop we get from props is not the same as google, we should use google which is received from the second onReady parameter. Hope it helps y'all

Can you please share your code and the Legend component?

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