Map window stays empty in Jupyter

734
2
Jump to solution
06-14-2021 02:03 AM
NannaPluim1
New Contributor

I am trying to run an ArcGis Notebook in Jupyter. I have cloned the environment in ArcGis Pro and it's running in Conda.

I can run the cells in Jupyter, and the window is loading, but the map is not loading:

NannaPluim1_0-1623661357021.png

Can you help me with this? The arcgis version of the package is 1.8.5

0 Kudos
1 Solution

Accepted Solutions
jcarlson
MVP Esteemed Contributor

The map widget in a Notebook is going to default to the basemap and scale/extent as defined in your organization's settings, if you're signed in to one.

Try explicitly setting the basemap, center, and scale properties, as outlined in the API docs.

my_first_map.basemap = 'osm'
my_first_map.center = [your_lat, your_lon]
my_first_map.scale = 20000

my_first_map

 

Does that change what you're seeing?

- Josh Carlson
Kendall County GIS

View solution in original post

2 Replies
jcarlson
MVP Esteemed Contributor

The map widget in a Notebook is going to default to the basemap and scale/extent as defined in your organization's settings, if you're signed in to one.

Try explicitly setting the basemap, center, and scale properties, as outlined in the API docs.

my_first_map.basemap = 'osm'
my_first_map.center = [your_lat, your_lon]
my_first_map.scale = 20000

my_first_map

 

Does that change what you're seeing?

- Josh Carlson
Kendall County GIS
NannaPluim1
New Contributor

Hello Josh,

That's the solution! I have a standard basemap in a coordinate system from the Netherlands. 

Thank you very much!

0 Kudos