Map.add_raster doesn't show
hhhhholmes opened this issue · 2 comments
hhhhholmes commented
Environment Information
Here's the report of my environment.
Description
I've searched existing issues. I've set up proxy and update my geemap and xarray_leaflet package but these steps don't work.
In addition, when I try to change the layer settings in the toolbar, it reports a new error:
AttributeError: 'Map' object has no attribute '_vis_control'
What I Did
The code comess from example (25 load rasters):
import os
import geemap
out_dir = os.path.expanduser('~/Downloads')
if not os.path.exists(out_dir):
os.makedirs(out_dir)
landsat = os.path.join(out_dir, 'landsat.tif')
if not os.path.exists(landsat):
landsat_url = 'https://drive.google.com/file/d/1EV38RjNxdwEozjc9m0FcO3LFgAoAX1Uw/view?usp=sharing'
geemap.download_from_gdrive(landsat_url, 'landsat.tif', out_dir, unzip=False)
Map = geemap.Map()
Map.add_raster(landsat, bands=[5, 4, 3], layer_name='Landsat')
Map
giswqs commented
Run geemap.update_package()
and restart the kernel
hhhhholmes commented
Run
geemap.update_package()
and restart the kernel
thank you very much!!!