Streamlit passing pydeck layers as constraints

Hello everyone. I am new to Streamlit and I use it with PyDeck and I have a couple of Questions. Please bear with my long post.

Question 1

pp = pdk.Deck(
initial_view_state=view_state,
map_provider=‘mapbox’,
layers=[
layer1,
layer2,
layert1,
],
# tooltip=tooltip
)

deckchart = st.pydeck_chart(pp)
os.system(“streamlit run …/Assignment_2_DV/assign2.py”)

I am using this code to run the chart locally, the problem is new instances keep opening in new browser tabs automatically.

Question 2


As shown in the image, I used two-column layers from Pydeck to visualize the data. Is it possible to set the layers as options in the select box?

Question 3
From the above image, is it possible to have on-click events when clicked on the columns in the map?

Appreciate any help. Thank you.

1 Like

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.