0

My ultimate goal is pretty simple: I need to create a Story Map, add a web map to it, then save and publish it all from a python notebook. The documentation is unclear to me about how to accomplish this. Here "m" is my webmap object created in a prior process and "wmTitle" is stored in a variable. When I try to run this, it claims that object has no attribute "add." I've initiated the storymap library with

from arcgis.apps.storymap import StoryMap

## CREATE A STORYMAP
storymap_item = gis.content.add({"type": "StoryMap",'title': wmTitle} , owner = 'mjay@xyzxyzxy')
storymap_item.share(everyone=False)

# Add WebMap to StoryMap
new_node = storymap_item.add(m, "GPS Tracking Points", "Subtitle")
storymap_item.save()
storymap_item.publish()
storyurl = "https://mapping.uspsoig.gov/portal/apps/storymaps/stories/" + webmap_id```

Also, it creates the StoryMap but does not create a REST endpoint for some reason, because going in manually and trying to edit leaves me with a 404 screen.

I've tried going the cloning route and that's not working either. I've pored over the class arcgis.apps.storymap.story_content.Map() documentation and it doesn't tell me anything.

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.