You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
One feature that I think is missing (or maybe it's not and I just haven't found it documented), is a way to give each popup a unique title beyond the layer name.
In my use case, I might have a choropleth with bar charts and I would like the popup to show the bar chart data for each region along with the name of the region as the title, for example:
Spain
x: 1234
y: 6478
and
France
x: 73907
y: 90682
I got around this with a hacky function I wrote in R and passed to the html parameter of popupArgs() which more or less accomplishes what setPopup() does with the addition of allowing a character vector of titles for each set of values:
I'm not sure if this is a feature others would like, but it seems like it would be easy to implement in JS (or R as I have done). Happy to help out with a PR if you'd like.
The text was updated successfully, but these errors were encountered:
One feature that I think is missing (or maybe it's not and I just haven't found it documented), is a way to give each popup a unique title beyond the layer name.
In my use case, I might have a choropleth with bar charts and I would like the popup to show the bar chart data for each region along with the name of the region as the title, for example:
and
I got around this with a hacky function I wrote in R and passed to the html parameter of
popupArgs()
which more or less accomplishes whatsetPopup()
does with the addition of allowing a character vector of titles for each set of values:I'm not sure if this is a feature others would like, but it seems like it would be easy to implement in JS (or R as I have done). Happy to help out with a PR if you'd like.
The text was updated successfully, but these errors were encountered: