You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a neighborhood dataset indicating boolean values by building lots for various indicators (i.e. within a special district, 10-minute walking distance to a subway station, below the average median income, etc.). The goal of this interactive map is to create a check-box for each of these indicators, and once checked, will display all TRUE values for that indicator. When more than one indicator is checked, it will find the boolean intersection value and display building lots where TRUE for all checked indicators.
Steps to Reproduce
Create input type in HTML <input type=”checkbox” name=”[column name]” id=”[column name]” value=”T” unchecked>
Console.log prints the selection of features only selected from the check-box and pulls in TRUE values for these features as an array. When 2 features are selected:
However, the map keeps showing the intersection of all features (whether selected or not selected) in the database.
Expected result
When one check-box is selected, the map will display all TRUE values for that feature. When multiple check-boxes are selected, the map will only display values that are TRUE for all checked features -- intersection of TRUE for all features.
Console.log seems to be separating out each feature that is selected but the map does not show the corresponding results.
Is the issue with the way addFilters function is formatted?
Context
I have a neighborhood dataset indicating boolean values by building lots for various indicators (i.e. within a special district, 10-minute walking distance to a subway station, below the average median income, etc.). The goal of this interactive map is to create a check-box for each of these indicators, and once checked, will display all TRUE values for that indicator. When more than one indicator is checked, it will find the boolean intersection value and display building lots where TRUE for all checked indicators.
Steps to Reproduce
Current Result
Console.log prints the selection of features only selected from the check-box and pulls in TRUE values for these features as an array. When 2 features are selected:
However, the map keeps showing the intersection of all features (whether selected or not selected) in the database.
Expected result
When one check-box is selected, the map will display all TRUE values for that feature. When multiple check-boxes are selected, the map will only display values that are TRUE for all checked features -- intersection of TRUE for all features.
Browser and version
Chrome Version 89.0
Code
HTML:
Script:
The text was updated successfully, but these errors were encountered: