Loading KML layer gives duplicate sublayers

363
2
02-06-2022 01:39 AM
HanochS
New Contributor II

Hi,

I have an issues with loading and showing kml layers in LayerList widget . The issue is that I can see that the LayerList is  duplicating the layer name and can see it as a sub layer.

I tried to do the same in arcgis online sample code and I got the same results.

this is the layer I am trying to load but basically it s happening for all kml layers

"https://googlearchive.github.io/js-v2-samples/ggeoxml/cta.kml"

I attached the result.

 

 

0 Kudos
2 Replies
UndralBatsukh
Esri Regular Contributor

Hi there, 

You can hide the sublayers in the layerList by setting the KMLLayer's listMode to hide-children.

0 Kudos
UndralBatsukh
Esri Regular Contributor

OK I see what you are saying. We will create an issue for this and will let you know once we resolve it. 

-Undral

0 Kudos