Hey everybody,
I am having a weird issue with my feature layer on hover event.
This is my app: JS Bin - Collaborative JavaScript Debugging
To reproduce the issue, do the following:
1. Type in 32940 in the search widget and hit enter.
2. If you hover over the Orlando point you can see that it highlights in the data grid to the right (This works for all the highlighted features)
3. Now change the search radius to 200 miles, click in the search widget and hit enter.
4. Hover over Orlando and it does not highlight in the grid, none of the features that were select in step 1 will highlight.
5. If you hover over Miami, which wasn't selected in step 1, it will highlight in the grid.
I tried and tried and can not figure out why this happens.
Any input is appreciated!
Tim
Solved! Go to Solution.
Tim,
I have made edits and comments in this
JS Bin - Collaborative JavaScript Debugging
It is working now.
Tim,
I have made edits and comments in this
JS Bin - Collaborative JavaScript Debugging
It is working now.
I had a feeling that map.graphics are blocking the feature layer and fixed it by using MyFeature.getSelectedFeatures(); instead of the map.graphics.
But your answer is even better since I didn't even think about skipping map.graphics altogether!
Thanks for your explanation comments, that made me realize my mistake.