arcgis popup关闭事件

In 3.x you look for the popups hide event

https://developers.arcgis.com/javascript/3/jsapi/popup-amd.html#event-hide 

 

In 4.x

 watchUtils.whenTrue(view.popup,'visible', function(){
          watchUtils.whenFalseOnce(view.popup,'visible', function(){
            console.info('popup has been closed');
          })
        });‍‍‍‍‍

 

posted @ 2022-01-22 10:17  zhh  阅读(491)  评论(0编辑  收藏  举报