Skip to content

Commit d0730ab

Browse files
Change in notebook
1 parent 2b3f1da commit d0730ab

File tree

1 file changed

+12
-27
lines changed

1 file changed

+12
-27
lines changed

examples/introduction.ipynb

Lines changed: 12 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -50,16 +50,8 @@
5050
"metadata": {},
5151
"outputs": [],
5252
"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) "
6355
]
6456
},
6557
{
@@ -68,7 +60,7 @@
6860
"metadata": {},
6961
"outputs": [],
7062
"source": [
71-
"layer = VectorTileLayer(\n",
63+
"layere = VectorTileLayer(\n",
7264
" url='https://ahocevar.com/geoserver/gwc/service/tms/1.0.0/' +\n",
7365
" 'ne:ne_10m_admin_0_countries@EPSG%3A900913@pbf/{z}/{x}/{-y}.pbf',\n",
7466
" source_format={\n",
@@ -78,10 +70,10 @@
7870
" #'layers': ['', ''], # Décommenter et remplir si nécessaire\n",
7971
" }\n",
8072
")\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"
8577
]
8678
},
8779
{
@@ -90,7 +82,7 @@
9082
"metadata": {},
9183
"outputs": [],
9284
"source": [
93-
"m.add_layer(layer)"
85+
"m.add_layer(layere)"
9486
]
9587
},
9688
{
@@ -99,7 +91,7 @@
9991
"metadata": {},
10092
"outputs": [],
10193
"source": [
102-
"layer.source_format={\n",
94+
"layere.source_format={\n",
10395
" 'type': 'GeoJSON'}"
10496
]
10597
},
@@ -109,7 +101,7 @@
109101
"metadata": {},
110102
"outputs": [],
111103
"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'"
113105
]
114106
},
115107
{
@@ -118,7 +110,7 @@
118110
"metadata": {},
119111
"outputs": [],
120112
"source": [
121-
"m.remove_layer(layer)"
113+
"m.remove_layer(layere)"
122114
]
123115
},
124116
{
@@ -127,15 +119,8 @@
127119
"metadata": {},
128120
"outputs": [],
129121
"source": [
130-
"layer.opacity = 0.8"
122+
"layere.opacity = 0.8"
131123
]
132-
},
133-
{
134-
"cell_type": "code",
135-
"execution_count": null,
136-
"metadata": {},
137-
"outputs": [],
138-
"source": []
139124
}
140125
],
141126
"metadata": {

0 commit comments

Comments
 (0)