Skip to content

Commit

Permalink
Fix lonboard layer issue
Browse files Browse the repository at this point in the history
  • Loading branch information
giswqs committed Oct 8, 2024
1 parent d92f4d3 commit c3a875f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions leafmap/deckgl.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit c3a875f

Please sign in to comment.