Hi @Amira_RIAHI, welcome to the Streamlit community!
In this example, st.map only takes in a dataframe with lat/lon coordinates, whereas you are passing in a plot method. Did you mean to call st.pyplot(couche) instead?
Hi randyzwitch,
Thank you,
Yes i tried both st.map and st.pyplot since i need to add a plot with layers to my app
I find streamlit quite simple to use except when dealing with geopandas
Without seeing actual code or data, i can only guess.
Here is a simple example to load a geojson file with point data and show it on a streamlit app:
df = gpd.read_file('cities.geojson')
df['lon'] = df.geometry.x # extract longitude from geometry
df['lat'] = df.geometry.y # extract latitude from geometry
df = df[['lon','lat']] # only keep longitude and latitude
st.write(df.head()) # show on table for testing only
st.map(df) # show on map
Edit: Be aware that with st.map you can only show point data, for other geospatial data you have to use other libraries/elements for example plotly or pydeck and their corresponding streamlit elements: