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 info about resizing to docs? #750

Open
raybellwaves opened this issue Nov 24, 2020 · 3 comments
Open

add info about resizing to docs? #750

raybellwaves opened this issue Nov 24, 2020 · 3 comments

Comments

@raybellwaves
Copy link

I was looking how to this and I came across

#345

Could add a little section in the docs on this e.g.

from ipyleaflet import Map, basemaps

center = [38.128, 2.588]
zoom = 5

m = Map(basemap=basemaps.OpenStreetMap.Mapnik, center=center, zoom=zoom)
m.layout.height = '600px'
m.layout.width = '600px'
@martinRenou
Copy link
Member

Indeed that would be helpful! Would you like to open a PR and get credits for this?

@raybellwaves
Copy link
Author

Any thoughts on where this could go?

The docs are nicely structured.

@martinRenou
Copy link
Member

I am tempted to suggest a new section in the map documentation: https://github.com/jupyter-widgets/ipyleaflet/blob/master/docs/source/api_reference/map.rst

jmp75 added a commit to jmp75/ipyleaflet that referenced this issue Sep 11, 2021
How to customise the layout is not obvious to new users
not already familiar with ipywidgets. Screen sizes these days
are such the default layout appears very horizontal and
users appear often inclined to change the default height. The
first experience to find out how can be smoothed a bit
via documentation.
martinRenou added a commit that referenced this issue Sep 13, 2021
Add doc section for Map on basic layout options. Issue #750
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants