BasemapGalleryViewModel baemapEquals method incorrectly returns true

260
3
02-25-2020 01:20 PM
DylanOlin1
New Contributor

I am seeing strange behavior with the BasemapGalleryViewModel's basemapEquals method. When the two basemaps passed to the method are different sublayers of the same MapImageLayer service, the method incorrectly returns true. This is causing the the basemap gallery to highlight multiple basemaps. Pen: https://codepen.io/dolin5/pen/NWqpxWy 

Is this a bug, or am I incorrectly creating the basemaps?

Thanks.

3 Replies
AnneFitz
Esri Contributor

Hi Dylan,

Thanks for taking the time to report this. I was able to reproduce the issue - it seems like a bug. We will investigate the cause of this issue and have in fixed in an upcoming release!

Thanks,

Anne

DylanOlin1
New Contributor

Thanks Anne. 

0 Kudos
UndralBatsukh
Esri Regular Contributor

Hi @DylanOlin1

Just want to let you know that we fixed this issue at version 4.23 which will be released on 3/23/2022. 

-Undral

0 Kudos