Skip to content

Commit 3791744

Browse files
Update options of various controls.
1 parent 70fe8d6 commit 3791744

File tree

3 files changed

+5
-37
lines changed

3 files changed

+5
-37
lines changed

examples/GeoportalControls.ipynb

Lines changed: 3 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"cells": [
33
{
44
"cell_type": "code",
5-
"execution_count": 1,
5+
"execution_count": null,
66
"id": "6bb0dd68-f96d-45c5-b3de-48c2092f2690",
77
"metadata": {},
88
"outputs": [],
@@ -28,26 +28,10 @@
2828
},
2929
{
3030
"cell_type": "code",
31-
"execution_count": 2,
31+
"execution_count": null,
3232
"id": "3a686d99-c3ca-4596-81aa-24442564bea2",
3333
"metadata": {},
34-
"outputs": [
35-
{
36-
"data": {
37-
"application/vnd.jupyter.widget-view+json": {
38-
"model_id": "47bf5fd8b8aa413fb0eacad5627beee6",
39-
"version_major": 2,
40-
"version_minor": 0
41-
},
42-
"text/plain": [
43-
"Map(center=[44.799999, 2.26667], controls=(ZoomControl(options=['position', 'zoom_in_text', 'zoom_in_title', '…"
44-
]
45-
},
46-
"execution_count": 2,
47-
"metadata": {},
48-
"output_type": "execute_result"
49-
}
50-
],
34+
"outputs": [],
5135
"source": [
5236
"#LayerSwitcher control\n",
5337
"m1 = Map(center=(44.799999, 2.26667), zoom=10, zoom_control=True)\n",
@@ -111,14 +95,6 @@
11195
"isocurve_control = GeoportalIsocurve()\n",
11296
"m5.add(isocurve_control)"
11397
]
114-
},
115-
{
116-
"cell_type": "code",
117-
"execution_count": null,
118-
"id": "b6ca529f-62dd-4464-ba19-e2f4b5b15df5",
119-
"metadata": {},
120-
"outputs": [],
121-
"source": []
12298
}
12399
],
124100
"metadata": {

ipyleaflet/geoportal.py

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -36,17 +36,9 @@ class GeoportalLayerSwitcher(Control):
3636

3737
_view_name = Unicode("LeafletGeoportalLayerSwitcherView").tag(sync=True)
3838
_model_name = Unicode("LeafletGeoportalLayerSwitcherModel").tag(sync=True)
39-
position = Unicode("bottomleft").tag(sync=True, o=True)
39+
position = Unicode("topright").tag(sync=True, o=True)
4040
collapsed = Bool(False).tag(sync=True, o=True)
4141
layers = List([]).tag(sync=True, o=True)
42-
layer = Instance(TileLayer).tag(sync=True, o=True)
43-
display = Bool(True).tag(sync=True, o=True)
44-
config = Any().tag(sync=True, o=True)
45-
visibility = Unicode("").tag(sync=True, o=True)
46-
title = Unicode("").tag(sync=True, o=True)
47-
description = Unicode("").tag(sync=True, o=True)
48-
quicklook_url = Unicode("").tag(sync=True, o=True)
49-
legends = List([]).tag(sync=True, o=True)
5042

5143

5244
class GeoportalSearchEngine(Control):

js/src/controls/GeoportalControls.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export class LeafletGeoportalLayerSwitcherModel extends control.LeafletControlMo
1111
...super.defaults(),
1212
_view_name: 'LeafletGeoportalLayerSwitcherView',
1313
_model_name: 'LeafletGeoportalLayerSwitcherModel',
14-
position : "bottomleft",
14+
position : "topright",
1515
collapsed : false,
1616
layers : []
1717
};

0 commit comments

Comments
 (0)