@@ -45,6 +45,7 @@ def __init__(
4545 parameters = None ,
4646 widgets = None ,
4747 show_error = False ,
48+ map_projection = None ,
4849 ):
4950 """This is the renderer and configuration for a deck.gl visualization, similar to the
5051 `Deck <https://deck.gl/docs/api-reference/core/deck>`_ class from deck.gl.
@@ -63,7 +64,7 @@ def __init__(
6364 ``MAPBOX_API_KEY``, ``GOOGLE_MAPS_API_KEY``, and ``CARTO_API_KEY`` can be set instead of hardcoding the key here.
6465 map_provider : str, default 'carto'
6566 If multiple API keys are set (e.g., both Mapbox and Google Maps), inform pydeck which basemap provider to prefer.
66- Values can be ``carto``, ``mapbox`` or ``google_maps``
67+ Values can be ``carto``, ``mapbox``, ``google_maps``, or ``maplibre``.
6768 map_style : str or dict, default 'dark'
6869 One of 'light', 'dark', 'road', 'satellite', 'dark_no_labels', and 'light_no_labels', a URI for a basemap
6970 style, which varies by provider, or a dict that follows the Mapbox style `specification <https://docs.mapbox.com/mapbox-gl-js/style-spec/>`_.
@@ -87,6 +88,10 @@ def __init__(
8788 show_error : bool, default False
8889 If ``True``, will display the error in the rendered output.
8990 Otherwise, will only show error in browser console.
91+ map_projection : str, default None
92+ Map projection to use with ``map_provider='maplibre'``.
93+ Values can be ``'globe'`` or ``'mercator'``. Defaults to ``'mercator'`` if not specified.
94+ Only supported with ``map_provider='maplibre'``.
9095
9196 .. _Deck:
9297 https://deck.gl/docs/api-reference/core/deck
@@ -108,6 +113,7 @@ def __init__(
108113 self .description = description
109114 self .effects = effects
110115 self .map_provider = str (map_provider ).lower () if map_provider else None
116+ self .map_projection = map_projection
111117 self ._tooltip = tooltip
112118 self ._show_error = show_error
113119
0 commit comments