static string ToCustomStyleEntryState(MapIconState state) { if (state.HasFlag(MapIconState.Disabled)) { return("disabled"); } else if (state.HasFlag(MapIconState.Selected)) { return("myNamespace.selected"); } else if (state.HasFlag(MapIconState.Hover)) { return("myNamespace.hover"); } else { return(string.Empty); } }
static string ToDefaultStyleEntryState(MapIconState state) { if (state.HasFlag(MapIconState.Disabled)) { return(MapStyleSheetEntryStates.Disabled); } else if (state.HasFlag(MapIconState.Selected)) { return(MapStyleSheetEntryStates.Selected); } else if (state.HasFlag(MapIconState.Hover)) { return(MapStyleSheetEntryStates.Hover); } else { return(string.Empty); } }