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

Add legend to leaflet map #32

Closed
ghost opened this issue Jan 14, 2015 · 10 comments
Closed

Add legend to leaflet map #32

ghost opened this issue Jan 14, 2015 · 10 comments

Comments

@ghost
Copy link

ghost commented Jan 14, 2015

Hello, is it possible to add legend to the map? I'd like to legend colors by groups.
Very thanks.

@jcheng5
Copy link
Member

jcheng5 commented Jan 14, 2015

There isn't currently a feature for this but we would really like to add it for a future release.

@pssguy
Copy link

pssguy commented Feb 1, 2015

Would certainly help a lot with choropleth style

@smach
Copy link

smach commented Mar 22, 2015

+1 on adding this feature, it would be extremely useful!

@jordansread
Copy link

👍

yihui added a commit that referenced this issue May 6, 2015
@yihui yihui closed this as completed in 565f31b May 8, 2015
@yihui
Copy link
Member

yihui commented May 8, 2015

@jread-usgs @smach @caspase @pssguy We have added a function addLegend() to this package. Please test it and let us know if you have any comments.

@pssguy
Copy link

pssguy commented May 12, 2015

Thanks very much for this.

I want to use it in shiny with the user being able to change the number of bins via a numericInput.

However, the existing legend is not removed

A Work In Progress

@smach
Copy link

smach commented May 13, 2015

In early tests it is working for me as expected, thank you.

@pssguy
Copy link

pssguy commented May 13, 2015

@smach Try clicking the link. After the map appears, change the groups to 4. The first legend remains on the map

@jordansread
Copy link

success for me. Thanks @yihui!

@pssguy
Copy link

pssguy commented May 13, 2015

Yep They fixed it #87

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

5 participants