|
41 | 41 | "import pandas as pd\n",
|
42 | 42 | "\n",
|
43 | 43 | "# create a Web GIS object\n",
|
44 |
| - "gis = GIS(profile='your_enterprise_profile')" |
| 44 | + "gis = GIS('https://pythonapi.playground.esri.com/portal', 'arcgis_python', 'amazing_arcgis_123')" |
45 | 45 | ]
|
46 | 46 | },
|
47 | 47 | {
|
|
118 | 118 | " </a>\n",
|
119 | 119 | " <br/>Fires in Southern California active during 2016-2017.<img src='https://pythonapi.playground.esri.com/portal/home/js/jsapi/esri/css/images/item_type_icons/featureshosted16.png' style=\"vertical-align:middle;\" width=16 height=16>Feature Layer Collection by api_data_owner\n",
|
120 | 120 | " <br/>Last Modified: December 19, 2023\n",
|
121 |
| - " <br/>0 comments, 5 views\n", |
| 121 | + " <br/>0 comments, 6 views\n", |
122 | 122 | " </div>\n",
|
123 | 123 | " </div>\n",
|
124 | 124 | " "
|
|
145 | 145 | " </a>\n",
|
146 | 146 | " <br/>Essential facilities to public health and safety in Southern California.<img src='https://pythonapi.playground.esri.com/portal/home/js/jsapi/esri/css/images/item_type_icons/featureshosted16.png' style=\"vertical-align:middle;\" width=16 height=16>Feature Layer Collection by api_data_owner\n",
|
147 | 147 | " <br/>Last Modified: December 19, 2023\n",
|
148 |
| - " <br/>0 comments, 5 views\n", |
| 148 | + " <br/>0 comments, 6 views\n", |
149 | 149 | " </div>\n",
|
150 | 150 | " </div>\n",
|
151 | 151 | " "
|
|
172 | 172 | " </a>\n",
|
173 | 173 | " <br/>A Web Map with critical infrastructure at risk from fires.<img src='https://pythonapi.playground.esri.com/portal/home/js/jsapi/esri/css/images/item_type_icons/maps16.png' style=\"vertical-align:middle;\" width=16 height=16>Web Map by api_data_owner\n",
|
174 | 174 | " <br/>Last Modified: December 20, 2023\n",
|
175 |
| - " <br/>0 comments, 3 views\n", |
| 175 | + " <br/>0 comments, 5 views\n", |
176 | 176 | " </div>\n",
|
177 | 177 | " </div>\n",
|
178 | 178 | " "
|
|
206 | 206 | "metadata": {},
|
207 | 207 | "outputs": [
|
208 | 208 | {
|
209 |
| - "data": { |
210 |
| - "application/vnd.jupyter.widget-view+json": { |
211 |
| - "model_id": "2d944e6e4d3b45b7944ac0a1c901309a", |
212 |
| - "version_major": 2, |
213 |
| - "version_minor": 0 |
214 |
| - }, |
215 |
| - "text/plain": [ |
216 |
| - "MapView(layout=Layout(height='400px', width='100%'))" |
217 |
| - ] |
218 |
| - }, |
219 |
| - "metadata": {}, |
220 |
| - "output_type": "display_data" |
221 |
| - }, |
222 |
| - { |
223 |
| - "data": { |
224 |
| - "text/html": [ |
225 |
| - "<div class=\"map-static-img-preview-2e9a957a-63da-46ec-9e4b-795aa0614e6a\"><img src=\"\"></img></div>" |
226 |
| - ], |
227 |
| - "text/plain": [ |
228 |
| - "<IPython.core.display.HTML object>" |
229 |
| - ] |
230 |
| - }, |
231 |
| - "metadata": {}, |
232 |
| - "output_type": "display_data" |
233 |
| - }, |
234 |
| - { |
235 |
| - "data": { |
236 |
| - "text/html": [ |
237 |
| - "<div class=\"map-html-embed-preview-2e9a957a-63da-46ec-9e4b-795aa0614e6a\"></div>" |
238 |
| - ], |
239 |
| - "text/plain": [ |
240 |
| - "<IPython.core.display.HTML object>" |
241 |
| - ] |
242 |
| - }, |
243 |
| - "metadata": {}, |
244 |
| - "output_type": "display_data" |
| 209 | + "name": "stdout", |
| 210 | + "output_type": "stream", |
| 211 | + "text": [ |
| 212 | + "\n" |
| 213 | + ] |
245 | 214 | }
|
246 | 215 | ],
|
247 | 216 | "source": [
|
|
300 | 269 | "metadata": {},
|
301 | 270 | "outputs": [
|
302 | 271 | {
|
303 |
| - "data": { |
304 |
| - "application/vnd.jupyter.widget-view+json": { |
305 |
| - "model_id": "ce906a33b8b44d31b008cfe6a242a5a2", |
306 |
| - "version_major": 2, |
307 |
| - "version_minor": 0 |
308 |
| - }, |
309 |
| - "text/plain": [ |
310 |
| - "MapView(layout=Layout(height='400px', width='100%'))" |
311 |
| - ] |
312 |
| - }, |
313 |
| - "metadata": {}, |
314 |
| - "output_type": "display_data" |
315 |
| - }, |
316 |
| - { |
317 |
| - "data": { |
318 |
| - "text/html": [ |
319 |
| - "<div class=\"map-static-img-preview-80401bd3-8064-4305-ab3b-451fd59a42d7\"><img src=\"\"></img></div>" |
320 |
| - ], |
321 |
| - "text/plain": [ |
322 |
| - "<IPython.core.display.HTML object>" |
323 |
| - ] |
324 |
| - }, |
325 |
| - "metadata": {}, |
326 |
| - "output_type": "display_data" |
327 |
| - }, |
328 |
| - { |
329 |
| - "data": { |
330 |
| - "text/html": [ |
331 |
| - "<div class=\"map-html-embed-preview-80401bd3-8064-4305-ab3b-451fd59a42d7\"></div>" |
332 |
| - ], |
333 |
| - "text/plain": [ |
334 |
| - "<IPython.core.display.HTML object>" |
335 |
| - ] |
336 |
| - }, |
337 |
| - "metadata": {}, |
338 |
| - "output_type": "display_data" |
| 272 | + "name": "stdout", |
| 273 | + "output_type": "stream", |
| 274 | + "text": [ |
| 275 | + "\n" |
| 276 | + ] |
339 | 277 | }
|
340 | 278 | ],
|
341 | 279 | "source": [
|
|
394 | 332 | "cell_type": "markdown",
|
395 | 333 | "metadata": {},
|
396 | 334 | "source": [
|
397 |
| - "The output layer is private by default. To share it with particular groups, members within the org, or everyone, we can use the `Item.share()` method. The code below shares it to everyone (public):" |
| 335 | + "The output layer is private by default. To share it with particular groups, members within the org, or everyone, we can use the `Item.sharing.sharing_level` property. The code below shares it to `'EVERYONE'` (public):" |
398 | 336 | ]
|
399 | 337 | },
|
400 | 338 | {
|
|
476 | 414 | {
|
477 | 415 | "data": {
|
478 | 416 | "text/plain": [
|
479 |
| - "[<FeatureLayer url:\"https://pythonapi.playground.esri.com/server/rest/services/Hosted/At_Risk_Infrastructure_2024_05_01_19_18_33/FeatureServer/0\">]" |
| 417 | + "[<FeatureLayer url:\"https://pythonapi.playground.esri.com/server/rest/services/Hosted/At_Risk_Infrastructure_2024_05_07_18_41_36/FeatureServer/0\">]" |
480 | 418 | ]
|
481 | 419 | },
|
482 | 420 | "execution_count": 16,
|
|
943 | 881 | "metadata": {},
|
944 | 882 | "outputs": [
|
945 | 883 | {
|
946 |
| - "data": { |
947 |
| - "application/vnd.jupyter.widget-view+json": { |
948 |
| - "model_id": "3d72d0b5025f465f958c903cfd6634c4", |
949 |
| - "version_major": 2, |
950 |
| - "version_minor": 0 |
951 |
| - }, |
952 |
| - "text/plain": [ |
953 |
| - "MapView(layout=Layout(height='400px', width='100%'))" |
954 |
| - ] |
955 |
| - }, |
956 |
| - "metadata": {}, |
957 |
| - "output_type": "display_data" |
958 |
| - }, |
959 |
| - { |
960 |
| - "data": { |
961 |
| - "text/html": [ |
962 |
| - "<div class=\"map-static-img-preview-d0ff601f-e433-4806-92a3-24eecb35a384\"><img src=\"\"></img></div>" |
963 |
| - ], |
964 |
| - "text/plain": [ |
965 |
| - "<IPython.core.display.HTML object>" |
966 |
| - ] |
967 |
| - }, |
968 |
| - "metadata": {}, |
969 |
| - "output_type": "display_data" |
970 |
| - }, |
971 |
| - { |
972 |
| - "data": { |
973 |
| - "text/html": [ |
974 |
| - "<div class=\"map-html-embed-preview-d0ff601f-e433-4806-92a3-24eecb35a384\"></div>" |
975 |
| - ], |
976 |
| - "text/plain": [ |
977 |
| - "<IPython.core.display.HTML object>" |
978 |
| - ] |
979 |
| - }, |
980 |
| - "metadata": {}, |
981 |
| - "output_type": "display_data" |
| 884 | + "name": "stdout", |
| 885 | + "output_type": "stream", |
| 886 | + "text": [ |
| 887 | + "\n" |
| 888 | + ] |
982 | 889 | }
|
983 | 890 | ],
|
984 | 891 | "source": [
|
|
1049 | 956 | " </a>\n",
|
1050 | 957 | " <br/>A Web Map with critical infrastructure at risk from fires.<img src='https://pythonapi.playground.esri.com/portal/home/js/jsapi/esri/css/images/item_type_icons/maps16.png' style=\"vertical-align:middle;\" width=16 height=16>Web Map by api_data_owner\n",
|
1051 | 958 | " <br/>Last Modified: December 20, 2023\n",
|
1052 |
| - " <br/>0 comments, 3 views\n", |
| 959 | + " <br/>0 comments, 5 views\n", |
1053 | 960 | " </div>\n",
|
1054 | 961 | " </div>\n",
|
1055 | 962 | " "
|
|
1108 | 1015 | {
|
1109 | 1016 | "data": {
|
1110 | 1017 | "text/plain": [
|
1111 |
| - "'https://pythonapi.playground.esri.com/server/rest/services/Hosted/At_Risk_Infrastructure_2024_05_01_19_18_33/FeatureServer/0'" |
| 1018 | + "'https://pythonapi.playground.esri.com/server/rest/services/Hosted/At_Risk_Infrastructure_2024_05_07_18_41_36/FeatureServer/0'" |
1112 | 1019 | ]
|
1113 | 1020 | },
|
1114 | 1021 | "execution_count": 26,
|
|
1153 | 1060 | },
|
1154 | 1061 | {
|
1155 | 1062 | "cell_type": "code",
|
1156 |
| - "execution_count": 29, |
| 1063 | + "execution_count": 28, |
1157 | 1064 | "metadata": {},
|
1158 | 1065 | "outputs": [
|
1159 | 1066 | {
|
1160 |
| - "data": { |
1161 |
| - "application/vnd.jupyter.widget-view+json": { |
1162 |
| - "model_id": "5bd88785e8ed4779a2c10a4fc2b70f94", |
1163 |
| - "version_major": 2, |
1164 |
| - "version_minor": 0 |
1165 |
| - }, |
1166 |
| - "text/plain": [ |
1167 |
| - "MapView(layout=Layout(height='400px', width='100%'))" |
1168 |
| - ] |
1169 |
| - }, |
1170 |
| - "metadata": {}, |
1171 |
| - "output_type": "display_data" |
1172 |
| - }, |
1173 |
| - { |
1174 |
| - "data": { |
1175 |
| - "text/html": [ |
1176 |
| - "<div class=\"map-static-img-preview-75cac55c-d38f-4a23-874e-ef577010e3be\"><img src=\"\"></img></div>" |
1177 |
| - ], |
1178 |
| - "text/plain": [ |
1179 |
| - "<IPython.core.display.HTML object>" |
1180 |
| - ] |
1181 |
| - }, |
1182 |
| - "metadata": {}, |
1183 |
| - "output_type": "display_data" |
1184 |
| - }, |
1185 |
| - { |
1186 |
| - "data": { |
1187 |
| - "text/html": [ |
1188 |
| - "<div class=\"map-html-embed-preview-75cac55c-d38f-4a23-874e-ef577010e3be\"></div>" |
1189 |
| - ], |
1190 |
| - "text/plain": [ |
1191 |
| - "<IPython.core.display.HTML object>" |
1192 |
| - ] |
1193 |
| - }, |
1194 |
| - "metadata": {}, |
1195 |
| - "output_type": "display_data" |
| 1067 | + "name": "stdout", |
| 1068 | + "output_type": "stream", |
| 1069 | + "text": [ |
| 1070 | + "\n" |
| 1071 | + ] |
1196 | 1072 | }
|
1197 | 1073 | ],
|
1198 | 1074 | "source": [
|
|
1214 | 1090 | },
|
1215 | 1091 | {
|
1216 | 1092 | "cell_type": "code",
|
1217 |
| - "execution_count": 30, |
| 1093 | + "execution_count": 29, |
1218 | 1094 | "metadata": {},
|
1219 | 1095 | "outputs": [],
|
1220 | 1096 | "source": [
|
|
1223 | 1099 | },
|
1224 | 1100 | {
|
1225 | 1101 | "cell_type": "code",
|
1226 |
| - "execution_count": 31, |
| 1102 | + "execution_count": 30, |
1227 | 1103 | "metadata": {},
|
1228 | 1104 | "outputs": [
|
1229 | 1105 | {
|
|
1241 | 1117 | " </a>\n",
|
1242 | 1118 | " <br/><img src='https://pythonapi.playground.esri.com/portal/home/js/jsapi/esri/css/images/item_type_icons/featureshosted16.png' style=\"vertical-align:middle;\" width=16 height=16>Feature Layer Collection by api_data_owner\n",
|
1243 | 1119 | " <br/>Last Modified: December 19, 2023\n",
|
1244 |
| - " <br/>0 comments, 11 views\n", |
| 1120 | + " <br/>0 comments, 12 views\n", |
1245 | 1121 | " </div>\n",
|
1246 | 1122 | " </div>\n",
|
1247 | 1123 | " "
|
|
1250 | 1126 | "<Item title:\"At_Risk_Infrastructure_source\" type:Feature Layer Collection owner:api_data_owner>"
|
1251 | 1127 | ]
|
1252 | 1128 | },
|
1253 |
| - "execution_count": 31, |
| 1129 | + "execution_count": 30, |
1254 | 1130 | "metadata": {},
|
1255 | 1131 | "output_type": "execute_result"
|
1256 | 1132 | }
|
|
1262 | 1138 | },
|
1263 | 1139 | {
|
1264 | 1140 | "cell_type": "code",
|
1265 |
| - "execution_count": 32, |
| 1141 | + "execution_count": 31, |
1266 | 1142 | "metadata": {},
|
1267 | 1143 | "outputs": [],
|
1268 | 1144 | "source": [
|
|
1271 | 1147 | },
|
1272 | 1148 | {
|
1273 | 1149 | "cell_type": "code",
|
1274 |
| - "execution_count": 33, |
| 1150 | + "execution_count": 32, |
1275 | 1151 | "metadata": {},
|
1276 | 1152 | "outputs": [],
|
1277 | 1153 | "source": [
|
|
0 commit comments