How to change the height of the map widget (arcgis Python api) in Jupyter Notebook?

2348
5
Jump to solution
11-30-2019 11:21 AM
ChangjieChen
New Contributor II
1 Solution

Accepted Solutions
MatthiasSchenker
Esri Contributor

Hi Changjie

You should be able to change this via the layout property, here an example:

from ipywidgets import *
map.layout=Layout(flex='1 1', padding='100px', height='300px')

Best,

Matthias

View solution in original post

5 Replies
DanPatterson_Retired
MVP Emeritus

I don't suppose it would be the Extent property of widget or the sdf

arcgis.widgets module — arcgis 1.7.0 documentation 

0 Kudos
ChangjieChen
New Contributor II

I think the extent property controls the lat-lon of the map itself. Not the size of the plot.

0 Kudos
MatthiasSchenker
Esri Contributor

Hi Changjie

You should be able to change this via the layout property, here an example:

from ipywidgets import *
map.layout=Layout(flex='1 1', padding='100px', height='300px')

Best,

Matthias

Per_Åke_MattiasWallin
New Contributor III

Thank you Matthias!  I cannot believe I haven't seen this before.

0 Kudos
ChangjieChen
New Contributor II

Matthias, thank you for your answer. Searching for a solution within the arcgis API exhausted me. Never thought about this direction you pointed. I really appreciate it.

0 Kudos