Mouse Hover To Show Data In WAB App

2339
15
06-05-2019 09:13 AM
joerodmey
MVP Alum

I have an app built in WAB that I want the mouse to trigger popups on hover. Been playing around with it a bit and trying to add code to MapManager.js in the publishMapEvent function

Tried using info window and mouse over but not luck.

Any ideas?

0 Kudos
15 Replies
RobertScheitlin__GISP
MVP Emeritus
0 Kudos
joerodmey
MVP Alum

Now I want to take that and make the popup an info window

0 Kudos
RobertScheitlin__GISP
MVP Emeritus

Joe,

   What is your understanding of the difference between a Popup and an InfoWindow?...

0 Kudos
joerodmey
MVP Alum

Or maybe ill clarify....Can the popup style be changed to something else?

0 Kudos
RobertScheitlin__GISP
MVP Emeritus

This widget is designed to show the feature standard popup on hover (just like it would if you clicked on the feature). Not sure what you mean by change the style?

0 Kudos
joerodmey
MVP Alum

More like a tooltip style

0 Kudos
RobertScheitlin__GISP
MVP Emeritus

For that you would have to take the widget as a starting point and have it show a dijit/TooltipDialog on mouse over instead of the standard esri Popup.

0 Kudos
joerodmey
MVP Alum

Thanks ill give it a shot.

I also have a map.on("click"... command and a info window that displays when a user clicks on the map. As these 2 commands will fight each other, how do I get the on click to beat out your hover widget?

0 Kudos
RobertScheitlin__GISP
MVP Emeritus

Add code in your onclick to close the tooltip.

0 Kudos