(auto_refresh=True)
return Traffic(auto_refresh=auto_refresh)
Traffic layer.

    Adds information about the current state of traffic
    to the map. This layer only works at sufficiently high
    zoom levels, and for regions for which Google Maps
    has traffic information.

    :param auto_refresh:
        Whether the traffic layer refreshes with updated
        information automatically. This is true by default.
    :type auto_refresh: bool, optional

    :returns:
        A :class:`gmaps.Traffic` widget.

    :Examples:

    ::

        # map centered on London
        >>> fig = gmaps.figure(center=(51.5, -0.2), zoom_level=11)
        >>> fig.add_layer(gmaps.traffic_layer())
        >>> fig
Traffic layer.
Traffic layer .
def traffic_layer(auto_refresh=True):
    """
    Traffic layer.

    Adds information about the current state of traffic
    to the map. This layer only works at sufficiently high
    zoom levels, and for regions for which Google Maps
    has traffic information.

    :param auto_refresh:
        Whether the traffic layer refreshes with updated
        information automatically. This is true by default.
    :type auto_refresh: bool, optional

    :returns:
        A :class:`gmaps.Traffic` widget.

    :Examples:

    ::

        # map centered on London
        >>> fig = gmaps.figure(center=(51.5, -0.2), zoom_level=11)
        >>> fig.add_layer(gmaps.traffic_layer())
        >>> fig
    """
    return Traffic(auto_refresh=auto_refresh)
def traffic_layer ( auto_refresh = True ) : return Traffic ( auto_refresh = auto_refresh )