Select to view content in your preferred language

hitTest() and PictureMarkerSymbol

363
2
05-10-2022 01:43 AM
snlasystem
Occasional Contributor

Is it possible to get hitTest to also trigger on the PictureMarkerSymbol representing the graphic (not just the geometry)?

 

An example shoving that the hover effect only triggers when the pointer is halfway through the icon.

0 Kudos
2 Replies
ReneRubalcava
Honored Contributor

This is updated in our "next" version of the API, so it will be 4.24

@UndralBatsukh put together a sample here https://codepen.io/U_B_U/pen/abEMrzq?editors=1000

0 Kudos
JoelBennett
MVP Regular Contributor

Note, this is only an issue when using (1) PictureMarkerSymbols with offsets, and (2) version 4.23 of the API.  It works fine in 4.22.  See also this post.

0 Kudos