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.
Solved! Go to Solution.
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:
Naveen,
Which version of WAB are you using?
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.
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:
Thanks Robert, it's working fine.