mapseed/platform

Fix cartodb legend so it displays when layer is checked

Closed this issue · 2 comments

We have a bug where the legend from a CartoDB layer will not display.

One thing to figure out with this issue: How do we handle the legend area when multiple layers are selected?

Also note: the legend display is poor on mobile, it takes up way too much real estate.
A temporary fix would be to enable legend only on tablet size screens or larger, but this can be dealt with on another issue ticket.

Fixed by #427.

I feel like I've just completed a semester of jQuery and earned a certificate.

Would have also liked to make a recursive call of setLegendVisibility from inside itself, but for some reason couldn't get it to execute... So, a teeny bit of code duplication.