Skip to content

Commit c648a8c

Browse files
committed
Fix overwrite sample
1 parent 366b1ec commit c648a8c

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

samples/05_content_publishers/overwriting_feature_layers.ipynb

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,8 @@
330330
"source": [
331331
"# add the csv as an item\n",
332332
"item_prop = {'title':'USA Capitals spreadsheet_' + str(now)}\n",
333-
"csv_item = gis.content.add(item_properties=item_prop, data=my_csv)\n",
333+
"root_folder = gis.content.folders.get()\n",
334+
"csv_item = root_folder.add(item_properties=item_prop, file=my_csv)\n",
334335
"csv_item"
335336
]
336337
},
@@ -474,7 +475,7 @@
474475
"metadata": {},
475476
"outputs": [],
476477
"source": [
477-
"map1.add_layer(cities_item)"
478+
"map1.content.add(cities_item)"
478479
]
479480
},
480481
{
@@ -978,7 +979,7 @@
978979
"metadata": {},
979980
"outputs": [],
980981
"source": [
981-
"map2.add_layer(cities_item)"
982+
"map2.content.add(cities_item)"
982983
]
983984
},
984985
{

0 commit comments

Comments
 (0)