2
2
# Distributed under the terms of the Modified BSD License.
3
3
4
4
5
- from traitlets import Unicode , Bool , List , Dict
5
+ from traitlets import Unicode , Bool , List , Dict , Instance , Any
6
6
from .leaflet import TileLayer , Control
7
7
8
8
@@ -36,6 +36,17 @@ class GeoportalLayerSwitcher(Control):
36
36
37
37
_view_name = Unicode ("LeafletGeoportalLayerSwitcherView" ).tag (sync = True )
38
38
_model_name = Unicode ("LeafletGeoportalLayerSwitcherModel" ).tag (sync = True )
39
+ position = Unicode ("bottomleft" ).tag (sync = True , o = True )
40
+ collapsed = Bool (False ).tag (sync = True , o = True )
41
+ 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 )
39
50
40
51
41
52
class GeoportalSearchEngine (Control ):
@@ -54,7 +65,6 @@ class GeoportalSearchEngine(Control):
54
65
collapsed = Bool (True ).tag (sync = True , o = True )
55
66
zoomTo = Unicode ("auto" ).tag (sync = True , o = True )
56
67
displayInfo = Bool (True ).tag (sync = True , o = True )
57
- apiKey = Unicode ("cartes" ).tag (sync = True , o = True )
58
68
displayAdvancedSearch = Bool (True ).tag (sync = True , o = True )
59
69
resources = List (["PositionOfInterest" , "StreetAddress" ]).tag (sync = True , o = True )
60
70
advancedSearch = Dict ({}).tag (sync = True , o = True )
@@ -69,14 +79,19 @@ class GeoportalRoute(Control):
69
79
----------
70
80
"""
71
81
72
- _view_name = Unicode ("LeafletGeoportalRouteView" ).tag (sync = True )
73
- _model_name = Unicode ("LeafletGeoportalRouteModel" ).tag (sync = True )
74
- position = Unicode ("bottomleft" ).tag (sync = True )
75
- collapsed = Bool (True ).tag (sync = True )
76
- exclusions = Dict ({"toll" : True , "bridge" : False , "tunnel" : True }).tag (sync = True )
77
- graphs = List (["Pieton" , "Voiture" ]).tag (sync = True )
78
- autocompleteOptions = Dict ({}).tag (sync = True )
79
- routeOptions = Dict ({}).tag (sync = True )
82
+ _view_name = Unicode ("LeafletGeoportalRouteView" ).tag (sync = True , o = True )
83
+ _model_name = Unicode ("LeafletGeoportalRouteModel" ).tag (sync = True , o = True )
84
+ api_key = Unicode ("essentiels" ).tag (sync = True , o = True )
85
+ position = Unicode ("bottomleft" ).tag (sync = True , o = True )
86
+ collapsed = Bool (True ).tag (sync = True , o = True )
87
+ ssl = Bool (True ).tag (sync = True , o = True )
88
+ disableReverse = Bool (False ).tag (sync = True , o = True )
89
+ exclusions = Dict ({"toll" : True , "bridge" : False , "tunnel" : True }).tag (
90
+ sync = True , o = True
91
+ )
92
+ graphs = List (["Pieton" , "Voiture" ]).tag (sync = True , o = True )
93
+ autocompleteOptions = Dict ({}).tag (sync = True , o = True )
94
+ routeOptions = Dict ({}).tag (sync = True , o = True )
80
95
81
96
82
97
class GeoportalMousePosition (Control ):
@@ -86,27 +101,17 @@ class GeoportalMousePosition(Control):
86
101
----------
87
102
"""
88
103
89
- _view_name = Unicode ("LeafletGeoportalMousePositionView" ).tag (sync = True )
90
- _model_name = Unicode ("LeafletGeoportalMousePositionModel" ).tag (sync = True )
91
- position = Unicode ("bottomleft" ).tag (sync = True )
92
- collapsed = Bool (False ).tag (sync = True )
93
- displayAltitude = Bool (True ).tag (sync = True )
94
- displayCoordinates = Bool (True ).tag (sync = True )
95
- editCoordinates = Bool (False ).tag (sync = True )
96
- altitude = Dict ({}).tag (sync = True )
97
- serviceOptions = Dict ({})
98
- crs = Unicode ().tag (sync = True )
99
- label = Unicode ().tag (sync = True )
100
- selectedtype = Unicode ().tag (sync = True )
101
- systems = (
102
- List (
103
- [
104
- {crs : "" , label : "Lon,Lat" , selectedtype : "Geographical" },
105
- {crs : "" , label : "Lambert 93" , selectedtype : "Metric" },
106
- ]
107
- ).tag (sync = True ),
108
- )
109
- units = List (["DEC" , "DMS" ]).tag (sync = True )
104
+ _view_name = Unicode ("LeafletGeoportalMousePositionView" ).tag (sync = True , o = True )
105
+ _model_name = Unicode ("LeafletGeoportalMousePositionModel" ).tag (sync = True , o = True )
106
+ api_key = Unicode ("essentiels" ).tag (sync = True , o = True )
107
+ position = Unicode ("bottomleft" ).tag (sync = True , o = True )
108
+ collapsed = Bool (False ).tag (sync = True , o = True )
109
+ display_altitude = Bool (False ).tag (sync = True , o = True )
110
+ display_coordinates = Bool (True ).tag (sync = True , o = True )
111
+ edit_coordinates = Bool (True ).tag (sync = True , o = True )
112
+ systems = List ([]).tag (sync = True , o = True )
113
+ altitude = Any ([]).tag (sync = True , o = True )
114
+ units = List ([]).tag (sync = True , o = True )
110
115
111
116
112
117
class GeoportalElevationPath (Control ):
@@ -118,6 +123,13 @@ class GeoportalElevationPath(Control):
118
123
119
124
_view_name = Unicode ("LeafletGeoportalElevationPathView" ).tag (sync = True )
120
125
_model_name = Unicode ("LeafletGeoportalElevationPathModel" ).tag (sync = True )
126
+ api_key = Unicode ("essentiels" ).tag (sync = True , o = True )
127
+ position = Unicode ("bottomleft" ).tag (sync = True , o = True )
128
+ openssl = Bool (True ).tag (sync = True , o = True )
129
+ active = Bool (False ).tag (sync = True , o = True )
130
+ stylesOptions = Unicode ("DEFAULT_STYLES" ).tag (sync = True , o = True )
131
+ elevationPathOptions = Dict ({}).tag (sync = True , o = True )
132
+ displayProfileOptions = Dict ({}).tag (sync = True , o = True )
121
133
122
134
123
135
class GeoportalIsocurve (Control ):
@@ -127,11 +139,12 @@ class GeoportalIsocurve(Control):
127
139
----------
128
140
"""
129
141
130
- _view_name = Unicode ("LeafletGeoportalIsocurveView" ).tag (sync = True )
131
- _model_name = Unicode ("LeafletGeoportalIsocurveModel" ).tag (sync = True )
132
- collapsed = (Bool (False ).tag (sync = True ),)
133
- methods = (List (["time" , "distance" ]).tag (sync = True ),)
134
- exclusions = (Dict ({}).tag (sync = True ),)
135
- graphs = (List (["Pieton" , "Voiture" ]).tag (sync = True ),)
136
- isocurveOptions = (Dict ({}).tag (sync = True ),)
137
- autocompleteOptions = Dict ({}).tag (sync = True )
142
+ _view_name = Unicode ("LeafletGeoportalIsocurveView" ).tag (sync = True , o = True )
143
+ _model_name = Unicode ("LeafletGeoportalIsocurveModel" ).tag (sync = True , o = True )
144
+ api_key = Unicode ("essentiels" ).tag (sync = True , o = True )
145
+ collapsed = Bool (False ).tag (sync = True , o = True )
146
+ methods = List (["time" , "distance" ]).tag (sync = True , o = True )
147
+ exclusions = Dict ({}).tag (sync = True ).tag (sync = True , o = True )
148
+ graphs = List (["Pieton" , "Voiture" ]).tag (sync = True , o = True )
149
+ isocurveOptions = Dict ({}).tag (sync = True , o = True )
150
+ autocompleteOptions = Dict ({}).tag (sync = True ).tag (sync = True , o = True )
0 commit comments