diff --git a/guide/10-mapping-and-visualization/working-with-web-maps-and-web-scenes.ipynb b/guide/10-mapping-and-visualization/working-with-web-maps-and-web-scenes.ipynb index e34e2d09b..7bcadc8b4 100644 --- a/guide/10-mapping-and-visualization/working-with-web-maps-and-web-scenes.ipynb +++ b/guide/10-mapping-and-visualization/working-with-web-maps-and-web-scenes.ipynb @@ -9,12 +9,10 @@ }, { "cell_type": "markdown", - "metadata": { - "toc": true - }, + "metadata": {}, "source": [ "

Table of Contents

\n", - "
" + "
" ] }, { @@ -425,7 +423,7 @@ "metadata": {}, "source": [ "### Adding layers to a web map\n", - "To add new layers, call the `Map.content.add()` method. You can add many different types of layers with this method, such as `FeatureLayer`, `ImageryLayer`, or `FeatureCollection` objects, as well as using `Items` as input. The code below adds a feature layer collection item to the web map and updates the layer's title property at the same timeC." + "To add new layers, call the `Map.content.add()` method. You can add many different types of layers with this method, such as `FeatureLayer`, `ImageryLayer`, or `FeatureCollection` objects, as well as using `Items` as input. The code below adds a feature layer collection item to the web map and updates the layer's title property at the same time." ] }, { @@ -506,12 +504,12 @@ "cell_type": "markdown", "metadata": {}, "source": [ - "## Searching for web scene items" + "### Searching for web scene items" ] }, { "cell_type": "code", - "execution_count": 78, + "execution_count": 6, "metadata": {}, "outputs": [ { @@ -524,12 +522,12 @@ " ,\n", " ,\n", " ,\n", - " ,\n", " ,\n", + " ,\n", " ]" ] }, - "execution_count": 78, + "execution_count": 6, "metadata": {}, "output_type": "execute_result" } @@ -548,7 +546,7 @@ }, { "cell_type": "code", - "execution_count": 79, + "execution_count": 7, "metadata": {}, "outputs": [ { @@ -566,7 +564,7 @@ " \n", "
Global scene of recent hurricanes, cyclones, and typhoons
Web Scene by arcgis_python\n", "
Last Modified: August 12, 2024\n", - "
0 comments, 0 views\n", + "
0 comments, 14 views\n", " \n", " \n", " " @@ -575,13 +573,13 @@ "" ] }, - "execution_count": 79, + "execution_count": 7, "metadata": {}, "output_type": "execute_result" } ], "source": [ - "webscene_item = webscene_search[8]\n", + "webscene_item = webscene_search[7]\n", "webscene_item" ] }, @@ -589,18 +587,60 @@ "cell_type": "markdown", "metadata": {}, "source": [ - "### Creating a `Scene` object\n", - "You can create a `Scene` object by passing an existing web scene item as the `Scene` class's _item_ argument:" + "### Creating a `Scene` object" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "You can create an emtpy Scene the same way you create an empty map:" ] }, { "cell_type": "code", - "execution_count": 188, + "execution_count": 8, "metadata": {}, "outputs": [], "source": [ "from arcgis.map import Scene\n", "\n", + "empty_scene = Scene()" + ] + }, + { + "cell_type": "code", + "execution_count": 2, + "metadata": {}, + "outputs": [ + { + "data": { + "text/plain": [ + "[]" + ] + }, + "execution_count": 2, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "empty_scene.content.layers" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "You can create a `Scene` object by passing an existing web scene item as the `Scene` class's _item_ argument:" + ] + }, + { + "cell_type": "code", + "execution_count": 9, + "metadata": {}, + "outputs": [], + "source": [ "scene_obj = Scene(\n", " item=webscene_item\n", ")"