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);<SPAN class="line-numbers-rows"><SPAN></SPAN></SPAN>
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.
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.
Les membres connectés peuvent publier, suivre les mises à jour, et plus encore. Nouveau ici ? Inscrivez-vous gratuitement.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.