I would like to change the selection color for the graphic in the map for the record clicked in the results tab when multiple records are found. This would help identify which record the user is identifing when 2 results are next to each other.
Don't forget to mark this question as answered by clicking on the "Mark Correct" link on the reply that answered your question.
So I take it you have disabled the popup for the search results then. If you had the popup enabled then you would see the selection symbol for the selected result.
You're right I don't, I was trying to be able to do this without the popup. I have the eSearch publishing data to a seperate widget that handles all of the data.
I will have to see what I can come up with for that then.
I have a Beta version working for this but Have yet to figure out what do do with points using a picture marker symbol. Do you want a copy of what I have?
Yeah that would be great thanks Robert. I would be using it for polygons so it works for me.
I did this development in the 2.7 version of WAB are you using the latest?
I'm still in 2.5 but I can test it.
OK here is my update (developed in 2.7) The selection color is currently hard coded to be a fill color of yellow.
I'm getting item.graphic.clone is not a function error.
Hmm.. That must be because 2.5 is using an older version of the JS API. I have gone in a different direction with the selection now. Try this version.
Yeah, I was thinking that might be the issue. I'll give that one a try, thanks again Robert.
FYI, the next version has a much better implementation of the highlight.
That's awesome Robert thanks. The only thing is for me is that you've helped me customize the 2.5 version that I'm going to have to go back and find all of the custom code, but will be looking at that in the future.
Retrieving data ...