Save - export map to html and image in macintosh env, does not work
miqbalf opened this issue · 2 comments
miqbalf commented
Environment Information
Date: Thu Feb 16 09:51:25 2023 WIB
OS : Darwin
CPU(s) : 8
Machine : x86_64
Architecture : 64bit
RAM : 16.0 GiB
Environment : Python
File system : apfs
Python 3.11.0 | packaged by conda-forge | (main, Oct 25 2022, 06:24:51)
[Clang 14.0.4 ]
geemap : 0.19.2
ee : 0.1.334
ipyleaflet : 0.17.2
folium : 0.14.0
jupyterlab : 3.5.2
notebook : 6.5.2
ipyevents : 2.0.1
geopandas : 0.12.2
Description
Trying to export map as image or html, does not work.
example:
What I Did
png_file = './my_map.png'
Map.to_image(filename=png_file, monitor=1)
html_file = './my_map.html'
Map.to_html(filename=html_file, title='My Map', width='100%', height='880px')
The png gave you the picture of wallpaper desktop instead
and html gave you the blank map, with layer panel and zoom toolbar etc
giswqs commented
Use m.to_html()
instead. The m.to_image()
is just a screenshot. Not recommended.
giswqs commented
The blank map is an ipyleaflet issue. Use folium import geemap.foliumap as geemap
.