|
264 | 264 | },
|
265 | 265 | {
|
266 | 266 | "cell_type": "code",
|
267 |
| - "execution_count": 8, |
| 267 | + "execution_count": null, |
268 | 268 | "metadata": {
|
269 | 269 | "scrolled": false
|
270 | 270 | },
|
271 |
| - "outputs": [ |
272 |
| - { |
273 |
| - "data": { |
274 |
| - "application/vnd.jupyter.widget-view+json": { |
275 |
| - "model_id": "04cfd1d1958548ff82f2bff643ddc46e", |
276 |
| - "version_major": 2, |
277 |
| - "version_minor": 0 |
278 |
| - }, |
279 |
| - "text/plain": [ |
280 |
| - "MapView(layout=Layout(height='400px', width='100%'))" |
281 |
| - ] |
282 |
| - }, |
283 |
| - "metadata": {}, |
284 |
| - "output_type": "display_data" |
285 |
| - }, |
286 |
| - { |
287 |
| - "data": { |
288 |
| - "text/html": [ |
289 |
| - "<div class=\"map-static-img-preview-4f0f1172-7d2c-42de-9e54-ca39044503b3\"><img src=\"\"></img></div>" |
290 |
| - ], |
291 |
| - "text/plain": [ |
292 |
| - "<IPython.core.display.HTML object>" |
293 |
| - ] |
294 |
| - }, |
295 |
| - "metadata": {}, |
296 |
| - "output_type": "display_data" |
297 |
| - }, |
298 |
| - { |
299 |
| - "data": { |
300 |
| - "text/html": [ |
301 |
| - "<div class=\"map-html-embed-preview-4f0f1172-7d2c-42de-9e54-ca39044503b3\"></div>" |
302 |
| - ], |
303 |
| - "text/plain": [ |
304 |
| - "<IPython.core.display.HTML object>" |
305 |
| - ] |
306 |
| - }, |
307 |
| - "metadata": {}, |
308 |
| - "output_type": "display_data" |
309 |
| - } |
310 |
| - ], |
| 271 | + "outputs": [], |
311 | 272 | "source": [
|
312 | 273 | "m1 = gis.map('oregon')\n",
|
313 |
| - "m1.basemap = 'arcgis-light-gray'\n", |
| 274 | + "m1.basemap.basemap = 'gray-vector'\n", |
314 | 275 | "m1"
|
315 | 276 | ]
|
316 | 277 | },
|
|
328 | 289 | "outputs": [],
|
329 | 290 | "source": [
|
330 | 291 | "m1.zoom_to_layer(state_park)\n",
|
331 |
| - "m1.add_layer(state_park)" |
| 292 | + "m1.content.add(state_park)" |
332 | 293 | ]
|
333 | 294 | },
|
334 | 295 | {
|
|
465 | 426 | ],
|
466 | 427 | "source": [
|
467 | 428 | "m2 = gis.map('oregon')\n",
|
468 |
| - "m2.basemap = 'arcgis-light-gray'\n", |
| 429 | + "m2.basemap.basemap = 'gray-vector'\n", |
469 | 430 | "m2"
|
470 | 431 | ]
|
471 | 432 | },
|
|
484 | 445 | "outputs": [],
|
485 | 446 | "source": [
|
486 | 447 | "m2.zoom_to_layer(buffer_park.layers[0])\n",
|
487 |
| - "m2.add_layer(buffer_park.layers[0])" |
| 448 | + "m2.content.add(buffer_park.layers[0])" |
488 | 449 | ]
|
489 | 450 | },
|
490 | 451 | {
|
|
582 | 543 | },
|
583 | 544 | {
|
584 | 545 | "cell_type": "code",
|
585 |
| - "execution_count": 17, |
| 546 | + "execution_count": null, |
586 | 547 | "metadata": {
|
587 | 548 | "scrolled": false
|
588 | 549 | },
|
589 |
| - "outputs": [ |
590 |
| - { |
591 |
| - "data": { |
592 |
| - "application/vnd.jupyter.widget-view+json": { |
593 |
| - "model_id": "9eb4029722584b1db08a6a4fb15074d8", |
594 |
| - "version_major": 2, |
595 |
| - "version_minor": 0 |
596 |
| - }, |
597 |
| - "text/plain": [ |
598 |
| - "MapView(layout=Layout(height='400px', width='100%'))" |
599 |
| - ] |
600 |
| - }, |
601 |
| - "metadata": {}, |
602 |
| - "output_type": "display_data" |
603 |
| - }, |
604 |
| - { |
605 |
| - "data": { |
606 |
| - "text/html": [ |
607 |
| - "<div class=\"map-static-img-preview-e0ad5959-2704-4011-92fe-e67fef8725ad\"><img src=\"\"></img></div>" |
608 |
| - ], |
609 |
| - "text/plain": [ |
610 |
| - "<IPython.core.display.HTML object>" |
611 |
| - ] |
612 |
| - }, |
613 |
| - "metadata": {}, |
614 |
| - "output_type": "display_data" |
615 |
| - }, |
616 |
| - { |
617 |
| - "data": { |
618 |
| - "text/html": [ |
619 |
| - "<div class=\"map-html-embed-preview-e0ad5959-2704-4011-92fe-e67fef8725ad\"></div>" |
620 |
| - ], |
621 |
| - "text/plain": [ |
622 |
| - "<IPython.core.display.HTML object>" |
623 |
| - ] |
624 |
| - }, |
625 |
| - "metadata": {}, |
626 |
| - "output_type": "display_data" |
627 |
| - } |
628 |
| - ], |
| 550 | + "outputs": [], |
629 | 551 | "source": [
|
630 | 552 | "m3 = gis.map('oregon')\n",
|
631 |
| - "m3.basemap = 'arcgis-light-gray'\n", |
| 553 | + "m3.basemap.basemap = 'gray-vector'\n", |
632 | 554 | "m3"
|
633 | 555 | ]
|
634 | 556 | },
|
|
647 | 569 | "outputs": [],
|
648 | 570 | "source": [
|
649 | 571 | "m3.zoom_to_layer(state_area_boundary.layers[0])\n",
|
650 |
| - "m3.add_layer(state_area_boundary.layers[0])" |
| 572 | + "m3.content.add(state_area_boundary.layers[0])" |
651 | 573 | ]
|
652 | 574 | },
|
653 | 575 | {
|
|
831 | 753 | ],
|
832 | 754 | "source": [
|
833 | 755 | "m4 = gis.map('oregon')\n",
|
834 |
| - "m4.basemap = 'arcgis-light-gray'\n", |
| 756 | + "m4.basemap.basemap = 'gray-vector'\n", |
835 | 757 | "m4"
|
836 | 758 | ]
|
837 | 759 | },
|
|
849 | 771 | "outputs": [],
|
850 | 772 | "source": [
|
851 | 773 | "m4.zoom_to_layer(clipped_highway_lyr)\n",
|
852 |
| - "m4.add_layer(state_area_boundary)\n", |
853 |
| - "m4.add_layer(clipped_highway_lyr)" |
| 774 | + "m4.content.add(state_area_boundary)\n", |
| 775 | + "m4.content.add(clipped_highway_lyr)" |
854 | 776 | ]
|
855 | 777 | },
|
856 | 778 | {
|
|
998 | 920 | ],
|
999 | 921 | "source": [
|
1000 | 922 | "m5 = gis.map('oregon')\n",
|
1001 |
| - "m5.basemap = 'arcgis-light-gray'\n", |
| 923 | + "m5.basemap.basemap = 'gray-vector'\n", |
1002 | 924 | "m5"
|
1003 | 925 | ]
|
1004 | 926 | },
|
|
1017 | 939 | "outputs": [],
|
1018 | 940 | "source": [
|
1019 | 941 | "m5.zoom_to_layer(potential_cougar_habitat_A.layers[0])\n",
|
1020 |
| - "m5.add_layer(potential_cougar_habitat_A)" |
| 942 | + "m5.content.add(potential_cougar_habitat_A)" |
1021 | 943 | ]
|
1022 | 944 | },
|
1023 | 945 | {
|
|
1122 | 1044 | ],
|
1123 | 1045 | "source": [
|
1124 | 1046 | "m6 = gis.map('oregon')\n",
|
1125 |
| - "m6.basemap = 'arcgis-light-gray'\n", |
| 1047 | + "m6.basemap.basemap = 'gray-vector'\n", |
1126 | 1048 | "m6"
|
1127 | 1049 | ]
|
1128 | 1050 | },
|
|
1141 | 1063 | "outputs": [],
|
1142 | 1064 | "source": [
|
1143 | 1065 | "m6.zoom_to_layer(potential_cougar_habitat_B.layers[0])\n",
|
1144 |
| - "m6.add_layer(potential_cougar_habitat_B)" |
| 1066 | + "m6.content.add(potential_cougar_habitat_B)" |
1145 | 1067 | ]
|
1146 | 1068 | },
|
1147 | 1069 | {
|
|
0 commit comments