|
64 | 64 | "metadata": {},
|
65 | 65 | "outputs": [
|
66 | 66 | {
|
67 |
| - "data": { |
68 |
| - "text/plain": [ |
69 |
| - "{'id': 'e5d78c5d26814691bcf539ba334dce72',\n", |
70 |
| - " 'title': 'packages',\n", |
71 |
| - " 'username': 'arcgis_python'}" |
72 |
| - ] |
73 |
| - }, |
74 | 67 | "execution_count": null,
|
75 | 68 | "metadata": {},
|
76 | 69 | "output_type": "execute_result"
|
|
116 | 109 | }
|
117 | 110 | ],
|
118 | 111 | "source": [
|
119 |
| - "tpk_item = folder.add({\"title\": \"USA_counties_divorce_rate\", \"type\": \"Tile Package\"}, file='data/USA_counties_divorce_rate.tpk').result()\n", |
| 112 | + "tpk_item = folder.add(\n", |
| 113 | + " item_properties = {\n", |
| 114 | + " \"title\": \"USA_counties_divorce_rate\", \n", |
| 115 | + " \"type\": \"Tile Package\"\n", |
| 116 | + " }, \n", |
| 117 | + " file='data/USA_counties_divorce_rate.tpk'\n", |
| 118 | + ").result()\n", |
120 | 119 | "tpk_item"
|
121 | 120 | ]
|
122 | 121 | },
|
|
213 | 212 | ],
|
214 | 213 | "source": [
|
215 | 214 | "# upload vector tile package to the portal\n",
|
216 |
| - "vtpk_item = folder.add({\"title\": \"World_earthquakes_2010\", \"type\": \"Vector Tile Package\"}, file='data/World_earthquakes_2010.vtpk').result()\n", |
| 215 | + "vtpk_item = folder.add(\n", |
| 216 | + " item_properties={\n", |
| 217 | + " \"title\": \"World_earthquakes_2010\", \n", |
| 218 | + " \"type\": \"Vector Tile Package\"\n", |
| 219 | + " }, \n", |
| 220 | + " file='data/World_earthquakes_2010.vtpk'\n", |
| 221 | + ").result()\n", |
217 | 222 | "vtpk_item"
|
218 | 223 | ]
|
219 | 224 | },
|
|
321 | 326 | }
|
322 | 327 | ],
|
323 | 328 | "source": [
|
324 |
| - "slpk_item = folder.add({\"title\": \"World_earthquakes_2010\", \"type\": \"Scene Package\"}, file='data/World_earthquakes_2000_2010.slpk').result()\n", |
| 329 | + "slpk_item = folder.add({\n", |
| 330 | + " \"title\": \"World_earthquakes_2010\", \n", |
| 331 | + " \"type\": \"Scene Package\"\n", |
| 332 | + " }, \n", |
| 333 | + " file='data/World_earthquakes_2000_2010.slpk'\n", |
| 334 | + ").result()\n", |
325 | 335 | "slpk_item"
|
326 | 336 | ]
|
327 | 337 | },
|
|
386 | 396 | "name": "python",
|
387 | 397 | "nbconvert_exporter": "python",
|
388 | 398 | "pygments_lexer": "ipython3",
|
389 |
| - "version": "3.11.0" |
| 399 | + "version": "3.11.10" |
390 | 400 | },
|
391 | 401 | "toc": {
|
392 | 402 | "base_numbering": 1,
|
|
0 commit comments