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_position argument #335

Open
chrislim5 opened this issue Nov 5, 2020 · 2 comments
Open

Add legend_position argument #335

chrislim5 opened this issue Nov 5, 2020 · 2 comments
Labels
enhancement New feature or request

Comments

@chrislim5
Copy link

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.

@chrislim5 chrislim5 added the enhancement New feature or request label Nov 5, 2020
@SymbolixAU SymbolixAU removed their assignment Jan 16, 2021
@chrislim5
Copy link
Author

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.

@dcooley
Copy link
Collaborator

dcooley commented Apr 14, 2021

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants