Feature layer hover problem

2851
2
Jump to solution
10-16-2015 05:20 AM
TimWitt2
MVP Alum

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

0 Kudos
1 Solution

Accepted Solutions
RobertScheitlin__GISP
MVP Emeritus

Tim,

   I have made edits and comments in this

JS Bin - Collaborative JavaScript Debugging

It is working now.

View solution in original post

2 Replies
RobertScheitlin__GISP
MVP Emeritus

Tim,

   I have made edits and comments in this

JS Bin - Collaborative JavaScript Debugging

It is working now.

TimWitt2
MVP Alum

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.

0 Kudos