@@ -22,7 +22,7 @@ class WmsTileLayer(Layer):
2222 def __init__ (self , url , format = None , layers = None ,
2323 transparent = True , attr = None ,
2424 name = None , overlay = True , control = True ):
25- """Creates a Layer based on a WMS (Web map service) .
25+ """Creates a Web Map Service (WMS) layer .
2626
2727 Parameters
2828 ----------
@@ -40,11 +40,11 @@ def __init__(self, url, format=None, layers=None,
4040 name : string, default None
4141 The name of the Layer, as it will appear in LayerControls
4242 overlay : bool, default False
43- Whether the layer is optional ( overlay) or compulsory .
43+ Adds the layer as an optional overlay (True ) or the base layer (False) .
4444 control : bool, default True
4545 Whether the Layer will be included in LayerControls
4646 """
47- super (WmsTileLayer , self ).__init__ (overlay = overlay , control = control )
47+ super (WmsTileLayer , self ).__init__ (overlay = overlay , control = control , name = name )
4848 self ._name = 'WmsTileLayer'
4949 self .tile_name = name if name is not None else 'WmsTileLayer_' + self ._id
5050 self .url = url
@@ -163,17 +163,17 @@ def __init__(self, data, width=None, height=None,
163163 width: int or str, default None
164164 The width of the output element.
165165 If None, either data['width'] (if available) or '100%' will be used.
166- Ex: 120 , '120px', '80%'
166+ Ex: 120, '120px', '80%'
167167 height: int or str, default None
168168 The height of the output element.
169169 If None, either data['width'] (if available) or '100%' will be used.
170- Ex: 120 , '120px', '80%'
170+ Ex: 120, '120px', '80%'
171171 left: int or str, default '0%'
172172 The horizontal distance of the output with respect to the parent HTML object.
173- Ex: 120 , '120px', '80%'
173+ Ex: 120, '120px', '80%'
174174 top: int or str, default '0%'
175175 The vertical distance of the output with respect to the parent HTML object.
176- Ex: 120 , '120px', '80%'
176+ Ex: 120, '120px', '80%'
177177 position: str, default 'relative'
178178 The `position` argument that the CSS shall contain.
179179 Ex: 'relative', 'absolute'
@@ -256,7 +256,7 @@ def __init__(self, data, style_function=None, name=None, overlay=True, control=T
256256 name : string, default None
257257 The name of the Layer, as it will appear in LayerControls
258258 overlay : bool, default False
259- Whether the layer is optional ( overlay) or compulsory .
259+ Adds the layer as an optional overlay (True ) or the base layer (False) .
260260 control : bool, default True
261261 Whether the Layer will be included in LayerControls
262262
@@ -383,7 +383,7 @@ def __init__(self, data, object_path, style_function=None,
383383 name : string, default None
384384 The name of the Layer, as it will appear in LayerControls
385385 overlay : bool, default False
386- Whether the layer is optional ( overlay) or compulsory .
386+ Adds the layer as an optional overlay (True ) or the base layer (False) .
387387 control : bool, default True
388388 Whether the Layer will be included in LayerControls
389389
@@ -498,7 +498,7 @@ def __init__(self, name=None, overlay=True, control=True):
498498 name : string, default None
499499 The name of the Layer, as it will appear in LayerControls
500500 overlay : bool, default False
501- Whether the layer is optional ( overlay) or compulsory .
501+ Adds the layer as an optional overlay (True ) or the base layer (False) .
502502 control : bool, default True
503503 Whether the Layer will be included in LayerControls
504504 """
0 commit comments