Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Fix image collection vis bug #1953

Merged
merged 1 commit into from
Mar 26, 2024
Merged

Fix image collection vis bug #1953

merged 1 commit into from
Mar 26, 2024

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
Copy link

@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
15 checks passed
@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
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants