Skip to content

Commit ff0c645

Browse files
author
Sandeep Kumar
committed
fixed broken item links
1 parent c0e5971 commit ff0c645

1 file changed

Lines changed: 38 additions & 11 deletions

File tree

guide/10-mapping-and-visualization/using-the-map-widget.ipynb

Lines changed: 38 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
},
3232
{
3333
"cell_type": "code",
34-
"execution_count": 1,
34+
"execution_count": 2,
3535
"metadata": {},
3636
"outputs": [],
3737
"source": [
@@ -464,9 +464,36 @@
464464
},
465465
{
466466
"cell_type": "code",
467-
"execution_count": null,
467+
"execution_count": 3,
468468
"metadata": {},
469-
"outputs": [],
469+
"outputs": [
470+
{
471+
"data": {
472+
"application/vnd.jupyter.widget-view+json": {
473+
"model_id": "a493358378c84d268008697bc7bc80a7",
474+
"version_major": 2,
475+
"version_minor": 0
476+
},
477+
"text/plain": [
478+
"MapView(layout=Layout(height='400px', width='100%'), zoom=4.0)"
479+
]
480+
},
481+
"metadata": {},
482+
"output_type": "display_data"
483+
},
484+
{
485+
"data": {
486+
"text/html": [
487+
"<div class=\"map-static-img-preview-1c18855c-dee5-4f2a-b1e7-4f616f4fa53f\"><img src=\"\"></img></div>"
488+
],
489+
"text/plain": [
490+
"<IPython.core.display.HTML object>"
491+
]
492+
},
493+
"metadata": {},
494+
"output_type": "display_data"
495+
}
496+
],
470497
"source": [
471498
"# Log into to GIS as we will save the widget as a web map later\n",
472499
"gis = GIS(\"https://www.arcgis.com\", \"arcgis_python\", \"P@ssword123\")\n",
@@ -490,7 +517,7 @@
490517
},
491518
{
492519
"cell_type": "code",
493-
"execution_count": 17,
520+
"execution_count": 12,
494521
"metadata": {},
495522
"outputs": [
496523
{
@@ -505,10 +532,10 @@
505532
" <Item title:\"World Exclusive Economic Zone Boundaries\" type:Feature Layer Collection owner:esri>,\n",
506533
" <Item title:\"Location Tracking\" type:Feature Layer Collection owner:esri>,\n",
507534
" <Item title:\"USA Anchorage Areas (Mature Support)\" type:Feature Layer Collection owner:esri>,\n",
508-
" <Item title:\"USA Soils Map Units\" type:Feature Layer Collection owner:esri>]"
535+
" <Item title:\"USA Territorial Sea Boundary (Mature Support)\" type:Feature Layer Collection owner:esri>]"
509536
]
510537
},
511-
"execution_count": 17,
538+
"execution_count": 12,
512539
"metadata": {},
513540
"output_type": "execute_result"
514541
}
@@ -532,7 +559,7 @@
532559
"metadata": {},
533560
"outputs": [],
534561
"source": [
535-
"world_timezones_item = flayer_search_result[4]\n",
562+
"world_timezones_item = gis.content.get('312cebfea2624e108e234220b04460b8')\n",
536563
"usa_map.add_layer(world_timezones_item)"
537564
]
538565
},
@@ -546,7 +573,7 @@
546573
},
547574
{
548575
"cell_type": "code",
549-
"execution_count": 42,
576+
"execution_count": 10,
550577
"metadata": {},
551578
"outputs": [
552579
{
@@ -555,13 +582,13 @@
555582
"<FeatureLayer url:\"https://services.arcgis.com/P3ePLMYs2RVChkJx/arcgis/rest/services/World_Countries/FeatureServer/0\">"
556583
]
557584
},
558-
"execution_count": 42,
585+
"execution_count": 10,
559586
"metadata": {},
560587
"output_type": "execute_result"
561588
}
562589
],
563590
"source": [
564-
"world_countries_item = flayer_search_result[-1]\n",
591+
"world_countries_item = gis.content.get('ac80670eb213440ea5899bbf92a04998')\n",
565592
"world_countries_layer = world_countries_item.layers[0]\n",
566593
"world_countries_layer"
567594
]
@@ -597,7 +624,7 @@
597624
"metadata": {},
598625
"outputs": [],
599626
"source": [
600-
"freeway_feature_layer = flayer_search_result[-2].layers[0]\n",
627+
"freeway_feature_layer = gis.content.get('51275617f1274103b81d99cd0ad94a40').layers[0]\n",
601628
"usa_map.add_layer(freeway_feature_layer, {\"renderer\":\"ClassedSizeRenderer\", \"field_name\": \"DIST_MILES\"})"
602629
]
603630
},

0 commit comments

Comments
 (0)