亲爱的社区:我们正在使用Angular作为整个应用程序的框架。在加载“esri/Map”的页面上,我们添加了一个“esri/widgets/Widget”,这个小部件是一个带有属性“message”的确认弹出窗口。当我们点击地图内的东西弹出出现正确的消息,然后我们点击它离开。但是当我们离开页面并返回并再次点击地图时,我们会得到一个奇怪的行为。渲染被调用两次,第一次使用正确的消息,第二次使用未定义的消息。有什么问题吗?我已经尝试通过执行以下操作来正确地销毁小部件和地图:这一点。mapview。destroy (); this . map . layers . removeAll (); this . map . tables . removeAll (); this . map . basemap = null ; this . map . ground = null ; this . map . destroy (); super . destroy (); } Then the beviour changes, it wont appear the second time but it will the third time?
…查看更多