Skip to content

Commit a30b623

Browse files
committed
requested changes
1 parent 066b9af commit a30b623

1 file changed

Lines changed: 17 additions & 36 deletions

File tree

guide/13-managing-arcgis-applications/cloning-editing-storymap.ipynb

Lines changed: 17 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@
104104
"source": [
105105
"### Duplicating a StoryMap\n",
106106
"\n",
107-
"The `duplicate()` method supported specifically for `StoryMap` items lets you create a copy or _shallow_ clone of your StoryMap. It retains the structure, text and layout of the original story but does not clone the items within the original story and retains references to the maps, layers, and other items from the original story. The `duplicate()` method is a powerful way to create a copy of your story within the same organization. "
107+
"The `duplicate()` method supported specifically for `StoryMap` items lets you create a copy or _shallow_ clone of your StoryMap. It retains the structure, text and layout of the original story but does not clone the items within the original story and retains references to the maps, layers, and other items from the original story. The `duplicate()` method is a powerful way to create a copy of your story within the __same organization__. "
108108
]
109109
},
110110
{
@@ -152,42 +152,11 @@
152152
"id": "e0f25d99-0e94-47bf-84ef-0c3d80309a00",
153153
"metadata": {},
154154
"source": [
155-
"On the other hand, if you wish to clone this story while also cloning the deep dependencies (e.g., maps, layers, tables) from the original story, you may want to use the `clone_items()` method of the ArcGIS API for Python which is beneficial to clone any and all ArcGIS items. \n",
155+
"On the other hand, if you wish to clone this story while also cloning the deep dependencies (e.g., maps, layers, tables) from the original story, you will need to use the [`clone_items()` method](https://developers.arcgis.com/python/latest/api-reference/arcgis.gis.toc.html#arcgis.gis.ContentManager.clone_items) of the ArcGIS API for Python. \n",
156156
"\n",
157157
"This technique is particularly potent to clone the StoryMap and its dependencies to another organization, as shown in the example that follows. "
158158
]
159159
},
160-
{
161-
"cell_type": "code",
162-
"execution_count": 8,
163-
"id": "22742240-91b9-4b80-a9ff-915146221d3d",
164-
"metadata": {},
165-
"outputs": [
166-
{
167-
"data": {
168-
"text/plain": [
169-
"[<Item title:\"National parks of UK WebMap\" type:Web Map owner:MMajumdar_geosaurus>,\n",
170-
" <Item title:\"Nature Themed Story\" type:StoryMap owner:MMajumdar_geosaurus>]"
171-
]
172-
},
173-
"execution_count": 8,
174-
"metadata": {},
175-
"output_type": "execute_result"
176-
}
177-
],
178-
"source": [
179-
"cloned_story_online = gis.content.clone_items([storymap_item], copy_data=True)\n",
180-
"cloned_story_online"
181-
]
182-
},
183-
{
184-
"cell_type": "markdown",
185-
"id": "3ad89c1b-5592-4459-9e7b-02912c04252e",
186-
"metadata": {},
187-
"source": [
188-
"As we see above, unlike the `duplicate()` method that created a copy of the StoryMap item alone, `clone_items()` has successfully cloned both the StoryMap and Web Map items. "
189-
]
190-
},
191160
{
192161
"cell_type": "markdown",
193162
"id": "7992a440-8be7-4838-b763-1d0f72de3805",
@@ -234,7 +203,7 @@
234203
"id": "e2c5eba9-a02c-4314-87b8-d3f2185afeeb",
235204
"metadata": {},
236205
"source": [
237-
"`clone_items()` has cloned both the items to the ArcGIS Enterprise organization as well. "
206+
"`clone_items()` has successfully cloned both the the StoryMap and Web Map items to the target ArcGIS Enterprise organization. "
238207
]
239208
},
240209
{
@@ -246,7 +215,7 @@
246215
"\n",
247216
"We will now make edits to certain aspects of our cloned story. You can make edits to update the branding elements of the Storymap, as we will see below. \n",
248217
"\n",
249-
"Additionally, you can make edits to update the content elements. This can be particularly useful when you have a Storymap for a certain region and you want to clone it to retain the structure and layout but only update the text or maps or media within the story."
218+
"Additionally, you can make edits to update the content elements. This can be particularly useful when you have a template Storymap and you want to clone it to retain the structure and layout but only update the text or maps or media within the story."
250219
]
251220
},
252221
{
@@ -447,6 +416,14 @@
447416
"cloned_storymap.theme(Themes.OBSIDIAN)"
448417
]
449418
},
419+
{
420+
"cell_type": "markdown",
421+
"id": "a40ea08e-13ec-44f7-b6cc-8eb634355cce",
422+
"metadata": {},
423+
"source": [
424+
"It is necessary to save the `StoryMap` to see our changes reflect there."
425+
]
426+
},
450427
{
451428
"cell_type": "code",
452429
"execution_count": 18,
@@ -699,7 +676,11 @@
699676
"id": "bf69d67e-7013-44db-86e4-c231337c700b",
700677
"metadata": {},
701678
"source": [
702-
"#### Adding a new map to my Storymap"
679+
"#### Adding a new map to my Storymap\n",
680+
"\n",
681+
"We now fetch the map item that we would like to include in this story. Having imported the `storymap` submodule previously, we can directly access the `Map` class within it, specific for StoryMap content, as shown below. \n",
682+
"\n",
683+
"You can learn more about the other supported StoryMap content elements from [this introductory guide](../introduction-to-storymaps). "
703684
]
704685
},
705686
{

0 commit comments

Comments
 (0)