|
2 | 2 | "cells": [
|
3 | 3 | {
|
4 | 4 | "cell_type": "code",
|
5 |
| - "execution_count": null, |
| 5 | + "execution_count": 1, |
6 | 6 | "id": "15eefe2f-7d1b-4814-9a5b-3b57df451fd7",
|
7 | 7 | "metadata": {},
|
8 |
| - "outputs": [], |
| 8 | + "outputs": [ |
| 9 | + { |
| 10 | + "name": "stderr", |
| 11 | + "output_type": "stream", |
| 12 | + "text": [ |
| 13 | + "/home/david/mambaforge/envs/xarray_leaflet/lib/python3.8/site-packages/geopandas/_compat.py:112: UserWarning: The Shapely GEOS version (3.10.3-CAPI-1.16.1) is incompatible with the GEOS version PyGEOS was compiled with (3.10.1-CAPI-1.16.0). Conversions between both will be slow.\n", |
| 14 | + " warnings.warn(\n" |
| 15 | + ] |
| 16 | + } |
| 17 | + ], |
9 | 18 | "source": [
|
10 | 19 | "import geopandas as gpd\n",
|
11 | 20 | "from ipyleaflet import LayersControl, Map, WidgetControl, basemaps\n",
|
|
27 | 36 | },
|
28 | 37 | {
|
29 | 38 | "cell_type": "code",
|
30 |
| - "execution_count": null, |
| 39 | + "execution_count": 2, |
31 | 40 | "id": "ab8cd637-be46-4953-96a8-edd918aeccf8",
|
32 | 41 | "metadata": {},
|
33 | 42 | "outputs": [],
|
|
38 | 47 | },
|
39 | 48 | {
|
40 | 49 | "cell_type": "code",
|
41 |
| - "execution_count": null, |
| 50 | + "execution_count": 3, |
42 | 51 | "id": "9b8d004d-bb98-4b00-8fbf-3940c5f6839f",
|
43 | 52 | "metadata": {},
|
44 |
| - "outputs": [], |
| 53 | + "outputs": [ |
| 54 | + { |
| 55 | + "data": { |
| 56 | + "application/vnd.jupyter.widget-view+json": { |
| 57 | + "model_id": "25fd77ee7c12407fb2bf9fa9ffda5802", |
| 58 | + "version_major": 2, |
| 59 | + "version_minor": 0 |
| 60 | + }, |
| 61 | + "text/plain": [ |
| 62 | + "Map(center=[40.74427755695474, -73.96981238541562], controls=(ZoomControl(options=['position', 'zoom_in_text',…" |
| 63 | + ] |
| 64 | + }, |
| 65 | + "metadata": {}, |
| 66 | + "output_type": "display_data" |
| 67 | + } |
| 68 | + ], |
45 | 69 | "source": [
|
46 | 70 | "m = Map(center=(40.74427755695474, -73.96981238541562), zoom=11, basemap=basemaps.CartoDB.DarkMatter, interpolation='nearest')\n",
|
47 | 71 | "m"
|
48 | 72 | ]
|
49 | 73 | },
|
50 | 74 | {
|
51 | 75 | "cell_type": "code",
|
52 |
| - "execution_count": null, |
| 76 | + "execution_count": 4, |
53 | 77 | "id": "1b8c5917-3d8c-468d-9455-0626f79c0746",
|
54 | 78 | "metadata": {},
|
55 |
| - "outputs": [], |
| 79 | + "outputs": [ |
| 80 | + { |
| 81 | + "data": { |
| 82 | + "application/vnd.jupyter.widget-view+json": { |
| 83 | + "model_id": "893bfe75b49c49118013d98992e52078", |
| 84 | + "version_major": 2, |
| 85 | + "version_minor": 0 |
| 86 | + }, |
| 87 | + "text/plain": [ |
| 88 | + "Url()" |
| 89 | + ] |
| 90 | + }, |
| 91 | + "metadata": {}, |
| 92 | + "output_type": "display_data" |
| 93 | + } |
| 94 | + ], |
56 | 95 | "source": [
|
57 | 96 | "l = df.leaflet.plot(m, measurement=\"mask\", colormap=plt.cm.inferno)"
|
58 | 97 | ]
|
|
94 | 133 | "name": "python",
|
95 | 134 | "nbconvert_exporter": "python",
|
96 | 135 | "pygments_lexer": "ipython3",
|
97 |
| - "version": "3.10.5" |
| 136 | + "version": "3.8.13" |
98 | 137 | }
|
99 | 138 | },
|
100 | 139 | "nbformat": 4,
|
|
0 commit comments