Hi,
I am using web app builder for creating custom widgets and there is a requirement user wants to use onclick coordinates even though there is no data on the map. Infowindow is appearing and hiding when there is nothing on the map. How to stop disappearing info window even though there is no data on the map?
Thanks
Srikanth
Srikanth,
In your widget you can disable popups using this line of code:
this.map.setInfoWindowOnClick(false);
HI Robert,
I just want infowindow appear and stay there.. don't want info window appear and disappear when there is no data.. Please see the video for the issue.
Thanks
Srikanth
Then I think you want to set the popup visiblewhenempty property to true then
https://developers.arcgis.com/javascript/3/jsapi/popup-amd.html#visiblewhenempty
this.map.infoWindow.visibleWhenEmpty = true;
Excellent. Marvellous .. Mindblowing..
This is a big thing for me.. Simple alternative solution for a already existing big solution.