I'm updating my app to use latest v4.8 JSAPI, while I found a potential bug of the API. In my application, user can switch different webmaps without refresh the page. However, after switching the webmap once, the popup window of the webmap become empty.
This issue does not exist in v4.7 API.
The issue only happens after changing "map" of a "view".
//change map
view.map = new WebMap({
portalItem: {
id: "f2e9b762544945f390ca4ac3671cfa72"
}
});
If I create the view with WebMap in constructor, everything works fine. See the code below.
//do not change map
view = new MapView({
container: "viewDiv"
map: new WebMap({
portalItem: {
id: "f2e9b762544945f390ca4ac3671cfa72"
}
}),
});
Here is a running example:
https://codepen.io/anon/pen/RBwqjz
Steps to repeat the issue with this example:
Solved! Go to Solution.
This issue has been fixed in v4.9 API. Thanks.
Just to verify, this is happening for me in Edge and Firefox on Windows. But Chrome is ok. Is that the same for you?
Hi Rene,
Thanks for your quick reply. Below are the browsers in which I saw the issue:
All the browsers mentioned above are in Windows 10 v1803 x64.
Let me know if you need additional info. Thanks.
This issue has been fixed in v4.9 API. Thanks.