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!
Thanks for stopping by! We use cookies to help us understand how you interact with our website.
By clicking “Accept all”, you consent to our use of cookies. For more information, please see our privacy policy.
Cookie settings
Strictly necessary cookies
These cookies are necessary for the website to function and cannot be switched off. They are usually only set in response to actions made by you which amount to a request for services, such as setting your privacy preferences, logging in or filling in forms.
Performance cookies
These cookies allow us to count visits and traffic sources so we can measure and improve the performance of our site. They help us understand how visitors move around the site and which pages are most frequently visited.
Functional cookies
These cookies are used to record your choices and settings, maintain your preferences over time and recognize you when you return to our website. These cookies help us to personalize our content for you and remember your preferences.
Targeting cookies
These cookies may be deployed to our site by our advertising partners to build a profile of your interest and provide you with content that is relevant to you, including showing you relevant ads on other websites.