stacmap

Explore STAC items and collections on an interactive Folium map with lightweight, minimal dependencies.

$ pip install stacmap

To get started, just pass a STAC item or collection to the stacmap.explore function. Check out the quickstart guide for more information.

import stacmap
from pystac_client import Client

catalog = Client.open("https://planetarycomputer.microsoft.com/api/stac/v1")

items = catalog.search(
   collections=["landsat-8-c2-l2"],
   bbox=[-112.206, 39.252, -107.988, 42.410],
   datetime="2019-06-01/2019-06-10"
).get_all_items()

stacmap.explore(
   items, prop="eo:cloud_cover", cmap="BuPu",
   style_kwds={"fillOpacity": 0.8}, tiles="CartoDB positron",
   fields=["eo:cloud_cover", "landsat:scene_id", "view:sun_elevation"]
)

If you’re already using geopandas.GeoDataFrame.explore with STAC and want to know why you should consider stacmap, check out the transition guide.