Select to view content in your preferred language

VisualPythonAPI

37
1
yesterday
OscarGaleas
Occasional Contributor

OscarGaleas_0-1752583261588.png

 

 

Hello,

 

I am using the notebook provided by the documentation but when running the code i keep getting this error. It seems some of the code has been deprecated. The documentation in this exercise may need to be updated.

0 Kudos
1 Reply
Clubdebambos
MVP Regular Contributor

Hi @OscarGaleas,

What version of the API are you using?

import arcgis

print(arcgis.__version__)

 

The Map class came in as of 2.4.0 replacing the WebMap class. So make sure you are on  2.4.0+.

Although, when setting the basemap it would look more like below, accessing the BasemapManager and then the basemap property.

m.basemap.basemap = b

 

~ learn.finaldraftmapping.com
0 Kudos