{ "cells": [ { "cell_type": "code", "execution_count": 1, "metadata": {}, "outputs": [], "source": [ "from sidecar import Sidecar\n", "from ipyleaflet import Map, basemaps, basemap_to_tiles" ] }, { "cell_type": "code", "execution_count": 2, "metadata": {}, "outputs": [], "source": [ "m = Map(center=(52,10), zoom=8, basemap=basemaps.CartoDB.DarkMatter)\n", "\n", "strata_all = basemap_to_tiles(basemaps.Strava.All)\n", "m.add_layer(strata_all)" ] }, { "cell_type": "code", "execution_count": 3, "metadata": {}, "outputs": [], "source": [ "sc = Sidecar(title='Some title')\n", "\n", "with sc:\n", " display(m)" ] } ], "metadata": { "kernelspec": { "display_name": "Python 3", "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.6.8" } }, "nbformat": 4, "nbformat_minor": 4 }