Skip to content

Commit

Permalink
Need to add titiler_endpoint argument when calling cog_tile_vmin_vmax…
Browse files Browse the repository at this point in the history
… in add_cog_layer (#883)

* Pass titiler_endpoint when running cog_tile_vmin_vmax

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
flyhamsw and pre-commit-ci[bot] committed Sep 3, 2024
1 parent 6f4246d commit 3932db9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion leafmap/leafmap.py
Original file line number Diff line number Diff line change
Expand Up @@ -1040,7 +1040,9 @@ def add_cog_layer(
if not hasattr(self, "cog_layer_dict"):
self.cog_layer_dict = {}

vmin, vmax = cog_tile_vmin_vmax(url, bands=bands)
vmin, vmax = cog_tile_vmin_vmax(
url, bands=bands, titiler_endpoint=titiler_endpoint
)

if "colormap_name" in kwargs:
colormap = kwargs["colormap_name"]
Expand Down

0 comments on commit 3932db9

Please sign in to comment.