3
3
#
4
4
5
5
6
- from traitlets import Unicode
6
+ from traitlets import Unicode , Bool , List , Dict
7
7
from .leaflet import TileLayer , Control
8
8
9
9
@@ -21,11 +21,11 @@ class GeoportalWMTS(TileLayer):
21
21
format of the image
22
22
"""
23
23
24
- _view_name = Unicode (' LeafletGeoportalWMTSView' ).tag (sync = True )
25
- _model_name = Unicode (' LeafletGeoportalWMTSModel' ).tag (sync = True )
26
- layer = Unicode (' ORTHOIMAGERY.ORTHOPHOTOS' ).tag (sync = True , o = True )
27
- api_key = Unicode (' essentiels' ).tag (sync = True , o = True )
28
- format = Unicode (' image/jpeg' ).tag (sync = True , o = True )
24
+ _view_name = Unicode (" LeafletGeoportalWMTSView" ).tag (sync = True )
25
+ _model_name = Unicode (" LeafletGeoportalWMTSModel" ).tag (sync = True )
26
+ layer = Unicode (" ORTHOIMAGERY.ORTHOPHOTOS" ).tag (sync = True , o = True )
27
+ api_key = Unicode (" essentiels" ).tag (sync = True , o = True )
28
+ format = Unicode (" image/jpeg" ).tag (sync = True , o = True )
29
29
30
30
31
31
class GeoportalLayerSwitcher (Control ):
@@ -35,8 +35,8 @@ class GeoportalLayerSwitcher(Control):
35
35
----------
36
36
"""
37
37
38
- _view_name = Unicode (' LeafletGeoportalLayerSwitcherView' ).tag (sync = True )
39
- _model_name = Unicode (' LeafletGeoportalLayerSwitcherModel' ).tag (sync = True )
38
+ _view_name = Unicode (" LeafletGeoportalLayerSwitcherView" ).tag (sync = True )
39
+ _model_name = Unicode (" LeafletGeoportalLayerSwitcherModel" ).tag (sync = True )
40
40
41
41
42
42
class GeoportalSearchEngine (Control ):
@@ -46,8 +46,21 @@ class GeoportalSearchEngine(Control):
46
46
----------
47
47
"""
48
48
49
- _view_name = Unicode ('LeafletGeoportalSearchEngineView' ).tag (sync = True )
50
- _model_name = Unicode ('LeafletGeoportalSearchEngineModel' ).tag (sync = True )
49
+ _view_name = Unicode ("LeafletGeoportalSearchEngineView" ).tag (sync = True )
50
+ _model_name = Unicode ("LeafletGeoportalSearchEngineModel" ).tag (sync = True )
51
+ layer = Unicode ("ORTHOIMAGERY.ORTHOPHOTOS" ).tag (sync = True , o = True )
52
+ api_key = Unicode ("essentiels" ).tag (sync = True , o = True )
53
+ format = Unicode ("image/jpeg" ).tag (sync = True , o = True )
54
+ position = Unicode ("topleft" ).tag (sync = True , o = True )
55
+ collapsed = Bool (True ).tag (sync = True , o = True )
56
+ zoomTo = Unicode ("auto" ).tag (sync = True , o = True )
57
+ displayInfo = Bool (True ).tag (sync = True , o = True )
58
+ apiKey = Unicode ("cartes" ).tag (sync = True , o = True )
59
+ displayAdvancedSearch = Bool (True ).tag (sync = True , o = True )
60
+ resources = List (["PositionOfInterest" , "StreetAddress" ]).tag (sync = True , o = True )
61
+ advancedSearch = Dict ({}).tag (sync = True , o = True )
62
+ geocodeOptions = Dict ({}).tag (sync = True , o = True )
63
+ autocompleteOptions = Dict ({}).tag (sync = True , o = True )
51
64
52
65
53
66
class GeoportalRoute (Control ):
@@ -57,8 +70,14 @@ class GeoportalRoute(Control):
57
70
----------
58
71
"""
59
72
60
- _view_name = Unicode ('LeafletGeoportalRouteView' ).tag (sync = True )
61
- _model_name = Unicode ('LeafletGeoportalRouteModel' ).tag (sync = True )
73
+ _view_name = Unicode ("LeafletGeoportalRouteView" ).tag (sync = True )
74
+ _model_name = Unicode ("LeafletGeoportalRouteModel" ).tag (sync = True )
75
+ position = Unicode ("bottomleft" ).tag (sync = True )
76
+ collapsed = Bool (True ).tag (sync = True )
77
+ exclusions = Dict ({"toll" : True , "bridge" : False , "tunnel" : True }).tag (sync = True )
78
+ graphs = List (["Pieton" , "Voiture" ]).tag (sync = True )
79
+ autocompleteOptions = Dict ({}).tag (sync = True )
80
+ routeOptions = Dict ({}).tag (sync = True )
62
81
63
82
64
83
class GeoportalMousePosition (Control ):
@@ -68,8 +87,27 @@ class GeoportalMousePosition(Control):
68
87
----------
69
88
"""
70
89
71
- _view_name = Unicode ('LeafletGeoportalMousePositionView' ).tag (sync = True )
72
- _model_name = Unicode ('LeafletGeoportalMousePositionModel' ).tag (sync = True )
90
+ _view_name = Unicode ("LeafletGeoportalMousePositionView" ).tag (sync = True )
91
+ _model_name = Unicode ("LeafletGeoportalMousePositionModel" ).tag (sync = True )
92
+ position = Unicode ("bottomleft" ).tag (sync = True )
93
+ collapsed = Bool (False ).tag (sync = True )
94
+ displayAltitude = Bool (True ).tag (sync = True )
95
+ displayCoordinates = Bool (True ).tag (sync = True )
96
+ editCoordinates = Bool (False ).tag (sync = True )
97
+ altitude = Dict ({}).tag (sync = True )
98
+ serviceOptions = Dict ({})
99
+ crs = Unicode ().tag (sync = True )
100
+ label = Unicode ().tag (sync = True )
101
+ selectedtype = Unicode ().tag (sync = True )
102
+ systems = (
103
+ List (
104
+ [
105
+ {crs : "" , label : "Lon,Lat" , selectedtype : "Geographical" },
106
+ {crs : "" , label : "Lambert 93" , selectedtype : "Metric" },
107
+ ]
108
+ ).tag (sync = True ),
109
+ )
110
+ units = List (["DEC" , "DMS" ]).tag (sync = True )
73
111
74
112
75
113
class GeoportalElevationPath (Control ):
@@ -79,8 +117,8 @@ class GeoportalElevationPath(Control):
79
117
----------
80
118
"""
81
119
82
- _view_name = Unicode (' LeafletGeoportalElevationPathView' ).tag (sync = True )
83
- _model_name = Unicode (' LeafletGeoportalElevationPathModel' ).tag (sync = True )
120
+ _view_name = Unicode (" LeafletGeoportalElevationPathView" ).tag (sync = True )
121
+ _model_name = Unicode (" LeafletGeoportalElevationPathModel" ).tag (sync = True )
84
122
85
123
86
124
class GeoportalIsocurve (Control ):
@@ -90,5 +128,11 @@ class GeoportalIsocurve(Control):
90
128
----------
91
129
"""
92
130
93
- _view_name = Unicode ('LeafletGeoportalIsocurveView' ).tag (sync = True )
94
- _model_name = Unicode ('LeafletGeoportalIsocurveModel' ).tag (sync = True )
131
+ _view_name = Unicode ("LeafletGeoportalIsocurveView" ).tag (sync = True )
132
+ _model_name = Unicode ("LeafletGeoportalIsocurveModel" ).tag (sync = True )
133
+ collapsed = (Bool (False ).tag (sync = True ),)
134
+ methods = (List (["time" , "distance" ]).tag (sync = True ),)
135
+ exclusions = (Dict ({}).tag (sync = True ),)
136
+ graphs = (List (["Pieton" , "Voiture" ]).tag (sync = True ),)
137
+ isocurveOptions = (Dict ({}).tag (sync = True ),)
138
+ autocompleteOptions = Dict ({}).tag (sync = True )
0 commit comments