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

[BUG] Map height fixed at 24rem #729

Open
wx4stg opened this issue Jan 8, 2025 · 1 comment
Open

[BUG] Map height fixed at 24rem #729

wx4stg opened this issue Jan 8, 2025 · 1 comment
Labels
bug Something isn't working

Comments

@wx4stg
Copy link

wx4stg commented Jan 8, 2025

When embedding lonboard in panel (and probably other similar toolkits), the map height is fixed to 24rem, regardless of the parent container's height.

This issue is new since 0.9.3, I believe this issue was first introduced in 44a45f8. Continuing discussion from #264

Environment

  • OS: Fedora 41
  • Browser: Chrome/Brave
  • Lonboard Version: 0.10.3

Steps to reproduce the bug

import panel as pn
from lonboard import Map
from lonboard.basemap import CartoBasemap

pn.extension()

title = pn.pane.Markdown('# THIS IS A TITLE')
lonb_map = Map([], basemap_style=CartoBasemap.Positron)
lonb_map_panel_container = pn.pane.IPyWidget(lonb_map, sizing_mode='stretch_both', align='center')

pn.Column(title, lonb_map_panel_container).servable()

Image

@wx4stg wx4stg added the bug Something isn't working label Jan 8, 2025
@kylebarron
Copy link
Member

I'm not great at HTML/CSS, so I'm not sure exactly what caused this regression. Open to any PRs. Also cc @vgeorge

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants