Skip to content

Instantly share code, notes, and snippets.

@manics
Last active July 2, 2022 20:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save manics/626496ed5c9b93e694ac006181e331ec to your computer and use it in GitHub Desktop.
Save manics/626496ed5c9b93e694ac006181e331ec to your computer and use it in GitHub Desktop.
Display the source blob
Display the rendered blob
Raw
{
"cells": [
{
"cell_type": "code",
"execution_count": null,
"id": "54f1f768-096a-401b-b206-8992ea0341e3",
"metadata": {},
"outputs": [],
"source": [
"from ipyleaflet import Map, basemaps, basemap_to_tiles"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "292f9d01-c55f-4146-b146-aa0222da9214",
"metadata": {},
"outputs": [],
"source": [
"m = Map(\n",
" basemap=basemap_to_tiles(basemaps.OpenStreetMap.Mapnik),\n",
" center=(52.008056, -3.13),\n",
" zoom=13\n",
" )\n",
"display(m)"
]
},
{
"cell_type": "markdown",
"id": "f133de11-b5c9-4571-863b-a1e9ddb1c484",
"metadata": {},
"source": [
"## "
]
}
],
"metadata": {
"kernelspec": {
"display_name": "Python (XPython)",
"language": "python",
"name": "xeus-python"
},
"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.7.12"
}
},
"nbformat": 4,
"nbformat_minor": 5
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment