@_with_element
def deck_gl_chart(self, element, spec=None, use_container_width=False, **kwargs):
    'Draw a map chart using the Deck.GL library.\n\n        This API closely follows Deck.GL\'s JavaScript API\n        (https://deck.gl/#/documentation), with a few small adaptations and\n        some syntax sugar.\n\n        When using this command, we advise all users to use a personal Mapbox\n        token. This ensures the map tiles used in this chart are more\n        robust. You can do this with the mapbox.token config option.\n\n        To get a token for yourself, create an account at\n        https://mapbox.com. It\'s free! (for moderate usage levels) See\n        https://docs.streamlit.io/en/latest/cli.html#view-all-config-options for more\n        info on how to set config options.\n\n        Parameters\n        ----------\n\n        spec : dict\n            Keys in this dict can be:\n\n            - Anything accepted by Deck.GL\'s top level element, such as\n              "viewport", "height", "width".\n\n            - "layers": a list of dicts containing information to build a new\n              Deck.GL layer in the map. Each layer accepts the following keys:\n\n                - "data" : DataFrame\n                  The data for the current layer.\n\n                - "type" : str\n                  One of the Deck.GL layer types that are currently supported\n                  by Streamlit: ArcLayer, GridLayer, HexagonLayer, LineLayer,\n                  PointCloudLayer, ScatterplotLayer, ScreenGridLayer,\n                  TextLayer.\n\n                - Plus anything accepted by that layer type. The exact keys that\n                  are accepted depend on the "type" field, above. For example, for\n                  ScatterplotLayer you can set fields like "opacity", "filled",\n                  "stroked", and so on.\n\n                  In addition, Deck.GL"s documentation for ScatterplotLayer\n                  shows you can use a "getRadius" field to individually set\n                  the radius of each circle in the plot. So here you would\n                  set "getRadius": "my_column" where "my_column" is the name\n                  of the column containing the radius data.\n\n                  For things like "getPosition", which expect an array rather\n                  than a scalar value, we provide alternates that make the\n                  API simpler to use with dataframes:\n\n                  - Instead of "getPosition" : use "getLatitude" and\n                    "getLongitude".\n                  - Instead of "getSourcePosition" : use "getLatitude" and\n                    "getLongitude".\n                  - Instead of "getTargetPosition" : use "getTargetLatitude"\n                    and "getTargetLongitude".\n                  - Instead of "getColor" : use "getColorR", "getColorG",\n                    "getColorB", and (optionally) "getColorA", for red,\n                    green, blue and alpha.\n                  - Instead of "getSourceColor" : use the same as above.\n                  - Instead of "getTargetColor" : use "getTargetColorR", etc.\n\n        use_container_width : bool\n            If True, set the chart width to the column width. This takes\n            precedence over the figure\'s native `width` value.\n\n        **kwargs : any\n            Same as spec, but as keywords. Keys are "unflattened" at the\n            underscore characters. For example, foo_bar_baz=123 becomes\n            foo={\'bar\': {\'bar\': 123}}.\n\n        Example\n        -------\n        >>> st.deck_gl_chart(\n        ...     viewport={\n        ...         \'latitude\': 37.76,\n        ...         \'longitude\': -122.4,\n        ...         \'zoom\': 11,\n        ...         \'pitch\': 50,\n        ...     },\n        ...     layers=[{\n        ...         \'type\': \'HexagonLayer\',\n        ...         \'data\': df,\n        ...         \'radius\': 200,\n        ...         \'elevationScale\': 4,\n        ...         \'elevationRange\': [0, 1000],\n        ...         \'pickable\': True,\n        ...         \'extruded\': True,\n        ...     }, {\n        ...         \'type\': \'ScatterplotLayer\',\n        ...         \'data\': df,\n        ...     }])\n        ...\n\n        .. output::\n           https://share.streamlit.io/0.50.0-td2L/index.html?id=3GfRygWqxuqB5UitZLjz9i\n           height: 530px\n\n        '
    suppress_deprecation_warning = config.get_option('global.suppressDeprecationWarnings')
    if (not suppress_deprecation_warning):
        import streamlit as st
        st.warning('\n                The `deck_gl_chart` widget is deprecated and will be removed on\n                2020-05-01. To render a map, you should use `st.pydeck_chart` widget.\n            ')
    import streamlit.elements.deck_gl as deck_gl
    deck_gl.marshall(element.deck_gl_chart, spec, use_container_width, **kwargs)
