From 3932db9bf1cb6eb0ee9b788e3610099a39a3c269 Mon Sep 17 00:00:00 2001 From: Sangwoo Ham Date: Tue, 3 Sep 2024 11:35:35 +0900 Subject: [PATCH] Need to add titiler_endpoint argument when calling cog_tile_vmin_vmax 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> --- leafmap/leafmap.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/leafmap/leafmap.py b/leafmap/leafmap.py index 300b889d3a..7f5d285742 100644 --- a/leafmap/leafmap.py +++ b/leafmap/leafmap.py @@ -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"]