Not showing any label when I hover on My Location and Zoom Slider widgets WAB

350
4
Jump to solution
07-07-2017 03:45 AM
Naveen_KumarKairamkonda
Occasional Contributor

Hi,

When I hover on On Screen widgets like 'My Location' widget, it's not showing any tooltip text(label) and also for 'Zoom Slider', its not showing 'Zoom in' and 'Zoom Out'.

Please suggest on this.

Thanks in advance.

Regards,

Naveen Kumar.

0 Kudos
1 Solution

Accepted Solutions
RobertScheitlin__GISP
MVP Esteemed Contributor

Naveen,

   That was something that was fixed in later releases of WAB. But if you are stuck using 2.0 then here are the code changes to fix those tooltips:

 In the ZoomSlider Widget.js add line 5 an 6:

      postCreate: function(){
        this.inherited(arguments);
        this.own(on(this.map, 'zoom-end', lang.hitch(this, this._zoomHandler)));
        this._zoomHandler();
        this.btnZoomIn.title = "Zoom In";
        this.btnZoomOut.title = "Zoom Out";
      },

For the my location widget follow the code in this thread:

https://community.esri.com/thread/166256 

View solution in original post

0 Kudos
4 Replies
RobertScheitlin__GISP
MVP Esteemed Contributor

Naveen,

   Which version of WAB are you using?

0 Kudos
Naveen_KumarKairamkonda
Occasional Contributor

Thanks for the reply.

I was using WAB v2.0, now I have to make a change in the application which was developed using v2.0.

0 Kudos
RobertScheitlin__GISP
MVP Esteemed Contributor

Naveen,

   That was something that was fixed in later releases of WAB. But if you are stuck using 2.0 then here are the code changes to fix those tooltips:

 In the ZoomSlider Widget.js add line 5 an 6:

      postCreate: function(){
        this.inherited(arguments);
        this.own(on(this.map, 'zoom-end', lang.hitch(this, this._zoomHandler)));
        this._zoomHandler();
        this.btnZoomIn.title = "Zoom In";
        this.btnZoomOut.title = "Zoom Out";
      },

For the my location widget follow the code in this thread:

https://community.esri.com/thread/166256 

0 Kudos
Naveen_KumarKairamkonda
Occasional Contributor

Thanks Robert, it's working fine.

0 Kudos