-
Notifications
You must be signed in to change notification settings - Fork 196
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Filter not working with L.VectorGrid.Protobuf 🔴 #285
Comments
@geekypradip My question to you is: Why did you think there's a |
Thank you for your prompt response. I assumed the filter option was available because it's mentioned in the TypeScript definitions for Upon further investigation, I noticed a discrepancy between the npm package version and the This mismatch between the released version and the TypeScript definitions could be causing some confusion. I would appreciate any guidance on how to proceed with this. |
Yes, the filter option was added in eaca5f5 (May 2018), after the most recent release (Aug 2017). |
I'm currently working with Leaflet's VectorGrid and I'm encountering an issue with the filter option. Here's a snippet of my code:
In the above code, I've provided a filter function that should prevent any feature from being rendered on the map, as I'm returning false. However, it seems like the filter function is not being called at all. I've tried to debug this using Chrome's devtools and added a console.log statement inside the filter function, but it's not printing anything.
The strange thing is, whether I pass the filter option or not, the result is the same. It's as if the filter function is being completely ignored.
Any help or guidance on this issue would be greatly appreciated.
The text was updated successfully, but these errors were encountered: