diff --git a/docs/notebooks/84_read_parquet.ipynb b/docs/notebooks/84_read_parquet.ipynb index 34c2b4c112..6e04d0a786 100644 --- a/docs/notebooks/84_read_parquet.ipynb +++ b/docs/notebooks/84_read_parquet.ipynb @@ -142,6 +142,20 @@ "leafmap.view_vector(gdf, get_fill_color=[0, 0, 255, 128])" ] }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "![vector](https://i.imgur.com/HRtpiVd.png)" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "Alternatively, you can specify a color map to visualize the data." + ] + }, { "cell_type": "code", "execution_count": null, @@ -169,6 +183,20 @@ "leafmap.view_vector(gdf, color_column='WETLAND_TYPE', color_map=color_map, opacity=0.5)" ] }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "![vector-color](https://i.imgur.com/Ejh8hK6.png)" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "Display a legend for the data." + ] + }, { "cell_type": "code", "execution_count": null, @@ -177,6 +205,13 @@ "source": [ "leafmap.Legend(title=\"Wetland Type\", legend_dict=color_map)" ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "![legend](https://i.imgur.com/fxzHHFN.png)" + ] } ], "metadata": { diff --git a/examples/notebooks/84_read_parquet.ipynb b/examples/notebooks/84_read_parquet.ipynb index 3cb1d73096..6e04d0a786 100644 --- a/examples/notebooks/84_read_parquet.ipynb +++ b/examples/notebooks/84_read_parquet.ipynb @@ -8,7 +8,7 @@ "[![image](https://studiolab.sagemaker.aws/studiolab.svg)](https://studiolab.sagemaker.aws/import/github/opengeos/leafmap/blob/master/examples/notebooks/84_read_parquet.ipynb)\n", "[![image](https://img.shields.io/badge/Open-Planetary%20Computer-black?style=flat&logo=microsoft)](https://pccompute.westeurope.cloudapp.azure.com/compute/hub/user-redirect/git-pull?repo=https://github.com/opengeos/leafmap&urlpath=lab/tree/leafmap/examples/notebooks/84_read_parquet.ipynb&branch=master)\n", "[![image](https://colab.research.google.com/assets/colab-badge.svg)](https://githubtocolab.com/opengeos/leafmap/blob/master/examples/notebooks/84_read_parquet.ipynb)\n", - "[![image](https://mybinder.org/badge_logo.svg)](https://gishub.org/leafmap-binder)\n", + "[![image](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/opengeos/leafmap/HEAD)\n", "\n", "**Reading GeoParquet files and visualizing vector data interactively**\n", "\n", @@ -142,6 +142,20 @@ "leafmap.view_vector(gdf, get_fill_color=[0, 0, 255, 128])" ] }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "![vector](https://i.imgur.com/HRtpiVd.png)" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "Alternatively, you can specify a color map to visualize the data." + ] + }, { "cell_type": "code", "execution_count": null, @@ -169,6 +183,20 @@ "leafmap.view_vector(gdf, color_column='WETLAND_TYPE', color_map=color_map, opacity=0.5)" ] }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "![vector-color](https://i.imgur.com/Ejh8hK6.png)" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "Display a legend for the data." + ] + }, { "cell_type": "code", "execution_count": null, @@ -177,6 +205,13 @@ "source": [ "leafmap.Legend(title=\"Wetland Type\", legend_dict=color_map)" ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "![legend](https://i.imgur.com/fxzHHFN.png)" + ] } ], "metadata": {