ITADN

Error creating deckgl map when calling view_vector() function

#1264ClosedAlejandroGorgues 创建于 2025-11-15
bug
<!-- Please search existing issues to avoid creating duplicates. --> ### Environment Information - leafmap version: 0.57.8 - Python version: 3.11.0 - Operating System: Windows 10/WSL2 ### Description While I was following DuckDB tutorial on [Data Visualization](https://geog-414.gishub.org/book/duckdb/08_data_viz.html) section, I found an error using `view_vector` function. ### What I Did Using the next command ```python leafmap.view_vector(gdf, get_radius=20000, get_fill_color="blue") ``` Gave me the next error ```bash --- 105 view_state["zoom"] = zoom 106 kwargs["view_state"] = view_state --> [108](file:///D:/Proyects/geoduckdb/.pixi/envs/default/Lib/site-packages/leafmap/deckgl.py:108) super().__init__( 109 _height=height, Unexpected keyword argument: '_height'. Check the spelling of your parameters. If you're trying to use layer properties added by a layer extension, ensure you've passed the extension object into the `extensions` parameter of the layer. ``` As an easy workaround, I edited the line 108 on `deckgl.py` with `height=height,` instead of `_height=height,`, fixing the issue locally.
关闭于 2025-11-17 0 条评论