When there is a popupTemplate at the last item of the sublayers (id: 1), the popup won't work and error will be thrown from init.js:2129.
No error when I remove the popupTemplate for sublayers id 1 only.
This only happen after we upgrade ArcGIS API for JavaScript from 4.14 to 4.15.
This is my sample code:
new MapImageLayer({
url: '...',
sublayers: [
{
id: 3,
title: 'A',
popupTemplate: {...}
},
{
id: 2,
title: 'B',
popupTemplate: {...}
},
{
id: 1,
title: 'C',
popupTemplate: {...}
}
]
});
Can you share a function test app that shows this? I tested and could not reproduce.
Sorry, I don't have a test app to show that. We are building that app via React.