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
I didn't see an easy option to move the legend position. Something like legend_position = "topright" in the add_layer functions would be helpful. An example in the documentation of editing the CSS to move the legend could also be useful - I wasn't able to move the legend using the legend_options argument, but I'm not familiar with CSS.
The text was updated successfully, but these errors were encountered:
Is it actually possible to change the legend position using the legend_options argument or css argument in legend_element()? I am able to change the appearance of the legend (e.g., max-height and background color), but haven't had any success moving the legend position.
hi @chrislim5 , sorry I didn't see this first time around.
The specific div element that controls the legend's position is the .legendContainer. But it's not currently possible to override this in the legend_options() argument.
I didn't see an easy option to move the legend position. Something like legend_position = "topright" in the add_layer functions would be helpful. An example in the documentation of editing the CSS to move the legend could also be useful - I wasn't able to move the legend using the legend_options argument, but I'm not familiar with CSS.
The text was updated successfully, but these errors were encountered: