(
        features=None, mode=DEFAULT_DRAWING_MODE,
        show_controls=True, marker_options=None, line_options=None,
        polygon_options=None)
return Drawing(**kwargs)
Create an interactive drawing layer

    Adding a drawing layer to a map allows adding custom shapes,
    both programatically and interactively (by drawing on the map).

    :Examples:

    {examples}

    {params}

    :param mode:
        Initial drawing mode. One of ``DISABLED``,
        ``MARKER``, ``LINE``, ``POLYGON``, ``CIRCLE`` or
        ``DELETE``. Defaults to ``MARKER`` if ``show_controls`` is
        True, otherwise defaults to ``DISABLED``.  :type mode: str,
        optional

    :param show_controls:
        Whether to show the drawing controls in the map toolbar.
        Defaults to True.
    :type show_controls: bool, optional

    :returns:
        A :class:`gmaps.Drawing` widget.
Create an interactive drawing layer
Create an interactive drawing layer
def drawing_layer(
        features=None, mode=DEFAULT_DRAWING_MODE,
        show_controls=True, marker_options=None, line_options=None,
        polygon_options=None):
    """
    Create an interactive drawing layer

    Adding a drawing layer to a map allows adding custom shapes,
    both programatically and interactively (by drawing on the map).

    :Examples:

    {examples}

    {params}

    :param mode:
        Initial drawing mode. One of ``DISABLED``,
        ``MARKER``, ``LINE``, ``POLYGON``, ``CIRCLE`` or
        ``DELETE``. Defaults to ``MARKER`` if ``show_controls`` is
        True, otherwise defaults to ``DISABLED``.  :type mode: str,
        optional

    :param show_controls:
        Whether to show the drawing controls in the map toolbar.
        Defaults to True.
    :type show_controls: bool, optional

    :returns:
        A :class:`gmaps.Drawing` widget.
    """
    controls = DrawingControls(show_controls=show_controls)
    kwargs = {
        'features': features,
        'mode': mode,
        'toolbar_controls': controls,
        'marker_options': marker_options,
        'line_options': line_options,
        'polygon_options': polygon_options
    }
    return Drawing(**kwargs)
def drawing_layer ( features = None , mode = DEFAULT_DRAWING_MODE , show_controls = True , marker_options = None , line_options = None , polygon_options = None ) : controls = DrawingControls ( show_controls = show_controls ) kwargs = { 'features' : features , 'mode' : mode , 'toolbar_controls' : controls , 'marker_options' : marker_options , 'line_options' : line_options , 'polygon_options' : polygon_options } return Drawing ( * * kwargs )