ClassBreaks don’t seem to work properly for Double.NaN values.
We often use Double.NaN values to represent data that is missing or has other issues and should
stand out from numerical values.
I put in a workaround to convert these values to Double.MinValue for the map, but that is a bit of a kludge. In the following the first call works fine, but the second call will not properly update map styles.
ClassBreak classBreak = new ClassBreak(double.MinValue, AreaStyle.CreateSimpleAreaStyle(new GeoColor(alpha, geoColor), GeoColors.White));
ClassBreak classBreak = new ClassBreak(double.NaN, AreaStyle.CreateSimpleAreaStyle(new GeoColor(alpha, geoColor), GeoColors.White));