Giter Club home page Giter Club logo

geemap-streamlit's Introduction

geemap-streamlit

To deploy an Earth Engine App with streamlit, one needs to add an environment variable EARTHENGINE_TOKEN to streamlit. See Secrets Management for details.

geemap-streamlit's People

Contributors

giswqs avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

geemap-streamlit's Issues

Earth Engine Authentication

I am cloning the repository and try to host this on streamlit app and everything works fine except the Earth Engine authentication
image
The screen always stuck and here even if I have included the secret key by clicking on the authentication link on streamlit app secret.

To ensure the secret key can be detected, on the timelapse page I also put in a line of code as follow:
os.environ["EARTHENGINE_TOKEN"] == st.secrets["EARTHENGINE_TOKEN"]

But things does not change. I hope you can help me to look into this issue, my app link is here: https://sr2wzfkohavxdtmxglzrih.streamlit.app/

Another question about add EE credentials to secrets.

This isn't so much an issue but rather a question, I am not positive if this is the best place to ask given this but here it is.

I also am confused about how to allow EE to initialize through secrets. I followed your previous instructions and added
EARTHENGINE_TOKEN="1//my_token" to my streamlit secrets, but when I launch the app here https://sm-potter-streamlit-fire-streamlit-app-7sy8c9.streamlit.app/CNN_Predictions, EE is still failing to initialize.

Is the token the only thing that needs to be included to allow initialization?

SECRET Token structure

Is the secret token a json file? Or is it similar to what comes back from ee.Authenticate() with the webpage redirect?

Facing issue in integrating geemap with streamlit pls help

Cell In[14], line 5
1 m = geemap.Map()
4 # call to render Folium map in Streamlit
----> 5 folium_static(m)

File ~\anaconda3\envs\gee\lib\site-packages\streamlit_folium_init_.py:103, in folium_static(fig, width, height)
99 elif isinstance(fig, folium.plugins.DualMap) or isinstance(
100 fig, branca.element.Figure
101 ):
102 return components.html(fig.repr_html(), height=height + 10, width=width)
--> 103 return st_folium(fig, width=width, height=height, returned_objects=[])

File ~\anaconda3\envs\gee\lib\site-packages\streamlit_folium_init_.py:241, in st_folium(fig, key, height, width, returned_objects, zoom, center, feature_group_to_add, return_on_hover, use_container_width)
238 # handle the case where you pass in a figure rather than a map
239 # this assumes that a map is the first child
240 if not (isinstance(fig, folium.Map) or isinstance(fig, folium.plugins.DualMap)):
--> 241 folium_map = list(fig._children.values())[0]
243 folium_map.render()
245 leaflet = _get_map_string(folium_map) # type: ignore

AttributeError: 'Map' object has no attribute '_children'

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.