Spaces:
Sleeping
Sleeping
import streamlit as st | |
# import leafmap.foliumap as geemap | |
import geemap.foliumap as geemap | |
from streamlit.components.v1 import html | |
import ee | |
import folium | |
import pandas | |
# import geemap.foliumap as geemap | |
# import ee | |
from datetime import date, timedelta, datetime | |
st.set_page_config(layout="wide") | |
st.sidebar.info( | |
""" | |
URL: <https://onfarmview.com> | |
""" | |
) | |
st.sidebar.title("Contact") | |
st.sidebar.markdown('<a href="mailto:[email protected]">Contact us !</a>', unsafe_allow_html=True) | |
st.title("On Farm View") | |
footer_content = """ | |
<!-- Footer content --> | |
<p>© 2023 On Farm View. All rights reserved.</p> | |
""" | |
st.sidebar.markdown(footer_content, unsafe_allow_html=True) | |
def ee_authenticate(token_name="EARTHENGINE_TOKEN"): | |
geemap.ee_initialize(token_name=token_name) | |
map_center=(-43.525650, 172.639847) | |
ee_authenticate(token_name="EARTHENGINE_TOKEN") | |
m = geemap.Map( | |
basemap="HYBRID", | |
plugin_Draw=True, | |
Draw_export=True, | |
locate_control=True, | |
plugin_LatLngPopup=True, | |
center=map_center, zoom=13, | |
) | |
m.to_streamlit(height=600) | |