|
50 | 50 | "metadata": {},
|
51 | 51 | "outputs": [],
|
52 | 52 | "source": [
|
53 |
| - "layere=RasterTileLayer()" |
54 |
| - ] |
55 |
| - }, |
56 |
| - { |
57 |
| - "cell_type": "code", |
58 |
| - "execution_count": 4, |
59 |
| - "metadata": {}, |
60 |
| - "outputs": [], |
61 |
| - "source": [ |
62 |
| - "m.add_layer(layere) " |
| 53 | + "layer=RasterTileLayer()\n", |
| 54 | + "m.add_layer(layer) " |
63 | 55 | ]
|
64 | 56 | },
|
65 | 57 | {
|
|
68 | 60 | "metadata": {},
|
69 | 61 | "outputs": [],
|
70 | 62 | "source": [
|
71 |
| - "layer = VectorTileLayer(\n", |
| 63 | + "layere = VectorTileLayer(\n", |
72 | 64 | " url='https://ahocevar.com/geoserver/gwc/service/tms/1.0.0/' +\n",
|
73 | 65 | " 'ne:ne_10m_admin_0_countries@EPSG%3A900913@pbf/{z}/{x}/{-y}.pbf',\n",
|
74 | 66 | " source_format={\n",
|
|
78 | 70 | " #'layers': ['', ''], # Décommenter et remplir si nécessaire\n",
|
79 | 71 | " }\n",
|
80 | 72 | ")\n",
|
81 |
| - "layer.attribution = \"© OpenStreetMap contributors\"\n", |
82 |
| - "layer.opacity = 0.8\n", |
83 |
| - "layer.min_zoom = 1\n", |
84 |
| - "layer.max_zoom = 20" |
| 73 | + "layere.attribution = \"© OpenStreetMap contributors\"\n", |
| 74 | + "layere.opacity = 0.8\n", |
| 75 | + "layere.min_zoom = 1\n", |
| 76 | + "layere.max_zoom = 20" |
85 | 77 | ]
|
86 | 78 | },
|
87 | 79 | {
|
|
90 | 82 | "metadata": {},
|
91 | 83 | "outputs": [],
|
92 | 84 | "source": [
|
93 |
| - "m.add_layer(layer)" |
| 85 | + "m.add_layer(layere)" |
94 | 86 | ]
|
95 | 87 | },
|
96 | 88 | {
|
|
99 | 91 | "metadata": {},
|
100 | 92 | "outputs": [],
|
101 | 93 | "source": [
|
102 |
| - "layer.source_format={\n", |
| 94 | + "layere.source_format={\n", |
103 | 95 | " 'type': 'GeoJSON'}"
|
104 | 96 | ]
|
105 | 97 | },
|
|
109 | 101 | "metadata": {},
|
110 | 102 | "outputs": [],
|
111 | 103 | "source": [
|
112 |
| - "layer.url='https://earthquake.usgs.gov/earthquakes/feed/v1.0/summary/all_week.geojson'" |
| 104 | + "layere.url='https://earthquake.usgs.gov/earthquakes/feed/v1.0/summary/all_week.geojson'" |
113 | 105 | ]
|
114 | 106 | },
|
115 | 107 | {
|
|
118 | 110 | "metadata": {},
|
119 | 111 | "outputs": [],
|
120 | 112 | "source": [
|
121 |
| - "m.remove_layer(layer)" |
| 113 | + "m.remove_layer(layere)" |
122 | 114 | ]
|
123 | 115 | },
|
124 | 116 | {
|
|
127 | 119 | "metadata": {},
|
128 | 120 | "outputs": [],
|
129 | 121 | "source": [
|
130 |
| - "layer.opacity = 0.8" |
| 122 | + "layere.opacity = 0.8" |
131 | 123 | ]
|
132 |
| - }, |
133 |
| - { |
134 |
| - "cell_type": "code", |
135 |
| - "execution_count": null, |
136 |
| - "metadata": {}, |
137 |
| - "outputs": [], |
138 |
| - "source": [] |
139 | 124 | }
|
140 | 125 | ],
|
141 | 126 | "metadata": {
|
|
0 commit comments