Skip to content

Commit

Permalink
Fixed stac layer expression bug (#490)
Browse files Browse the repository at this point in the history
  • Loading branch information
giswqs committed Jul 8, 2023
1 parent 839a2f1 commit 6a26ef7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions leafmap/stac.py
Original file line number Diff line number Diff line change
Expand Up @@ -551,6 +551,9 @@ def stac_tile(
titiler_endpoint = check_titiler_endpoint(titiler_endpoint)
mosaic_json = False

if "expression" in kwargs and ("asset_as_band" not in kwargs):
kwargs["asset_as_band"] = True

if isinstance(titiler_endpoint, PlanetaryComputerEndpoint):
if isinstance(bands, str):
bands = bands.split(",")
Expand Down

0 comments on commit 6a26ef7

Please sign in to comment.