Comments (8)
You're passing
filter_extension = DataFilterExtension(filter_size=3)
If you're filtering on one column you need to remove that or set to 1
(the default)
Aside: We should probably create a bug-specific issue ticket format. cc @emmalu
from lonboard.
Additionally you only need to create a multi-dimensional array when filter_size > 1, so you don't need the np.column_stack
from lonboard.
Small note in case this is under active development: instead of
filter_size
, would a rename tonum_filters
be viable?
I agree that I don't love filter_size
, but that's the term used by upstream deck.gl and I'm reluctant to remove this consistency. We try to document this in the API docs https://developmentseed.org/lonboard/latest/api/layer-extensions/data-filter-extension/#lonboard.layer_extension.DataFilterExtension.filter_size. (Thought it is a little unclear the distinction between constructor parameters and layer parameters in the docs)
from lonboard.
Awesome, figured it was something simple. Thank you Kyle!!
from lonboard.
Small note in case this is under active development: instead of filter_size
, would a rename to num_filters
be viable? Or setting this automatically based on filter values or range...
(Coming from machine learning, 'size' in variable names tend to be for other things.)
from lonboard.
Reopening this in case others run into this too:
After fixing the filter_size
parameter, I am unable to see the output:
In VS Code (seems like a separate issue):
In Jupyter notebook on Chrome (started with jupyter notebook
):
![image](https://private-user-images.githubusercontent.com/5317244/304717969-b58eb06a-5dca-4da2-9562-de62984e675c.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTkxNTE4MjEsIm5iZiI6MTcxOTE1MTUyMSwicGF0aCI6Ii81MzE3MjQ0LzMwNDcxNzk2OS1iNThlYjA2YS01ZGNhLTRkYTItOTU2Mi1kZTYyOTg0ZTY3NWMucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDYyMyUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA2MjNUMTQwNTIxWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9OGI1NzRjNWRkNTM2MDQ4NzI1OTBhZTcxMWM4YjVmYmUyOGEzN2E5OTUzZDAyMTMxZGVlYWMyN2YzZjkwODExMSZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.ru-KrKqHY-6NuGcFCFZiWnxRgJWLPwunuSb72bZJEnA)
Any idea how to fix the display of the filters?
Getting closer! Super exciting :D
from lonboard.
Fixed! Had to:
- restart the Jupyter kernel to get it working in VS Code
- pass in a single slider instead of a MultiRangeSlider (was getting size mismatch errors otherwise that I couldn't figure out - could add different error messages when someone tries to pass a single slider to a MultiRangeSlider as a nice-to-have?)
Thank you!!
![image](https://private-user-images.githubusercontent.com/5317244/304722574-0dd0329f-b7b9-416b-aee3-57a2a29865a0.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTkxNTE4MjEsIm5iZiI6MTcxOTE1MTUyMSwicGF0aCI6Ii81MzE3MjQ0LzMwNDcyMjU3NC0wZGQwMzI5Zi1iN2I5LTQxNmItYWVlMy01N2EyYTI5ODY1YTAucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDYyMyUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA2MjNUMTQwNTIxWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9NWIzYTM4ZDI4MTViMDMyNzI2ZTQ3NDEyMTdlYTBkZjE2NGYxMGRjYWI5ZjBiYWMyOTEyNmRlZmJiMGI1YjlmOCZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.b9zErZXGRj6aMh_MQy9hNxdoy2KbkKvyd0JujHMNqTo)
Super exciting!!
from lonboard.
Aside: We should probably create a bug-specific issue ticket format. cc @emmalu
💯 Will do!
from lonboard.
Related Issues (20)
- Adding a legend? HOT 1
- Allow dict input for Map Style
- Pass `Path` into `viz`?
- WidgetControl: display other widgets on the same map
- Test with pyogrio 0.8
- GeoArrowLayer
- Use `ravel()` instead of `flatten()`
- Invert layers order in `split_mixed_gdf` function HOT 2
- Google Colab support. HOT 3
- Understanding fly_to() and set_view_state() HOT 3
- Automated widget testing
- [BUG] Error in reprojection from GeoArrow stream with non-WGS84 crs and non-nullable coords HOT 1
- Add test for fixed GeoArrow reprojection with GeoPandas 1.0
- [BUG] None default get_line_color in PolygonLayer not respected HOT 4
- [EPIC] Support for ColumnLayer (extruded point values) HOT 3
- feature: add support to zoom into a specific layer HOT 2
- [BUG] Layer Attribution Option HOT 1
- Rename "other args" to "keyword args" in docstrings
- Move griffe-inherited-docstrings into pyproject.toml docs section
- Add CI check for mkdocs build without warning
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lonboard.