Select to view content in your preferred language

singing in to Pro through Notebooks trouble

65
3
Jump to solution
4 hours ago
WoodyUmstead
Emerging Contributor

After trying to run cell 3 I get this error message. 

" property 'basemap' of 'Map' object has no setter "

 

I have logged out and logged back in and still get the message. I am wondering if on cell 2 I am not actually signed in?

 

This is run on my desktop and my version is 3.5

0 Kudos
1 Solution

Accepted Solutions
Clubdebambos
MVP Regular Contributor

The course is outdated and is for ArcGIS API for Python 2.3 and older. Since 2.4 the WebMap class has been replaced with the Map class. The Map class has a property called basemap which is a BasemapManager object, which in turn has a basemap property to set the basemap for a Map.

So it would look like this...

map1.basemap.basemap = "streets"

~ learn.finaldraftmapping.com

View solution in original post

3 Replies
WoodyUmstead
Emerging Contributor

Here is another screenshot for more context of the steps I am working through within 'Performing Analysis Using ArcGIS API for Python' course. 

 

First screenshot is of my error message, second is the steps leading up to it.

0 Kudos
Clubdebambos
MVP Regular Contributor

The course is outdated and is for ArcGIS API for Python 2.3 and older. Since 2.4 the WebMap class has been replaced with the Map class. The Map class has a property called basemap which is a BasemapManager object, which in turn has a basemap property to set the basemap for a Map.

So it would look like this...

map1.basemap.basemap = "streets"

~ learn.finaldraftmapping.com
WoodyUmstead
Emerging Contributor

Thank you! 

I will take this into account. 

0 Kudos