Hi there, so I have 2 problems and since i am new to programming u probably can help me with that
I) my idea is to use radio buttons on the left and when u click on it on the right (main page) the content pops up. How can I do that ?
II) I want to implement a little map showing the position of a certain adress; e.g. the adress is Berlin City, Karl-Marx-Straße 2 -_> for this a link exists and a small map within the page showing the location. Is that possible or impossible ? And how can i noob friendly get to this ? sry for my english and thanks in advance
These are pretty broad questions, especially with out any code snippets that show what you are working on. So I will make a couple of general suggestions of things you can try:
you could use if statements (I am assuming when you say “on the left” here you mean in the sidebar):
import streamlit as st
my_button = st.sidebar.radio("Some numbers", ('2','5', '10'))
if my_button == '2':
do some stuff
elif my_button == '5':
other things
else:
other other things
You can put maps in a Streamlit app. My advice is to download Streamlit and run streamlit hello from your terminal. There is a demo of making a deck_gl map. Also check out our documentation it’s really intuitive and can take you step-by-step through multiple tutorials!