Select to view content in your preferred language

ArcGis 4.27 - CIM hitTest is NOT CORRECT - Feature's click area is too large

850
4
Jump to solution
06-26-2023 06:50 AM
michaelkdev
Regular Contributor

The CIM symbol's click area is too large when using CIMTextCymbols. When you click outside the icon's view area, the feature is still present in the hitTest results. So I assume it does not respect the frame with an icon font?

actual-hit.png



Reproduce:

Codepen: https://codepen.io/michaelk95/pen/poQReYy?editors=1000

@AnneFitz CIM related?

Thanks

0 Kudos
1 Solution

Accepted Solutions
UndralBatsukh
Esri Regular Contributor

Hi there, 

So we just fixed this issue and you will be able to test it out on our next version. Here is your app pointing to next version: https://codepen.io/U_B_U/pen/ExOWVgr?editors=1000

-Undral

View solution in original post

0 Kudos
4 Replies
UndralBatsukh
Esri Regular Contributor

Hi there, 

I am able to see the behavior you describe and we will be looking into improving hittest behavior to get the closest hit. I will update you once we update the hittest behavior.

michaelkdev
Regular Contributor

Thanks in advance!

I only see the issue with CIMTextSymbol related renderers. 

For new releases it would be nice if you could change the tolerance for the hitTest?

0 Kudos
michaelkdev
Regular Contributor

Is this fixed in api v4.28 ? @UndralBatsukh 

0 Kudos
UndralBatsukh
Esri Regular Contributor

Hi there, 

So we just fixed this issue and you will be able to test it out on our next version. Here is your app pointing to next version: https://codepen.io/U_B_U/pen/ExOWVgr?editors=1000

-Undral

0 Kudos