Skip to content

Commit

Permalink
adjust zoom
Browse files Browse the repository at this point in the history
  • Loading branch information
cboettig committed Dec 19, 2023
1 parent 26deccf commit 186b0eb
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 17 deletions.
4 changes: 2 additions & 2 deletions pages/01_leafmap.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
from osgeo import gdal
import matplotlib.pyplot as plt

zoom = solara.reactive(8)
center = solara.reactive((34, -114))
zoom = solara.reactive(14)
center = solara.reactive((34, -116))

nps = gpd.read_file("/vsicurl/https://huggingface.co/datasets/cboettig/biodiversity/resolve/main/data/NPS.gdb")
calfire = gpd.read_file("/vsicurl/https://huggingface.co/datasets/cboettig/biodiversity/resolve/main/data/fire22_1.gdb", layer = "firep22_1")
Expand Down
30 changes: 15 additions & 15 deletions solara-test.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"cells": [
{
"cell_type": "code",
"execution_count": 2,
"execution_count": 1,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -20,23 +20,23 @@
},
{
"cell_type": "code",
"execution_count": 3,
"execution_count": 2,
"metadata": {},
"outputs": [],
"source": [
"\n",
"# Stashed public copies of NPS polygons and CalFire polygons\n",
"\n",
"\n",
"zoom = solara.reactive(8)\n",
"center = solara.reactive((34, -114))\n",
"zoom = solara.reactive(14)\n",
"center = solara.reactive((34, -116))\n",
"nps = gpd.read_file(\"/vsicurl/https://huggingface.co/datasets/cboettig/biodiversity/resolve/main/data/NPS.gdb\")\n",
"calfire = gpd.read_file(\"/vsicurl/https://huggingface.co/datasets/cboettig/biodiversity/resolve/main/data/fire22_1.gdb\", layer = \"firep22_1\")\n"
]
},
{
"cell_type": "code",
"execution_count": 4,
"execution_count": 3,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -59,7 +59,7 @@
},
{
"cell_type": "code",
"execution_count": 5,
"execution_count": 4,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -71,7 +71,7 @@
},
{
"cell_type": "code",
"execution_count": 6,
"execution_count": 5,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -81,7 +81,7 @@
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 6,
"metadata": {},
"outputs": [],
"source": [
Expand Down Expand Up @@ -128,7 +128,7 @@
},
{
"cell_type": "code",
"execution_count": 11,
"execution_count": 7,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -139,18 +139,18 @@
},
{
"cell_type": "code",
"execution_count": 16,
"execution_count": 8,
"metadata": {},
"outputs": [],
"source": [
"\n",
"before_url = \"/vsicurl/https://huggingface.co/datasets/cboettig/solara-data/resolve/main/before.tif\"\n",
"after_url = \"/vsicurl/https://huggingface.co/datasets/cboettig/solara-data/resolve/main/after.tif\"\n"
"before_url = \"https://huggingface.co/datasets/cboettig/solara-data/resolve/main/before.tif\"\n",
"after_url = \"https://huggingface.co/datasets/cboettig/solara-data/resolve/main/after.tif\"\n"
]
},
{
"cell_type": "code",
"execution_count": 14,
"execution_count": 9,
"metadata": {},
"outputs": [],
"source": [
Expand Down Expand Up @@ -190,13 +190,13 @@
},
{
"cell_type": "code",
"execution_count": 15,
"execution_count": 10,
"metadata": {},
"outputs": [
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "b0f148fc3c664528a23eeec53cec6a03",
"model_id": "b59035e5df2a4f5eb4ab5d2de9243664",
"version_major": 2,
"version_minor": 0
},
Expand Down

0 comments on commit 186b0eb

Please sign in to comment.