SetVisibilityByIDs() public method

Set the folders visibility from an enumeration of Ids. These Ids are those used by the webmaps.
This method is mainly useful for the webmap serializer
public SetVisibilityByIDs ( IEnumerable IDs ) : void
IDs IEnumerable Enumeration of visible folder ID.
return void
 public static void SetVisibleLayerIDs(KmlLayer layer, string value)
 {
     layer.SetValue(VisibleLayerIDsProperty, value);
     if (!string.IsNullOrEmpty(value))
     {
         layer.SetVisibilityByIDs(value.Split(',').Select(p => Convert.ToInt32(p)));
     }
 }