Draw a map chart using the Deck.GL library.

This API closely follows Deck.GL's JavaScript API
(https://deck.gl/#/documentation), with a few small adaptations and
some syntax sugar.

When using this command, we advise all users to use a personal Mapbox
token. This ensures the map tiles used in this chart are more
robust. You can do this with the mapbox.token config option.

To get a token for yourself, create an account at
https://mapbox.com. It's free! (for moderate usage levels) See
https://docs.streamlit.io/en/latest/cli.html#view-all-config-options for more
info on how to set config options.

Parameters
----------

spec : dict
    Keys in this dict can be:

    - Anything accepted by Deck.GL's top level element, such as
      "viewport", "height", "width".

    - "layers": a list of dicts containing information to build a new
      Deck.GL layer in the map. Each layer accepts the following keys:

        - "data" : DataFrame
          The data for the current layer.

        - "type" : str
          One of the Deck.GL layer types that are currently supported
          by Streamlit: ArcLayer, GridLayer, HexagonLayer, LineLayer,
          PointCloudLayer, ScatterplotLayer, ScreenGridLayer,
          TextLayer.

        - Plus anything accepted by that layer type. The exact keys that
          are accepted depend on the "type" field, above. For example, for
          ScatterplotLayer you can set fields like "opacity", "filled",
          "stroked", and so on.

          In addition, Deck.GL"s documentation for ScatterplotLayer
          shows you can use a "getRadius" field to individually set
          the radius of each circle in the plot. So here you would
          set "getRadius": "my_column" where "my_column" is the name
          of the column containing the radius data.

          For things like "getPosition", which expect an array rather
          than a scalar value, we provide alternates that make the
          API simpler to use with dataframes:

          - Instead of "getPosition" : use "getLatitude" and
            "getLongitude".
          - Instead of "getSourcePosition" : use "getLatitude" and
            "getLongitude".
          - Instead of "getTargetPosition" : use "getTargetLatitude"
            and "getTargetLongitude".
          - Instead of "getColor" : use "getColorR", "getColorG",
            "getColorB", and (optionally) "getColorA", for red,
            green, blue and alpha.
          - Instead of "getSourceColor" : use the same as above.
          - Instead of "getTargetColor" : use "getTargetColorR", etc.

use_container_width : bool
    If True, set the chart width to the column width. This takes
    precedence over the figure's native `width` value.

**kwargs : any
    Same as spec, but as keywords. Keys are "unflattened" at the
    underscore characters. For example, foo_bar_baz=123 becomes
    foo={'bar': {'bar': 123}}.

Example
-------
>>> st.deck_gl_chart(
...     viewport={
...         'latitude': 37.76,
...         'longitude': -122.4,
...         'zoom': 11,
...         'pitch': 50,
...     },
...     layers=[{
...         'type': 'HexagonLayer',
...         'data': df,
...         'radius': 200,
...         'elevationScale': 4,
...         'elevationRange': [0, 1000],
...         'pickable': True,
...         'extruded': True,
...     }, {
...         'type': 'ScatterplotLayer',
...         'data': df,
...     }])
...

.. output::
   https://share.streamlit.io/0.50.0-td2L/index.html?id=3GfRygWqxuqB5UitZLjz9i
   height: 530px
@_with_element
def deck_gl_chart(self, element, spec=None, use_container_width=False, **kwargs):
    'Draw a map chart using the Deck.GL library.\n\n        This API closely follows Deck.GL\'s JavaScript API\n        (https://deck.gl/#/documentation), with a few small adaptations and\n        some syntax sugar.\n\n        When using this command, we advise all users to use a personal Mapbox\n        token. This ensures the map tiles used in this chart are more\n        robust. You can do this with the mapbox.token config option.\n\n        To get a token for yourself, create an account at\n        https://mapbox.com. It\'s free! (for moderate usage levels) See\n        https://docs.streamlit.io/en/latest/cli.html#view-all-config-options for more\n        info on how to set config options.\n\n        Parameters\n        ----------\n\n        spec : dict\n            Keys in this dict can be:\n\n            - Anything accepted by Deck.GL\'s top level element, such as\n              "viewport", "height", "width".\n\n            - "layers": a list of dicts containing information to build a new\n              Deck.GL layer in the map. Each layer accepts the following keys:\n\n                - "data" : DataFrame\n                  The data for the current layer.\n\n                - "type" : str\n                  One of the Deck.GL layer types that are currently supported\n                  by Streamlit: ArcLayer, GridLayer, HexagonLayer, LineLayer,\n                  PointCloudLayer, ScatterplotLayer, ScreenGridLayer,\n                  TextLayer.\n\n                - Plus anything accepted by that layer type. The exact keys that\n                  are accepted depend on the "type" field, above. For example, for\n                  ScatterplotLayer you can set fields like "opacity", "filled",\n                  "stroked", and so on.\n\n                  In addition, Deck.GL"s documentation for ScatterplotLayer\n                  shows you can use a "getRadius" field to individually set\n                  the radius of each circle in the plot. So here you would\n                  set "getRadius": "my_column" where "my_column" is the name\n                  of the column containing the radius data.\n\n                  For things like "getPosition", which expect an array rather\n                  than a scalar value, we provide alternates that make the\n                  API simpler to use with dataframes:\n\n                  - Instead of "getPosition" : use "getLatitude" and\n                    "getLongitude".\n                  - Instead of "getSourcePosition" : use "getLatitude" and\n                    "getLongitude".\n                  - Instead of "getTargetPosition" : use "getTargetLatitude"\n                    and "getTargetLongitude".\n                  - Instead of "getColor" : use "getColorR", "getColorG",\n                    "getColorB", and (optionally) "getColorA", for red,\n                    green, blue and alpha.\n                  - Instead of "getSourceColor" : use the same as above.\n                  - Instead of "getTargetColor" : use "getTargetColorR", etc.\n\n        use_container_width : bool\n            If True, set the chart width to the column width. This takes\n            precedence over the figure\'s native `width` value.\n\n        **kwargs : any\n            Same as spec, but as keywords. Keys are "unflattened" at the\n            underscore characters. For example, foo_bar_baz=123 becomes\n            foo={\'bar\': {\'bar\': 123}}.\n\n        Example\n        -------\n        >>> st.deck_gl_chart(\n        ...     viewport={\n        ...         \'latitude\': 37.76,\n        ...         \'longitude\': -122.4,\n        ...         \'zoom\': 11,\n        ...         \'pitch\': 50,\n        ...     },\n        ...     layers=[{\n        ...         \'type\': \'HexagonLayer\',\n        ...         \'data\': df,\n        ...         \'radius\': 200,\n        ...         \'elevationScale\': 4,\n        ...         \'elevationRange\': [0, 1000],\n        ...         \'pickable\': True,\n        ...         \'extruded\': True,\n        ...     }, {\n        ...         \'type\': \'ScatterplotLayer\',\n        ...         \'data\': df,\n        ...     }])\n        ...\n\n        .. output::\n           https://share.streamlit.io/0.50.0-td2L/index.html?id=3GfRygWqxuqB5UitZLjz9i\n           height: 530px\n\n        '
    suppress_deprecation_warning = config.get_option('global.suppressDeprecationWarnings')
    if (not suppress_deprecation_warning):
        import streamlit as st
        st.warning('\n                The `deck_gl_chart` widget is deprecated and will be removed on\n                2020-05-01. To render a map, you should use `st.pydeck_chart` widget.\n            ')
    import streamlit.elements.deck_gl as deck_gl
    deck_gl.marshall(element.deck_gl_chart, spec, use_container_width, **kwargs)