From a689a832a6417d5beb432a0e5ead5ded3e3e150a Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Tue, 8 Oct 2024 04:41:16 +0000 Subject: [PATCH] [pre-commit.ci] pre-commit autoupdate (#912) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * [pre-commit.ci] pre-commit autoupdate updates: - [github.com/pre-commit/pre-commit-hooks: v4.6.0 → v5.0.0](https://github.com/pre-commit/pre-commit-hooks/compare/v4.6.0...v5.0.0) - [github.com/psf/black: 24.8.0 → 24.10.0](https://github.com/psf/black/compare/24.8.0...24.10.0) * Fix lonboard layer issue --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Qiusheng Wu --- .pre-commit-config.yaml | 4 ++-- leafmap/deckgl.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index c43d9430be..9d25c00b3c 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,6 +1,6 @@ repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.6.0 + rev: v5.0.0 hooks: - id: check-toml - id: check-yaml @@ -12,7 +12,7 @@ repos: args: ["--maxkb=500"] - repo: https://github.com/psf/black - rev: 24.8.0 + rev: 24.10.0 hooks: - id: black-jupyter diff --git a/leafmap/deckgl.py b/leafmap/deckgl.py index 75629b1783..f2177ec65e 100644 --- a/leafmap/deckgl.py +++ b/leafmap/deckgl.py @@ -153,7 +153,7 @@ def add_gdf( kwargs["get_fill_color"] = [0, 0, 255, 128] layer = SolidPolygonLayer.from_geopandas(gdf, **kwargs) - self.layers = self.layers + [layer] + self.layers = self.layers + (layer,) if zoom_to_layer: try: @@ -270,7 +270,7 @@ def add_layer( PolygonLayer, SolidPolygonLayer, ]: - self.layers = self.layers + [layer] + self.layers = self.layers + (layer,) if zoom_to_layer: from lonboard._viewport import compute_view