Skip to content

Instantly share code, notes, and snippets.

@oliverheilig
Last active July 25, 2022 11:20
Show Gist options
  • Save oliverheilig/0577ac9326ecd3274cbfa25afadfe762 to your computer and use it in GitHub Desktop.
Save oliverheilig/0577ac9326ecd3274cbfa25afadfe762 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": "cfcaccd6-ce3f-465a-8c7f-106dcfcd9126",
"metadata": {},
"outputs": [],
"source": [
"await pip.install('ipyleaflet')\n",
"\n",
"from ipyleaflet import Map, basemaps, basemap_to_tiles\n",
"\n",
"m = Map(\n",
" basemap=basemap_to_tiles(basemaps.OpenStreetMap.Mapnik),\n",
" center=(48.204793, 350.121558),\n",
" zoom=3\n",
" )\n",
"m"
]
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3 (ipykernel)",
"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.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