|
| 1 | +{ |
| 2 | + "cells": [ |
| 3 | + { |
| 4 | + "cell_type": "code", |
| 5 | + "execution_count": 1, |
| 6 | + "id": "43ef0082-9552-44e9-82d3-c1e27209d2c5", |
| 7 | + "metadata": {}, |
| 8 | + "outputs": [ |
| 9 | + { |
| 10 | + "data": { |
| 11 | + "application/vnd.jupyter.widget-view+json": { |
| 12 | + "model_id": "e6e1117099a34472927b621c0c6b7e70", |
| 13 | + "version_major": 2, |
| 14 | + "version_minor": 0 |
| 15 | + }, |
| 16 | + "text/plain": [ |
| 17 | + "Map(center=[47, 2], controls=(ZoomControl(options=['position', 'zoom_in_text', 'zoom_in_title', 'zoom_out_text…" |
| 18 | + ] |
| 19 | + }, |
| 20 | + "metadata": {}, |
| 21 | + "output_type": "display_data" |
| 22 | + } |
| 23 | + ], |
| 24 | + "source": [ |
| 25 | + "from ipyleaflet import Map, TileLayer, FullScreenControl\n", |
| 26 | + "\n", |
| 27 | + "m = Map(center=(47, 2), zoom=5)\n", |
| 28 | + "\n", |
| 29 | + "radon = TileLayer(url='https://cartoradon.irsn.fr/static/r/{z}/{x}/{y}.png',\n", |
| 30 | + " tms=True, opacity=0.5)\n", |
| 31 | + "m.add_layer(radon)\n", |
| 32 | + "\n", |
| 33 | + "fullscreen = FullScreenControl()\n", |
| 34 | + "m.add_control(fullscreen)\n", |
| 35 | + "\n", |
| 36 | + "m" |
| 37 | + ] |
| 38 | + }, |
| 39 | + { |
| 40 | + "cell_type": "code", |
| 41 | + "execution_count": null, |
| 42 | + "id": "b6e75898-89cf-44e1-826a-11e7b4e9b427", |
| 43 | + "metadata": {}, |
| 44 | + "outputs": [], |
| 45 | + "source": [] |
| 46 | + } |
| 47 | + ], |
| 48 | + "metadata": { |
| 49 | + "kernelspec": { |
| 50 | + "display_name": "Python 3 (ipykernel)", |
| 51 | + "language": "python", |
| 52 | + "name": "python3" |
| 53 | + }, |
| 54 | + "language_info": { |
| 55 | + "codemirror_mode": { |
| 56 | + "name": "ipython", |
| 57 | + "version": 3 |
| 58 | + }, |
| 59 | + "file_extension": ".py", |
| 60 | + "mimetype": "text/x-python", |
| 61 | + "name": "python", |
| 62 | + "nbconvert_exporter": "python", |
| 63 | + "pygments_lexer": "ipython3", |
| 64 | + "version": "3.9.7" |
| 65 | + } |
| 66 | + }, |
| 67 | + "nbformat": 4, |
| 68 | + "nbformat_minor": 5 |
| 69 | +} |
0 commit comments