Hi Team,
I am working on compare map view( Map1 & Map2) on single screen using ArcGIS JS API 4.27.
First I added layers on Map1 and its working fine, and on compare button open second map Map2 and trying to add previously added Layers on Map1 into Map2. But Layers are now added in Map2 but it is removed from Map1. Why?
I do not want to create 2 Layers for each Map1 & Map2.
My requirement is to add Layers which already added in Map1 into Map2 and it should not be removed from Map1.