giswqs/solara-geemap
2
Earth Engine Web Apps
Introduction
A collection of Earth Engine web apps developed using [Solara](https://github.com/widgetti/solara) and geemap
- Web App: <https://giswqs-solara-geemap.hf.space>
- GitHub: <https://github.com/opengeos/solara-geemap>
- Hugging Face: <https://huggingface.co/spaces/giswqs/solara-geemap>
How to deploy this app on Hugging Face Spaces
- Go to <https://huggingface.co/spaces/giswqs/solara-geemap/tree/main> and duplicate the space to your own space.

- You need to set
EARTHENGINE_TOKENin order to use Earth Engine. The token value should be copied from the following file depending on your operating system:
Windows: C:\\Users\\USERNAME\\.config\\earthengine\\credentials
Linux: /home/USERNAME/.config/earthengine/credentials
MacOS: /Users/USERNAME/.config/earthengine/credentials Simply open the file and copy ALL the content to the EARTHENGINE_TOKEN environment variable.


Alternatively, you can run the following code to retrieve your Earth Engine token:
import geemap
geemap.get_ee_token() Copy all the content of the printed token and set it as the EARTHENGINE_TOKEN environment variable.
- After the space is built successfully, click the
Embed this Spacemenu and find theDirect URLfor the app, such as <https://giswqs-solara-geemap.hf.space>.


- Add your own apps (\*.py) to the
pagesfolder. - Commit and push your changes to the repository. Wait for the space to be built successfully.
