Skip to content

Commit 6e33fcb

Browse files
committed
updates
1 parent 98d2867 commit 6e33fcb

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

samples/05_content_publishers/publish_ogc_services.ipynb

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
"source": [
3434
"from arcgis.gis import GIS\n",
3535
"from arcgis.mapping.layers import WMTSLayer, WMSLayer\n",
36-
"from arcgis.mapping import WebMap\n",
36+
"from arcgis.map import Map\n",
3737
"\n",
3838
"gis = GIS(\"home\")"
3939
]
@@ -487,7 +487,7 @@
487487
" 'type': 'WMTS', \n",
488488
" 'typeKeywords': ['Data', 'OGC', 'Service', 'Web Map Tile Service']\n",
489489
" }\n",
490-
"item = root_folder.add(item_properties=dictItemData)"
490+
"item = root_folder.add(item_properties=dictItemData).result()"
491491
]
492492
},
493493
{
@@ -863,7 +863,7 @@
863863
" 'type': 'WMS', \n",
864864
" 'typeKeywords': ['Data', 'OGC', 'Service', 'Web Map Service']\n",
865865
" }\n",
866-
"wms_item = root_folder.add(item_properties=dictItemData)\n",
866+
"wms_item = root_folder.add(item_properties=dictItemData).result()\n",
867867
"wms_item.type"
868868
]
869869
},
@@ -1130,7 +1130,7 @@
11301130
" }\n",
11311131
"\n",
11321132
"root_folder = gis.content.folders.get()\n",
1133-
"wfs_item = root_folder.add(item_properties=dictItemData)\n",
1133+
"wfs_item = root_folder.add(item_properties=dictItemData).result()\n",
11341134
"wfs_item.type "
11351135
]
11361136
},
@@ -1221,7 +1221,7 @@
12211221
" \"tags\": \"erase, me\",\n",
12221222
" \"text\": json.dumps(wm2),\n",
12231223
" }\n",
1224-
" )"
1224+
" ).result()"
12251225
]
12261226
},
12271227
{

0 commit comments

Comments
 (0)