AnsweredAssumed Answered

Hit Test - Transparent Polygons

Question asked by jonathandicken on Oct 13, 2014
Latest reply on Oct 13, 2014 by JNery-esristaff

 

Hi,

 

I noticed today that some of our selection code (written using the 10.2.3 beta) was no longer working as expected for features on some of our layers. The issue occurred only on feature layers with transparent symbology defined when performing a hit test. This seemed strange, as it was working previously, so I headed over to look at the API, and found the below:

 

"When performing a hittest on a FeatureLayer with polygon based features, make sure that a non-transparent FillSymbol style is applied to the Renderer of the FeatureLayer. If no FillSymbol is applied, meaning the polygon fill is considered transparent (even though there may me a polygon outline symbol applied), the hittest will not return an RowID values."

 

Ah. This sounds like the problem. This was not the case in any of the beta releases of the runtime. Is there no way of performing a hit test on a transparent feature anymore (despite it having a solid border)?

 

I presume I must be missing something obvious?

 

Regards,

 

Jon

 

 

Outcomes