Questions tagged [pydeck]

24 questions
0
votes
0 answers

PyDeck in Streamlit - event handling for on_click

Given the following code, the on_click event is not triggered, not certain why. def on_click(info): print('Testing...') st.write("TEST TEST") chart = pdk.Deck( map_style="dark", initial_view_state={ "country":…
dirtyw0lf
  • 1,899
  • 5
  • 35
  • 63
0
votes
1 answer

TypeError: __init__() got an unexpected keyword argument 'mapbox_key'

everyone ! I'm trying to understand how to make maps with PyDeck, but i have a recurring error message : " TypeError: init() got an unexpected keyword argument 'mapbox_key'". After hours, I don't know how to resolve it ? have you any idea ? code…
Ezaan
  • 1
  • 1
0
votes
1 answer

Pydeck layer not rendering, only map

I am a beginner and trying to visualize some data with Pydeck. My problem is, it only shows the background map and no data. I would like to visualize the prices of the Air BnBs in Berlin. Maybe someone can help? Thanks! The data is retrieved…
Vilerala
  • 41
  • 4
0
votes
1 answer

Streamlit. How can I display only the focused area on the map?

After loaded the web, the world map was displayed but I actually included New York City data only. Is there any way to auto-display New York area only, when the page loaded? And the title "Motor Vehicle Collisions in New York City" became 2 lines…
0
votes
1 answer

Pydeck layer not rendering

I'm trying to visualize some data using pydeck. The layers were working as intended until I began tinkering with other sections which broke my layer render somehow. After two days of tinkering I'm at a loss why the layer won't display. I'm building…
0
votes
1 answer

Streamlit returns error if get_elevation added to ColumnLayer

I am new to streamlit, and I am trying to display a pydeck layer with columns. I want the column height to be the rain (mm) column I am providing in a dataframe, but whenever I use get_evelation="rain (mm)", I get the following error: Error:…
Zizzipupp
  • 1,301
  • 1
  • 11
  • 27
0
votes
1 answer

Plot LINESTRING Z from GeoDataFrame using pydeck's PathLayer (or TripLayer)

I have a geodataframe with LINESTRING Z geometries: TimeUTC Latitude Longitude AGL geometry 0 2021-06-16 00:34:04+00:00 42.8354 -70.9196 82.2 LINESTRING Z (42.83541343273769 -70.91961015378617 82.2, 42.83541343273769 -70.91961015378617…
DKovar
  • 155
  • 1
  • 9
0
votes
1 answer

Mapbox API key issue

After installing pydeck, I set the MAPBOX_ACCESS_TOKEN: export MAPBOX_ACCESS_TOKEN=pk.eyJ1Ijoibmlrb2dhbXVsaxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxlRyMZPMp4ASJ0yyA When I run jupyter notebook in which I try to display a map, however,…
Niko Gamulin
  • 66,025
  • 95
  • 221
  • 286
0
votes
1 answer

Pydeck tooltip format numbers

Does anyone know how to edit the tooltip portion of a pydeck plot. Specifically, I want to change the mrt_distance in the html portion to display it in whole number, with a comma at the thousands. For example, 2143.45 meters should be displayed as…
TYL
  • 1,577
  • 20
  • 33
1
2