Skip to content

Commit d1f3a9a

Browse files
committed
update map methods
1 parent 2849954 commit d1f3a9a

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

samples/04_gis_analysts_data_scientists/land_cover_classification_using_unet.ipynb

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,8 @@
7979
"metadata": {},
8080
"outputs": [],
8181
"source": [
82-
"gis = GIS('home')\n",
83-
"ent_gis = GIS('https://pythonapi.playground.esri.com/portal', 'arcgis_python', 'amazing_arcgis_123')"
82+
"gis = GIS(profile=\"your_online_profile\")\n",
83+
"ent_gis = GIS(profile=\"your_enterprise_profile\")"
8484
]
8585
},
8686
{
@@ -171,7 +171,7 @@
171171
}
172172
],
173173
"source": [
174-
"m = ent_gis.map(\"Kent county, Delaware\", 15)\n",
174+
"m = ent_gis.map(\"Kent county, Delaware\")\n",
175175
"m"
176176
]
177177
},
@@ -181,7 +181,7 @@
181181
"metadata": {},
182182
"outputs": [],
183183
"source": [
184-
"m.add_layer(world_imagery_layer)"
184+
"m.content.add(world_imagery_layer)"
185185
]
186186
},
187187
{
@@ -190,7 +190,7 @@
190190
"metadata": {},
191191
"outputs": [],
192192
"source": [
193-
"m.add_layer(label_layer)"
193+
"m.content.add(label_layer)"
194194
]
195195
},
196196
{
@@ -1003,7 +1003,7 @@
10031003
" model_arguments={\"padding\":100, \"batch_size\":16, \"predict_background\":True, \"test_time_augmentation\":True},\n",
10041004
" output_name = \"land_cover_sample_inference_result\"+str(datetime.now().microsecond),\n",
10051005
" context = context,\n",
1006-
" gis = ent_gis2)\n",
1006+
" gis = ent_gis)\n",
10071007
"out_classify"
10081008
]
10091009
},
@@ -1023,7 +1023,7 @@
10231023
"from arcgis.raster.functions import colormap\n",
10241024
"\n",
10251025
"result_map = ent_gis.map('Kent County, Delaware')\n",
1026-
"result_map.basemap = 'satellite'"
1026+
"result_map.basemap.basemap = 'satellite'"
10271027
]
10281028
},
10291029
{
@@ -1072,10 +1072,10 @@
10721072
}
10731073
],
10741074
"source": [
1075-
"result_map.add_layer(colormap(out_classify.layers[0], \n",
1075+
"result_map.content.add(colormap(out_classify.layers[0], \n",
10761076
" colormap = land_cover_colormap, \n",
10771077
" astype='u8'),\n",
1078-
" {'opacity':0.2})\n",
1078+
" options={'opacity':0.2})\n",
10791079
"result_map"
10801080
]
10811081
},

0 commit comments

Comments
 (0)