Skip to content

Commit

Permalink
Fix image collection vis bug (#1953)
Browse files Browse the repository at this point in the history
  • Loading branch information
giswqs authored Mar 26, 2024
1 parent bcbc565 commit 0eaa132
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions geemap/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -751,6 +751,9 @@ def add_layer(
vis_params = {}
if name is None:
name = f"Layer {len(self.ee_layers) + 1}"

if isinstance(ee_object, ee.ImageCollection):
ee_object = ee_object.mosaic()
tile_layer = ee_tile_layers.EELeafletTileLayer(
ee_object, vis_params, name, shown, opacity
)
Expand Down

0 comments on commit 0eaa132

Please sign in to comment.