Skip to content

Commit f0991ef

Browse files
authored
Merge pull request #2127 from Esri/NA/guides_10
Update snow avalanche sample with 2.4 mapping syntax
2 parents 568951d + 0281652 commit f0991ef

File tree

1 file changed

+17
-17
lines changed

1 file changed

+17
-17
lines changed

samples/04_gis_analysts_data_scientists/snow_avalanche_hazard_mapping_for_lake_tahoe.ipynb

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@
8383
"metadata": {},
8484
"outputs": [],
8585
"source": [
86-
"gis = GIS('https://pythonapi.playground.esri.com/portal', 'arcgis_python', 'amazing_arcgis_123')"
86+
"gis = GIS(profile='your_enterprise_profile')"
8787
]
8888
},
8989
{
@@ -276,8 +276,8 @@
276276
"outputs": [],
277277
"source": [
278278
"m = gis.map('Lake Tahoe, California')\n",
279-
"m.add_layer(dem_clip)\n",
280-
"m.legend = True\n",
279+
"m.content.add(dem_clip)\n",
280+
"m.legend.enabled = True\n",
281281
"m"
282282
]
283283
},
@@ -331,8 +331,8 @@
331331
"outputs": [],
332332
"source": [
333333
"m = gis.map('Lake Tahoe, California')\n",
334-
"m.add_layer(elevation)\n",
335-
"m.legend = True\n",
334+
"m.content.add(elevation)\n",
335+
"m.legend.enabled = True\n",
336336
"m"
337337
]
338338
},
@@ -382,8 +382,8 @@
382382
"outputs": [],
383383
"source": [
384384
"m = gis.map('Lake Tahoe, California')\n",
385-
"m.add_layer(slope)\n",
386-
"m.legend = True\n",
385+
"m.content.add(slope)\n",
386+
"m.legend.enabled = True\n",
387387
"m"
388388
]
389389
},
@@ -438,8 +438,8 @@
438438
"outputs": [],
439439
"source": [
440440
"m = gis.map('Lake Tahoe, California')\n",
441-
"m.add_layer(aspect)\n",
442-
"m.legend = True\n",
441+
"m.content.add(aspect)\n",
442+
"m.legend.enabled = True\n",
443443
"m"
444444
]
445445
},
@@ -499,8 +499,8 @@
499499
"outputs": [],
500500
"source": [
501501
"m = gis.map('Lake Tahoe, California')\n",
502-
"m.add_layer(curvature_s)\n",
503-
"m.legend = True\n",
502+
"m.content.add(curvature_s)\n",
503+
"m.legend.enabled = True\n",
504504
"m"
505505
]
506506
},
@@ -580,8 +580,8 @@
580580
"outputs": [],
581581
"source": [
582582
"m = gis.map('Lake Tahoe, California')\n",
583-
"m.add_layer(lulc_c)\n",
584-
"m.legend = True\n",
583+
"m.content.add(lulc_c)\n",
584+
"m.legend.enabled = True\n",
585585
"m"
586586
]
587587
},
@@ -635,8 +635,8 @@
635635
"outputs": [],
636636
"source": [
637637
"m = gis.map('Lake Tahoe, California')\n",
638-
"m.add_layer(avalanche_risk_map)\n",
639-
"m.legend = True\n",
638+
"m.content.add(avalanche_risk_map)\n",
639+
"m.legend.enabled = True\n",
640640
"m"
641641
]
642642
},
@@ -661,8 +661,8 @@
661661
"outputs": [],
662662
"source": [
663663
"m = gis.map('Lake Tahoe, California')\n",
664-
"m.add_layer(avalanche_risk_map)\n",
665-
"m.legend = True\n",
664+
"m.content.add(avalanche_risk_map)\n",
665+
"m.legend.enabled = True\n",
666666
"m"
667667
]
668668
},

0 commit comments

Comments
 (0)