gee-community/geemap

GEE HTML Export error

SimonelDavid opened this issue · 3 comments

HTML Export error

I try to create a map using geemap and python3 and in the and to export that map in HTML format. Everything goes fine but the exported HTML get's me some errors.
WhatsApp Image 2024-04-29 at 17 54 41

This is what that exported HTML it says. I tried to add manually the missing libraries but I get errors again and again. This is a blocker error for me as HTTPS does not support this kind of errors and I can not put it on browser. Is there something that am I missing?

Try the folium backend. import geemap.foliumap as geemap.

Keep in mind the GEE layers usually expire in 24 hours. You won't be able to see the GEE layers after it expires. A better way would be to deveop a web app instead of export the map as an HTML file. See https://github.com/opengeos/solara-geemap

This is an ipyleaflet issue rather than geemap. Run the following code. If you get the same error, then you need to report the issue on the ipyleaflet repo.

m = ipyleaflet.Map()
m.save('map.html')

Try the folium backend. import geemap.foliumap as geemap.

Keep in mind the GEE layers usually expire in 24 hours. You won't be able to see the GEE layers after it expires. A better way would be to deveop a web app instead of export the map as an HTML file. See https://github.com/opengeos/solara-geemap

This solved my issue. Thank you!