Skip to content

Commit e88562a

Browse files
authored
scale control added (#885)
1 parent 2b6e5c4 commit e88562a

File tree

1 file changed

+21
-7
lines changed

1 file changed

+21
-7
lines changed

examples/Radiation.ipynb

Lines changed: 21 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,20 @@
22
"cells": [
33
{
44
"cell_type": "code",
5-
"execution_count": 1,
5+
"execution_count": 3,
66
"id": "43ef0082-9552-44e9-82d3-c1e27209d2c5",
7-
"metadata": {},
7+
"metadata": {
8+
"collapsed": true,
9+
"jupyter": {
10+
"outputs_hidden": true
11+
},
12+
"tags": []
13+
},
814
"outputs": [
915
{
1016
"data": {
1117
"application/vnd.jupyter.widget-view+json": {
12-
"model_id": "e6e1117099a34472927b621c0c6b7e70",
18+
"model_id": "a55ec68b752a4d5fb30ef00a008bad72",
1319
"version_major": 2,
1420
"version_minor": 0
1521
},
@@ -22,7 +28,7 @@
2228
}
2329
],
2430
"source": [
25-
"from ipyleaflet import Map, TileLayer, FullScreenControl\n",
31+
"from ipyleaflet import Map, TileLayer, FullScreenControl, ScaleControl\n",
2632
"\n",
2733
"m = Map(center=(47, 2), zoom=5)\n",
2834
"\n",
@@ -32,15 +38,23 @@
3238
"\n",
3339
"fullscreen = FullScreenControl()\n",
3440
"m.add_control(fullscreen)\n",
35-
"\n",
36-
"m"
41+
"scalecontrol = ScaleControl(position='bottomleft')\n",
42+
"m.add_control(scalecontrol)\n",
43+
"m\n",
44+
"\n"
3745
]
3846
},
3947
{
4048
"cell_type": "code",
4149
"execution_count": null,
4250
"id": "b6e75898-89cf-44e1-826a-11e7b4e9b427",
43-
"metadata": {},
51+
"metadata": {
52+
"collapsed": true,
53+
"jupyter": {
54+
"outputs_hidden": true
55+
},
56+
"tags": []
57+
},
4458
"outputs": [],
4559
"source": []
4660
}

0 commit comments

Comments
 (0)