Skip to content

Commit

Permalink
Fixed docs build error opengeos#91
Browse files Browse the repository at this point in the history
  • Loading branch information
giswqs committed Aug 4, 2021
1 parent f5b2128 commit 9390144
Show file tree
Hide file tree
Showing 2 changed files with 76 additions and 74 deletions.
75 changes: 38 additions & 37 deletions docs/notebooks/22_time_slider.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -2,122 +2,123 @@
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"[![image](https://binder.pangeo.io/badge_logo.svg)](https://gishub.org/leafmap-pangeo)\n",
"\n",
"**Using time slider for visualizing timeseries images**\n",
"\n",
"Uncomment the following line to install [leafmap](https://leafmap.org) if needed."
]
],
"metadata": {}
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"# !pip install leafmap"
]
],
"outputs": [],
"metadata": {}
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"This notebook requires the ipyleaflet plotting backend. Folium is not supported."
]
],
"metadata": {}
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"from leafmap import leafmap"
]
],
"outputs": [],
"metadata": {}
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"First, you need to sign up a Planet account and get an API key. See https://developers.planet.com/quickstart/apis.\n",
"Uncomment the following line to pass in your API key."
]
],
"metadata": {}
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"# os.environ[\"PLANET_API_KEY\"] = \"12345\""
]
],
"outputs": [],
"metadata": {}
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"![](https://i.imgur.com/ipVJ4cb.gif)"
]
],
"metadata": {}
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"Specify the map center and zoom level. "
]
],
"metadata": {}
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"scrolled": false
},
"outputs": [],
"source": [
"m = leafmap.Map(center=[38.2659, -103.2447], zoom=13)\n",
"m"
]
],
"outputs": [],
"metadata": {
"scrolled": false
}
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"Use the time slider to visualize Planet quarterly mosaic."
]
],
"metadata": {}
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"m = leafmap.Map()\n",
"layers_dict = leafmap.planet_quarterly_tiles()\n",
"m.add_time_slider(layers_dict, time_interval=1)\n",
"m"
]
],
"outputs": [],
"metadata": {}
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"Use the time slider to visualize basemaps."
]
],
"metadata": {}
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"scrolled": false
},
"outputs": [],
"source": [
"m = leafmap.Map()\n",
"m.clear_layers()\n",
"layers_dict = leafmap.basemap_xyz_tiles()\n",
"m.add_time_slider(layers_dict, time_interval=1)\n",
"m"
]
],
"outputs": [],
"metadata": {
"scrolled": false
}
}
],
"metadata": {
Expand Down Expand Up @@ -184,4 +185,4 @@
},
"nbformat": 4,
"nbformat_minor": 4
}
}
75 changes: 38 additions & 37 deletions examples/notebooks/22_time_slider.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -2,122 +2,123 @@
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"[![image](https://binder.pangeo.io/badge_logo.svg)](https://gishub.org/leafmap-pangeo)\n",
"\n",
"**Using time slider for visualizing timeseries images**\n",
"\n",
"Uncomment the following line to install [leafmap](https://leafmap.org) if needed."
]
],
"metadata": {}
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"# !pip install leafmap"
]
],
"outputs": [],
"metadata": {}
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"This notebook requires the ipyleaflet plotting backend. Folium is not supported."
]
],
"metadata": {}
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"from leafmap import leafmap"
]
],
"outputs": [],
"metadata": {}
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"First, you need to sign up a Planet account and get an API key. See https://developers.planet.com/quickstart/apis.\n",
"Uncomment the following line to pass in your API key."
]
],
"metadata": {}
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"# os.environ[\"PLANET_API_KEY\"] = \"12345\""
]
],
"outputs": [],
"metadata": {}
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"![](https://i.imgur.com/ipVJ4cb.gif)"
]
],
"metadata": {}
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"Specify the map center and zoom level. "
]
],
"metadata": {}
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"scrolled": false
},
"outputs": [],
"source": [
"m = leafmap.Map(center=[38.2659, -103.2447], zoom=13)\n",
"m"
]
],
"outputs": [],
"metadata": {
"scrolled": false
}
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"Use the time slider to visualize Planet quarterly mosaic."
]
],
"metadata": {}
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"m = leafmap.Map()\n",
"layers_dict = leafmap.planet_quarterly_tiles()\n",
"m.add_time_slider(layers_dict, time_interval=1)\n",
"m"
]
],
"outputs": [],
"metadata": {}
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"Use the time slider to visualize basemaps."
]
],
"metadata": {}
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"scrolled": false
},
"outputs": [],
"source": [
"m = leafmap.Map()\n",
"m.clear_layers()\n",
"layers_dict = leafmap.basemap_xyz_tiles()\n",
"m.add_time_slider(layers_dict, time_interval=1)\n",
"m"
]
],
"outputs": [],
"metadata": {
"scrolled": false
}
}
],
"metadata": {
Expand Down Expand Up @@ -184,4 +185,4 @@
},
"nbformat": 4,
"nbformat_minor": 4
}
}

0 comments on commit 9390144

Please sign in to comment.