|
27 | 27 | },
|
28 | 28 | {
|
29 | 29 | "cell_type": "code",
|
30 |
| - "execution_count": 3, |
| 30 | + "execution_count": 2, |
31 | 31 | "metadata": {},
|
32 |
| - "outputs": [], |
| 32 | + "outputs": [ |
| 33 | + { |
| 34 | + "name": "stdout", |
| 35 | + "output_type": "stream", |
| 36 | + "text": [ |
| 37 | + "Intel MKL WARNING: Support of Intel(R) Streaming SIMD Extensions 4.2 (Intel(R) SSE4.2) enabled only processors has been deprecated. Intel oneAPI Math Kernel Library 2025.0 will require Intel(R) Advanced Vector Extensions (Intel(R) AVX) instructions.\n", |
| 38 | + "Intel MKL WARNING: Support of Intel(R) Streaming SIMD Extensions 4.2 (Intel(R) SSE4.2) enabled only processors has been deprecated. Intel oneAPI Math Kernel Library 2025.0 will require Intel(R) Advanced Vector Extensions (Intel(R) AVX) instructions.\n" |
| 39 | + ] |
| 40 | + } |
| 41 | + ], |
33 | 42 | "source": [
|
34 | 43 | "from arcgis.gis import GIS\n",
|
35 | 44 | "from arcgis.mapping import WebMap, WebScene\n",
|
|
43 | 52 | "cell_type": "markdown",
|
44 | 53 | "metadata": {},
|
45 | 54 | "source": [
|
46 |
| - "# Creating a web map and feature layer\n", |
| 55 | + "## Creating a web map and feature layer\n", |
47 | 56 | "We will will create a feature layer and a web map. We will then delete the feature layer and re-publish. This will change the service and leave us with a broken layer inside our map, don't worry we will fix this in the next steps."
|
48 | 57 | ]
|
49 | 58 | },
|
|
110 | 119 | "source": [
|
111 | 120 | "wm = WebMap()\n",
|
112 | 121 | "wm.add_layer(capitals_item)\n",
|
113 |
| - "wm.save({\"title\": \"USA Capitals WebMap\", \"tags\": [\"python\", \"webmap\"], \"snippet\": \"A webmap that contains USA capitals as a feature layer.\"})" |
| 122 | + "wm.save(\n", |
| 123 | + " {\n", |
| 124 | + " \"title\": \"USA Capitals WebMap\", \n", |
| 125 | + " \"tags\": [\"python\", \"webmap\"], \n", |
| 126 | + " \"snippet\": \"A webmap that contains USA capitals as a feature layer.\"\n", |
| 127 | + " }\n", |
| 128 | + ")" |
114 | 129 | ]
|
115 | 130 | },
|
116 | 131 | {
|
|
175 | 190 | "cell_type": "markdown",
|
176 | 191 | "metadata": {},
|
177 | 192 | "source": [
|
178 |
| - "# Using and updating a web map\n", |
| 193 | + "## Using and updating a web map\n", |
179 | 194 | "We will search for that web map that has broken layers, render it on the notebook and update it."
|
180 | 195 | ]
|
181 | 196 | },
|
|
233 | 248 | "cell_type": "markdown",
|
234 | 249 | "metadata": {},
|
235 | 250 | "source": [
|
236 |
| - "## Fix errors in web map\n", |
| 251 | + "### Fix errors in web map\n", |
237 | 252 | "The widget loads an empty web map with just a basemap. Let us investigate the contents of the web map to determine the issue. You can query the layers in the web map using the `layers` property."
|
238 | 253 | ]
|
239 | 254 | },
|
|
513 | 528 | "cell_type": "markdown",
|
514 | 529 | "metadata": {},
|
515 | 530 | "source": [
|
516 |
| - "## Update the web map\n", |
| 531 | + "### Update the web map\n", |
517 | 532 | "Now the web map should be fixed as it points to a live service. To update the web map, we call the `update()` method. You have the option to update the thumbnail or any other item properties at this time."
|
518 | 533 | ]
|
519 | 534 | },
|
|
591 | 606 | "cell_type": "markdown",
|
592 | 607 | "metadata": {},
|
593 | 608 | "source": [
|
594 |
| - "# Using and updating a web scene\n", |
| 609 | + "## Using and updating a web scene\n", |
595 | 610 | "In the sample above we observed how to update a web map. Updating the web scene is similar, we use the `update()` method. Let us look at the example of a web scene that displays tropical cyclones over the Pacific ocean."
|
596 | 611 | ]
|
597 | 612 | },
|
|
682 | 697 | "cell_type": "markdown",
|
683 | 698 | "metadata": {},
|
684 | 699 | "source": [
|
685 |
| - "## Make a copy of the public web scene item\n", |
| 700 | + "### Make a copy of the public web scene item\n", |
686 | 701 | "To make a copy, we essentially download the content of the web scene JSON, remove the parts we don't want, add the layers that we want and publish a new item using that information. The publishing steps are similar to what is described earlier in the **data preparation** section and in detail in the sample titled **Publishing web maps and web scenes**.\n",
|
687 | 702 | "\n",
|
688 | 703 | "Let's say, we are only interested in the storms that occur in summer. Summer in tropical Asia is around April-June and that matches with a layer in the existing web scene. Let us query the `operationalLayers` section of the web scene to understand what the layers look like.\n",
|
|
1955 | 1970 | "cell_type": "markdown",
|
1956 | 1971 | "metadata": {},
|
1957 | 1972 | "source": [
|
1958 |
| - "# Summary\n", |
| 1973 | + "## Summary\n", |
1959 | 1974 | "In this sample, we observed how to consume web maps, web scenes and how to update them. During this process, the sample showed how to read a web feature layers, how to use geocoding to get co-ordinates of a point of interest, how to modify the map widget using code, how to make copy of an existing item into your account, how to look for basemaps and finally, how to update layer properties within a web scene."
|
1960 | 1975 | ]
|
1961 | 1976 | }
|
|
1981 | 1996 | "name": "python",
|
1982 | 1997 | "nbconvert_exporter": "python",
|
1983 | 1998 | "pygments_lexer": "ipython3",
|
1984 |
| - "version": "3.9.18" |
| 1999 | + "version": "3.11.9" |
1985 | 2000 | },
|
1986 | 2001 | "toc": {
|
1987 | 2002 | "base_numbering": 1,
|
|
0 commit comments