33#
44
55
6- from traitlets import Unicode
6+ from traitlets import Unicode , Bool , List , Dict
77from .leaflet import TileLayer , Control
88
99
@@ -21,11 +21,11 @@ class GeoportalWMTS(TileLayer):
2121 format of the image
2222 """
2323
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 )
2929
3030
3131class GeoportalLayerSwitcher (Control ):
@@ -35,8 +35,8 @@ class GeoportalLayerSwitcher(Control):
3535 ----------
3636 """
3737
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 )
4040
4141
4242class GeoportalSearchEngine (Control ):
@@ -46,8 +46,21 @@ class GeoportalSearchEngine(Control):
4646 ----------
4747 """
4848
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 )
5164
5265
5366class GeoportalRoute (Control ):
@@ -57,8 +70,14 @@ class GeoportalRoute(Control):
5770 ----------
5871 """
5972
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 )
6281
6382
6483class GeoportalMousePosition (Control ):
@@ -68,8 +87,27 @@ class GeoportalMousePosition(Control):
6887 ----------
6988 """
7089
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 )
73111
74112
75113class GeoportalElevationPath (Control ):
@@ -79,8 +117,8 @@ class GeoportalElevationPath(Control):
79117 ----------
80118 """
81119
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 )
84122
85123
86124class GeoportalIsocurve (Control ):
@@ -90,5 +128,11 @@ class GeoportalIsocurve(Control):
90128 ----------
91129 """
92130
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