LayerRadioControl¶
- class LayerRadioControl(position='topright', collapsed=True, autoZIndex=True, **kwargs)[source]¶
Bases:
LayerControlSame as folium.LayerControl, but assumes the overlay layers are exclusive and the base layers are optional.
Methods Summary
add_child(child[, name, index])Add a child.
add_children(child[, name, index])Add a child.
add_to(parent[, name, index])Add element to a parent.
Computes the bounds of the object and all it's children in the form [[lat_min, lon_min], [lat_max, lon_max]].
get_name()Returns a string representation of the object.
get_root()Returns the root of the elements tree.
render(**kwargs)Renders the HTML representation of the element.
reset()save(outfile[, close_file])Saves an Element into a file.
to_dict([depth, ordered])Returns a dict representation of the object.
to_json([depth])Returns a JSON representation of the object.
Methods Documentation
- add_child(child, name=None, index=None)¶
Add a child.
- add_children(child, name=None, index=None)¶
Add a child.
- add_to(parent, name=None, index=None)¶
Add element to a parent.
- get_bounds()¶
Computes the bounds of the object and all it’s children in the form [[lat_min, lon_min], [lat_max, lon_max]].
- get_name()¶
Returns a string representation of the object. This string has to be unique and to be a python and javascript-compatible variable name.
- get_root()¶
Returns the root of the elements tree.
- render(**kwargs)¶
Renders the HTML representation of the element.
- reset()¶
- save(outfile, close_file=True, **kwargs)¶
Saves an Element into a file.
- outfilestr or file object
The file (or filename) where you want to output the html.
- close_filebool, default True
Whether the file has to be closed after write.
- to_dict(depth=-1, ordered=True, **kwargs)¶
Returns a dict representation of the object.
- to_json(depth=-1, **kwargs)¶
Returns a JSON representation of the object.