Bug in the sample "Swap web maps in the same view" with mapservices

418
4
08-06-2019 04:30 AM
AxelLévy
New Contributor III

Hi all, 

https://developers.arcgis.com/javascript/latest/sample-code/webmap-swap/index.html

I use this sample to display several webmaps. it works well when the layers are featurelayers. When it's mapservices, the webmap does not reload completely after a tab change. Only the base map is displayed and I need to zoom or pan to display the data.

If you want to see the issue, you can use this webmap in the sandbox

require(["esri/views/MapView", "esri/WebMap"], function(MapView, WebMap) {
var webmapids = [
"c7ca72f617ff45bb9e891aeaf5150952",
"c7ca72f617ff45bb9e891aeaf5150952",
"c7ca72f617ff45bb9e891aeaf5150952"
];

Can someone help me? Thank you

0 Kudos
4 Replies
BenElan
Esri Contributor

I can repro. Also an issue in 4.11. Does this happen when the webmaps are all different?

0 Kudos
AxelLévy
New Contributor III

Hello Ben

Yes it happens also with different webmaps.

0 Kudos
AxelLévy
New Contributor III

Hi, I'm still looking for a solution or a workaround if someone has an idea

0 Kudos
BenElan
Esri Contributor

I suggest contacting Esri Support Services to report this bug. 

https://support.esri.com/en/contact-tech-support

0 Kudos