Help Needed: Slow Map Loading and Parameter Updates in Flask + Earth Engine App #21
Unanswered
MOKHTARIMERYEM
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello everyone,
I’m developing a Flask web application connected to Google Earth Engine (GEE) for drought monitoring in Morocco. The app dynamically computes and displays drought indicators such as SPI, SVI, and STI, with:
Interactive maps built using geemap and folium;
Regional, provincial, and communal boundaries (GeoJSON layers);
Dynamic charts and downloadable outputs (CSV, PNG, GeoTIFF).
The application works correctly, but I’m facing significant delays when changing parameters (e.g., indicator type, date range, or region) and during map layer loading. The interface freezes for several seconds before updating the map.
I’d greatly appreciate any advice on how to:
Optimize map and data layer updates in Flask + geemap;
Reduce response time when reloading GEE data after parameter changes;
Implement caching or asynchronous requests to improve performance;
Improve user experience during map refresh (e.g., progress bar, partial update, etc.).
If needed, I can share the relevant code sections (app.py, drought_utils.py, etc.) or provide a temporary demo link.
Thank you in advance for your time and support — I’d really appreciate any ideas or examples from others who have faced similar issues.
Best regards,
Beta Was this translation helpful? Give feedback.
All reactions