maptips in 4.x

883
2
Jump to solution
08-28-2017 02:49 PM
MarcBate
Occasional Contributor II

I added graphics to a MapView and I want to have one of its attributes display when you mouse-over one of its graphics. Can I use TooltipDialog like I did in 3.x ? What event do I use for the mouse-over of a graphic using JS API 4.4 ?

0 Kudos
1 Solution

Accepted Solutions
RobertScheitlin__GISP
MVP Emeritus

Marc,

  See this thread for an answer to mouse events:

How do perform FeatureLayer hover in 4.3, the mouse-over event does not seem to be available 

You can use TooltipDialog just like you did in 3.x.

View solution in original post

2 Replies
RobertScheitlin__GISP
MVP Emeritus

Marc,

  See this thread for an answer to mouse events:

How do perform FeatureLayer hover in 4.3, the mouse-over event does not seem to be available 

You can use TooltipDialog just like you did in 3.x.

MarcBate
Occasional Contributor II

My features are points, and the hitTest is not returning graphics all the time when I expect it to. For example, if the symbol is 48px I want it to trigger whenever that symbol is hovered over, not just the absolute center of it.

0 Kudos