You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
By default, pydeck.Deck sets the base map to Carto’s Dark Matter map. As per the documentation, users can set the base map provider to Google setting the map_provider and api_keys parameters as per the documentation:
However, it will still fail to use a Google base map if the map_style parameter is not set explicitly to a value supported by Google. This is not clear from the documentation. This is because the map_style parameter still defaults here to dark which is not supported by Google maps.
Flavors
Script tag
React
Python/Jupyter notebook
MapboxOverlay
GoogleMapsOverlay
CartoLayer
ArcGIS
Expected Behavior
If map_provider='google_maps', map_style should properly default to "roadmap".
This relation is instead as already specified here in the styles map. It may make sense to simply make a default style per supported provider.
Steps to Reproduce
Instantiate a Deck by following documentation instructions which only specify map_provider and api_keys.
bijanvakili
changed the title
[Bug] Incorrect default map style for Google basemap
[Bug] [pydeck] Incorrect default map style for Google basemap
Jan 22, 2025
Description
By default, pydeck.Deck sets the base map to Carto’s Dark Matter map. As per the documentation, users can set the base map provider to Google setting the
map_provider
andapi_keys
parameters as per the documentation:However, it will still fail to use a Google base map if the
map_style
parameter is not set explicitly to a value supported by Google. This is not clear from the documentation. This is because themap_style
parameter still defaults here todark
which is not supported by Google maps.Flavors
Expected Behavior
If
map_provider='google_maps'
,map_style
should properly default to"roadmap"
.This relation is instead as already specified here in the
styles
map. It may make sense to simply make a default style per supported provider.Steps to Reproduce
Instantiate a
Deck
by following documentation instructions which only specifymap_provider
andapi_keys
.This causes the call from here to get_from_map_identifier to not find any Google style for
dark
listed here. The end result is a blank/white basemap.Environment
Logs
None
The text was updated successfully, but these errors were encountered: