Update pages/Vertbox.py
Browse files- pages/Vertbox.py +12 -5
pages/Vertbox.py
CHANGED
@@ -27,22 +27,28 @@ def convert_coordinates(bbox, from_crs, to_crs):
|
|
27 |
# Styles CSS
|
28 |
st.markdown("""
|
29 |
<style>
|
30 |
-
.main { padding-top:
|
31 |
-
.block-container { padding-top:
|
32 |
-
.stApp { margin-top:
|
33 |
.css-1kyxreq { justify-content: center; }
|
34 |
.css-5rimss { font-size: 14px; }
|
35 |
.stSelectbox { margin-bottom: 0.5rem; }
|
36 |
.leaflet-control-mouseposition { background-color: rgba(255, 255, 255, 0.8); padding: 2px 5px; }
|
|
|
|
|
|
|
|
|
|
|
|
|
37 |
</style>
|
38 |
""", unsafe_allow_html=True)
|
39 |
|
40 |
# Main layout
|
|
|
|
|
41 |
col1, col2 = st.columns([4, 1])
|
42 |
|
43 |
with col1:
|
44 |
-
st.markdown("### BBoxFinder Clone")
|
45 |
-
|
46 |
# Map
|
47 |
m = folium.Map(location=[46.8, 8.2], zoom_start=8, control_scale=True)
|
48 |
|
@@ -53,6 +59,7 @@ with col1:
|
|
53 |
draw_options={
|
54 |
'polyline': True,
|
55 |
'polygon': True,
|
|
|
56 |
'circle': True,
|
57 |
'marker': True,
|
58 |
'circlemarker': True
|
|
|
27 |
# Styles CSS
|
28 |
st.markdown("""
|
29 |
<style>
|
30 |
+
.main { padding-top: 1rem; padding-bottom: 0; }
|
31 |
+
.block-container { padding-top: 0; padding-bottom: 0; max-width: 100% !important; }
|
32 |
+
.stApp { margin-top: 0; }
|
33 |
.css-1kyxreq { justify-content: center; }
|
34 |
.css-5rimss { font-size: 14px; }
|
35 |
.stSelectbox { margin-bottom: 0.5rem; }
|
36 |
.leaflet-control-mouseposition { background-color: rgba(255, 255, 255, 0.8); padding: 2px 5px; }
|
37 |
+
#root > div:nth-child(1) > div.withScreencast > div > div > div > section > div.block-container.css-1y4p8pa.ea3mdgi4 {
|
38 |
+
padding-top: 0;
|
39 |
+
}
|
40 |
+
.row-widget.stButton {
|
41 |
+
text-align: center;
|
42 |
+
}
|
43 |
</style>
|
44 |
""", unsafe_allow_html=True)
|
45 |
|
46 |
# Main layout
|
47 |
+
st.markdown("### BBoxFinder Clone", unsafe_allow_html=True)
|
48 |
+
|
49 |
col1, col2 = st.columns([4, 1])
|
50 |
|
51 |
with col1:
|
|
|
|
|
52 |
# Map
|
53 |
m = folium.Map(location=[46.8, 8.2], zoom_start=8, control_scale=True)
|
54 |
|
|
|
59 |
draw_options={
|
60 |
'polyline': True,
|
61 |
'polygon': True,
|
62 |
+
'rectangle': True,
|
63 |
'circle': True,
|
64 |
'marker': True,
|
65 |
'circlemarker': True
|