|
2 | 2 | "cells": [
|
3 | 3 | {
|
4 | 4 | "cell_type": "code",
|
5 |
| - "execution_count": 1, |
| 5 | + "execution_count": 3, |
6 | 6 | "id": "6bb0dd68-f96d-45c5-b3de-48c2092f2690",
|
7 | 7 | "metadata": {},
|
8 | 8 | "outputs": [],
|
9 | 9 | "source": [
|
10 | 10 | "from ipyleaflet import *\n",
|
11 |
| - "from ipyleaflet.geoportal import GeoportalWMTS, GeoportalLayerSwitcher, GeoportalSearchEngine, GeoportalRoute" |
| 11 | + "from ipyleaflet.geoportal import GeoportalWMTS, GeoportalLayerSwitcher, GeoportalSearchEngine, GeoportalRoute, GeoportalMousePosition" |
12 | 12 | ]
|
13 | 13 | },
|
14 | 14 | {
|
15 | 15 | "cell_type": "code",
|
16 |
| - "execution_count": 3, |
| 16 | + "execution_count": 4, |
17 | 17 | "id": "fdeacb8e-3113-453d-ab63-a5ab639bf0c8",
|
18 | 18 | "metadata": {},
|
19 | 19 | "outputs": [
|
20 | 20 | {
|
21 | 21 | "data": {
|
22 | 22 | "application/vnd.jupyter.widget-view+json": {
|
23 |
| - "model_id": "95aeab83e1fe49fc87dcae3e3c80b6a9", |
| 23 | + "model_id": "6a239c9944c143c8ad49af3d1d5417c2", |
24 | 24 | "version_major": 2,
|
25 | 25 | "version_minor": 0
|
26 | 26 | },
|
|
33 | 33 | }
|
34 | 34 | ],
|
35 | 35 | "source": [
|
36 |
| - "#Route for itinerary calculation\n", |
| 36 | + "#Route control for itinerary calculation\n", |
37 | 37 | "layer = GeoportalWMTS(layer = 'GEOGRAPHICALGRIDSYSTEMS.PLANIGNV2', api_key = 'cartes', format = 'image/png')\n",
|
38 | 38 | "m = Map(center=(44.799999, 2.26667), zoom=10, zoom_control=True)\n",
|
39 | 39 | "m.add(layer)\n",
|
|
43 | 43 | },
|
44 | 44 | {
|
45 | 45 | "cell_type": "code",
|
46 |
| - "execution_count": 8, |
| 46 | + "execution_count": 5, |
47 | 47 | "id": "3a686d99-c3ca-4596-81aa-24442564bea2",
|
48 | 48 | "metadata": {},
|
49 | 49 | "outputs": [
|
50 | 50 | {
|
51 | 51 | "data": {
|
52 | 52 | "application/vnd.jupyter.widget-view+json": {
|
53 |
| - "model_id": "6111476c55a64564b77ba196455b171c", |
| 53 | + "model_id": "c8dacf4132a44828a29e0d238dcdc266", |
54 | 54 | "version_major": 2,
|
55 | 55 | "version_minor": 0
|
56 | 56 | },
|
|
63 | 63 | }
|
64 | 64 | ],
|
65 | 65 | "source": [
|
66 |
| - "#LayerSwitcher\n", |
| 66 | + "#LayerSwitcher control\n", |
67 | 67 | "m1 = Map(center=(44.799999, 2.26667), zoom=10, zoom_control=True)\n",
|
68 | 68 | "layer1 = GeoportalWMTS() #default\n",
|
69 | 69 | "layer2 = GeoportalWMTS(layer = 'ELEVATION.SLOPES', api_key = 'altimetrie')\n",
|
|
79 | 79 | },
|
80 | 80 | {
|
81 | 81 | "cell_type": "code",
|
82 |
| - "execution_count": null, |
| 82 | + "execution_count": 6, |
83 | 83 | "id": "57062455-fe86-4e3b-8eaf-94e996b44830",
|
84 | 84 | "metadata": {},
|
| 85 | + "outputs": [ |
| 86 | + { |
| 87 | + "data": { |
| 88 | + "application/vnd.jupyter.widget-view+json": { |
| 89 | + "model_id": "ca2a469baad0480780ead5013c4d7395", |
| 90 | + "version_major": 2, |
| 91 | + "version_minor": 0 |
| 92 | + }, |
| 93 | + "text/plain": [ |
| 94 | + "Map(center=[44.799999, 2.26667], controls=(ZoomControl(options=['position', 'zoom_in_text', 'zoom_in_title', '…" |
| 95 | + ] |
| 96 | + }, |
| 97 | + "metadata": {}, |
| 98 | + "output_type": "display_data" |
| 99 | + } |
| 100 | + ], |
| 101 | + "source": [ |
| 102 | + "#SearchEngine control\n", |
| 103 | + "m2 = Map(center=(44.799999, 2.26667), zoom=10, zoom_control=True)\n", |
| 104 | + "#layer1 = GeoportalWMTS() #default\n", |
| 105 | + "search_control = GeoportalSearchEngine()\n", |
| 106 | + "m2.add(search_control)" |
| 107 | + ] |
| 108 | + }, |
| 109 | + { |
| 110 | + "cell_type": "code", |
| 111 | + "execution_count": 7, |
| 112 | + "id": "0a7ca855-c96d-4864-9b9c-1873712033bb", |
| 113 | + "metadata": {}, |
| 114 | + "outputs": [ |
| 115 | + { |
| 116 | + "data": { |
| 117 | + "application/vnd.jupyter.widget-view+json": { |
| 118 | + "model_id": "fa99ee68017947eba8768c90410b9e03", |
| 119 | + "version_major": 2, |
| 120 | + "version_minor": 0 |
| 121 | + }, |
| 122 | + "text/plain": [ |
| 123 | + "Map(center=[44.799999, 2.26667], controls=(ZoomControl(options=['position', 'zoom_in_text', 'zoom_in_title', '…" |
| 124 | + ] |
| 125 | + }, |
| 126 | + "metadata": {}, |
| 127 | + "output_type": "display_data" |
| 128 | + } |
| 129 | + ], |
| 130 | + "source": [ |
| 131 | + "#MousePosition control\n", |
| 132 | + "m3 = Map(center=(44.799999, 2.26667), zoom=10, zoom_control=True)\n", |
| 133 | + "mouse_position_control = GeoportalMousePosition()\n", |
| 134 | + "m3.add(mouse_position_control)" |
| 135 | + ] |
| 136 | + }, |
| 137 | + { |
| 138 | + "cell_type": "code", |
| 139 | + "execution_count": null, |
| 140 | + "id": "17a9e9bb-f3a5-40e5-90ea-8d57049cda5f", |
| 141 | + "metadata": {}, |
85 | 142 | "outputs": [],
|
86 | 143 | "source": []
|
87 | 144 | }
|
|
0 commit comments