Select to view content in your preferred language

Add a point - Map object has no attribute draw

78
2
Jump to solution
yesterday
AurelienRobert
New Contributor

Hello everyone,

I'm trying to simply add x,y points with markers on a newly created webmap via a Python script.

I copied the exact code from the tutorial (https://developers.arcgis.com/python-2-3/guide/tutorials/add-a-point-line-and-polygon/) and I get this error: "'Map' object has no attribute 'draw'" on the map.draw command. (I've also tried a version with a login to my profile instead of the anonymous mode in the tutorial, same error)

I've been at it for a few days, I've searched the community board and the API documentation as well, to no avail.

Any help appreciated.
Thanks!

0 Kudos
1 Solution

Accepted Solutions
GISDepartmentMFM
Regular Contributor

looks like this is from an older version and might be deprecated, this might be a more up to date tutorioal: https://developers.arcgis.com/python/latest/guide/tutorials/add-a-point-line-and-polygon/

View solution in original post

0 Kudos
2 Replies
GISDepartmentMFM
Regular Contributor

looks like this is from an older version and might be deprecated, this might be a more up to date tutorioal: https://developers.arcgis.com/python/latest/guide/tutorials/add-a-point-line-and-polygon/

0 Kudos
AurelienRobert
New Contributor

Thank you! It works indeed.

0 Kudos