Skip to content

Commit

Permalink
Add more apps (#5)
Browse files Browse the repository at this point in the history
* Add more apps

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
giswqs and pre-commit-ci[bot] authored Aug 27, 2024
1 parent 192252f commit 7b68ac7
Show file tree
Hide file tree
Showing 12 changed files with 1,699 additions and 6 deletions.
9 changes: 9 additions & 0 deletions notebooks/01_basic.ipynb
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
{
"cells": [
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"# %pip install -U geemap solara"
]
},
{
"cell_type": "code",
"execution_count": null,
Expand Down
12 changes: 10 additions & 2 deletions notebooks/02_inspector.ipynb
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
{
"cells": [
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"# %pip install -U geemap solara"
]
},
{
"cell_type": "code",
"execution_count": null,
Expand All @@ -8,7 +17,6 @@
"source": [
"import ee\n",
"import geemap\n",
"\n",
"import solara\n",
"\n",
"\n",
Expand Down Expand Up @@ -47,7 +55,7 @@
"\n",
"@solara.component\n",
"def Page():\n",
" with solara.Column(style={\"min-width\": \"500px\"}):\n",
" with solara.Column(style={\"min-width\": \"500px\", \"isolation\": \"isolate\"}):\n",
" Map.element(\n",
" center=[40, -100],\n",
" zoom=4,\n",
Expand Down
12 changes: 10 additions & 2 deletions notebooks/03_plotting.ipynb
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
{
"cells": [
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"# %pip install -U geemap solara"
]
},
{
"cell_type": "code",
"execution_count": null,
Expand All @@ -8,7 +17,6 @@
"source": [
"import ee\n",
"import geemap\n",
"\n",
"import solara\n",
"\n",
"\n",
Expand Down Expand Up @@ -40,7 +48,7 @@
"\n",
"@solara.component\n",
"def Page():\n",
" with solara.Column(style={\"min-width\": \"500px\"}):\n",
" with solara.Column(style={\"min-width\": \"500px\", \"isolation\": \"isolate\"}):\n",
" Map.element(\n",
" center=[40, -100],\n",
" zoom=4,\n",
Expand Down
12 changes: 10 additions & 2 deletions notebooks/04_split_map.ipynb
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
{
"cells": [
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"# %pip install -U geemap solara"
]
},
{
"cell_type": "code",
"execution_count": null,
Expand All @@ -8,7 +17,6 @@
"source": [
"import ee\n",
"import geemap\n",
"\n",
"import solara\n",
"\n",
"\n",
Expand Down Expand Up @@ -58,7 +66,7 @@
"\n",
"@solara.component\n",
"def Page():\n",
" with solara.Column(style={\"min-width\": \"500px\"}):\n",
" with solara.Column(style={\"min-width\": \"500px\", \"isolation\": \"isolate\"}):\n",
" Map.element(\n",
" center=[40, -100],\n",
" zoom=4,\n",
Expand Down
72 changes: 72 additions & 0 deletions notebooks/05_timelapse.ipynb
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
{
"cells": [
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"# %pip install -U geemap solara"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"import geemap\n",
"import solara\n",
"\n",
"\n",
"class Map(geemap.Map):\n",
" def __init__(self, **kwargs):\n",
" super().__init__(**kwargs)\n",
" self.add_basemap(\"Esri.WorldImagery\")\n",
" self.add_gui(\"timelapse\", basemap=None)\n",
"\n",
"\n",
"@solara.component\n",
"def Page():\n",
" with solara.Column(style={\"min-width\": \"500px\", \"isolation\": \"isolate\"}):\n",
" Map.element(\n",
" center=[20, -0],\n",
" zoom=2,\n",
" height=\"750px\",\n",
" zoom_ctrl=False,\n",
" measure_ctrl=False,\n",
" )"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"Page()"
]
}
],
"metadata": {
"kernelspec": {
"display_name": "geo",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.11.8"
}
},
"nbformat": 4,
"nbformat_minor": 2
}
Loading

0 comments on commit 7b68ac7

Please sign in to comment.