Skip to content

Commit

Permalink
Update options of various controls.
Browse files Browse the repository at this point in the history
  • Loading branch information
HaudinFlorence committed Sep 14, 2022
1 parent 70fe8d6 commit 3791744
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 37 deletions.
30 changes: 3 additions & 27 deletions examples/GeoportalControls.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"cells": [
{
"cell_type": "code",
"execution_count": 1,
"execution_count": null,
"id": "6bb0dd68-f96d-45c5-b3de-48c2092f2690",
"metadata": {},
"outputs": [],
Expand All @@ -28,26 +28,10 @@
},
{
"cell_type": "code",
"execution_count": 2,
"execution_count": null,
"id": "3a686d99-c3ca-4596-81aa-24442564bea2",
"metadata": {},
"outputs": [
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "47bf5fd8b8aa413fb0eacad5627beee6",
"version_major": 2,
"version_minor": 0
},
"text/plain": [
"Map(center=[44.799999, 2.26667], controls=(ZoomControl(options=['position', 'zoom_in_text', 'zoom_in_title', '…"
]
},
"execution_count": 2,
"metadata": {},
"output_type": "execute_result"
}
],
"outputs": [],
"source": [
"#LayerSwitcher control\n",
"m1 = Map(center=(44.799999, 2.26667), zoom=10, zoom_control=True)\n",
Expand Down Expand Up @@ -111,14 +95,6 @@
"isocurve_control = GeoportalIsocurve()\n",
"m5.add(isocurve_control)"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "b6ca529f-62dd-4464-ba19-e2f4b5b15df5",
"metadata": {},
"outputs": [],
"source": []
}
],
"metadata": {
Expand Down
10 changes: 1 addition & 9 deletions ipyleaflet/geoportal.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,17 +36,9 @@ class GeoportalLayerSwitcher(Control):

_view_name = Unicode("LeafletGeoportalLayerSwitcherView").tag(sync=True)
_model_name = Unicode("LeafletGeoportalLayerSwitcherModel").tag(sync=True)
position = Unicode("bottomleft").tag(sync=True, o=True)
position = Unicode("topright").tag(sync=True, o=True)
collapsed = Bool(False).tag(sync=True, o=True)
layers = List([]).tag(sync=True, o=True)
layer = Instance(TileLayer).tag(sync=True, o=True)
display = Bool(True).tag(sync=True, o=True)
config = Any().tag(sync=True, o=True)
visibility = Unicode("").tag(sync=True, o=True)
title = Unicode("").tag(sync=True, o=True)
description = Unicode("").tag(sync=True, o=True)
quicklook_url = Unicode("").tag(sync=True, o=True)
legends = List([]).tag(sync=True, o=True)


class GeoportalSearchEngine(Control):
Expand Down
2 changes: 1 addition & 1 deletion js/src/controls/GeoportalControls.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export class LeafletGeoportalLayerSwitcherModel extends control.LeafletControlMo
...super.defaults(),
_view_name: 'LeafletGeoportalLayerSwitcherView',
_model_name: 'LeafletGeoportalLayerSwitcherModel',
position : "bottomleft",
position : "topright",
collapsed : false,
layers : []
};
Expand Down

0 comments on commit 3791744

Please sign in to comment.