Skip to content

Fix image collection vis bug#1953

Merged
jdbcode merged 1 commit intomasterfrom
vis
Mar 26, 2024
Merged

Fix image collection vis bug#1953
jdbcode merged 1 commit intomasterfrom
vis

Conversation

@giswqs
Copy link
Member

@giswqs giswqs commented Mar 26, 2024

This PR fixes the bug reported in #1952 @jdbcode.

When adding an image collection to the map, it should be converted to an image using collection.mosaic(), which then is compatible with the layer editor.

import ee
import geemap

m = geemap.Map()
col = ee.ImageCollection([ee.Image(1).byte(), ee.Image(10).byte()])
m.add_layer(col)
m

image

@giswqs giswqs requested a review from jdbcode March 26, 2024 01:15
@github-actions
Copy link
Contributor

@github-actions github-actions bot temporarily deployed to pull request March 26, 2024 01:22 Inactive
Copy link
Member

@jdbcode jdbcode left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, Qiusheng!

@jdbcode jdbcode merged commit 0eaa132 into master Mar 26, 2024
@jdbcode jdbcode deleted the vis branch March 26, 2024 02:42
naschmitz pushed a commit that referenced this pull request May 13, 2024
giswqs added a commit that referenced this pull request Aug 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants