stac_gui() Error
bug
### Environment Information
- leafmap version: v0.49.0 --latest version
- Python version: v3.13.5
- Operating System: Linux (Ubuntu 24.02)
### Description
I am trying to use `stac_gui()` to get some data and visualize it on leafmap. After implementing the code in the notebook, I zoomed in on several different areas across the United States and hit the Collections button to retrieve collections. It returns the following error:
```
Retrieving collections...
No collections found.Client.open() takes from 2 to 4 positional arguments but 8 were given cannot unpack non-iterable NoneType object
```
Don't know whether it's a bug or if I did something wrong or it's generally because no data is available! Thanks!
### What I Did
```
import leafmap
catalogs = {
"Element84 Earth Search": "https://earth-search.aws.element84.com/v1",
"Microsoft Planetary Computer": "https://planetarycomputer.microsoft.com/api/stac/v1",
}
m = leafmap.Map(center=[40, -100], zoom=4)
m.set_catalog_source(catalogs)
m.add_stac_gui()
m
```
https://github.com/user-attachments/assets/43772eb9-a991-43a4-9a2a-eb5eac2feee3
关闭于 2025-08-07 4 条评论