Skip to content

Private Mapbox basemap not showing in pydeck=0.7 and 0.6.1 #6249

@ocean-kristian

Description

@ocean-kristian

Summary
My private mapbox map is not showing with pydeck=0.7 and pydeck=0.6.1

Code snippet:

os.environ["MAPBOX_API_KEY"]='pk.eyJ1Ijoib2NlYW5k..................'

pcl = pdk.Layer("PointCloudLayer",
                data=data,
                get_position="geometry.coordinates",
                auto_highlight=True,
                pickable=True,
                point_size=3,
                )


r2d = pdk.Deck(layers=[pcl], 
            api_keys={'mapbox':'pk.eyJ1Ijoib2NlYW5kYX.............................'},
            map_style='mapbox://styles/oceandatafoundation/ckbujyuqu0kah1kpbctq4lemg',
            ) 

print(r2d.map_style)
print(r2d.mapbox_key)

r2d.show()

No map is displayed, just the points

Screenshot 2021-09-30 at 13 01 05
With pydeck 0.5 it works fine. Just with mapbox_key in stead of api_keys input in pdk.Deck

Screenshot 2021-09-30 at 13 11 33

As you can see from the code I have tried both mapbox key as environmental variable and as input dict in pdk.Deck

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions