Skip to content

Commit

Permalink
update map methods
Browse files Browse the repository at this point in the history
  • Loading branch information
nanaeaubry committed Oct 22, 2024
1 parent 2849954 commit d1f3a9a
Showing 1 changed file with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,8 @@
"metadata": {},
"outputs": [],
"source": [
"gis = GIS('home')\n",
"ent_gis = GIS('https://pythonapi.playground.esri.com/portal', 'arcgis_python', 'amazing_arcgis_123')"
"gis = GIS(profile=\"your_online_profile\")\n",
"ent_gis = GIS(profile=\"your_enterprise_profile\")"
]
},
{
Expand Down Expand Up @@ -171,7 +171,7 @@
}
],
"source": [
"m = ent_gis.map(\"Kent county, Delaware\", 15)\n",
"m = ent_gis.map(\"Kent county, Delaware\")\n",
"m"
]
},
Expand All @@ -181,7 +181,7 @@
"metadata": {},
"outputs": [],
"source": [
"m.add_layer(world_imagery_layer)"
"m.content.add(world_imagery_layer)"
]
},
{
Expand All @@ -190,7 +190,7 @@
"metadata": {},
"outputs": [],
"source": [
"m.add_layer(label_layer)"
"m.content.add(label_layer)"
]
},
{
Expand Down Expand Up @@ -1003,7 +1003,7 @@
" model_arguments={\"padding\":100, \"batch_size\":16, \"predict_background\":True, \"test_time_augmentation\":True},\n",
" output_name = \"land_cover_sample_inference_result\"+str(datetime.now().microsecond),\n",
" context = context,\n",
" gis = ent_gis2)\n",
" gis = ent_gis)\n",
"out_classify"
]
},
Expand All @@ -1023,7 +1023,7 @@
"from arcgis.raster.functions import colormap\n",
"\n",
"result_map = ent_gis.map('Kent County, Delaware')\n",
"result_map.basemap = 'satellite'"
"result_map.basemap.basemap = 'satellite'"
]
},
{
Expand Down Expand Up @@ -1072,10 +1072,10 @@
}
],
"source": [
"result_map.add_layer(colormap(out_classify.layers[0], \n",
"result_map.content.add(colormap(out_classify.layers[0], \n",
" colormap = land_cover_colormap, \n",
" astype='u8'),\n",
" {'opacity':0.2})\n",
" options={'opacity':0.2})\n",
"result_map"
]
},
Expand Down

0 comments on commit d1f3a9a

Please sign in to comment.