KMLLayer Toggle Visibility of a Feature

539
3
07-08-2019 05:48 PM
SeanMcCullough
New Contributor

Hi,

I was wondering if there is a way to toggle the visibility a feature in a KMLLayer? Changing the visibility of graphics in the KMLLayerView (allVisiblePoints, allVisiblePolygons, etc) does nothing and I don't see anything similar to the "applyEdits" method found in a FeatureLayer.

0 Kudos
3 Replies
RobertScheitlin__GISP
MVP Emeritus
0 Kudos
SeanMcCullough
New Contributor

I have looked into KMLSubLayer before but, as far as I know, the best that can do is set the visibility of a folder. I was wondering if there was a way to set the visibility of a single feature/graphic within that folder.

0 Kudos
RobertScheitlin__GISP
MVP Emeritus

Sean,

   Sorry I am not aware of a way to change the visibility of an individual feature.

0 Kudos