ThinkGeo.com    |     Documentation    |     Premium Support

ValueStyle : Column value different from values specified

Hello everyone,


I would like to know if it's possible to set a default style if the column value is different from the values specified in the ValueStyle ?


If my values are 1, 2, 3, 4, 5, 6, 7, 8, 9 and the value in the column is 10, nothing is display.


Thanks in advance.



Pierre, 
  
 Yes, I can do it. But you need to add your default style to ZoomLevel.CustomStyles instead of set ZoomLevel.DefaultAreaStyle. 
 For example, 
             layer.ZoomLevelSet.ZoomLevel01.CustomStyles.Add(AreaStyles.County1); 
             layer.ZoomLevelSet.ZoomLevel01.CustomStyles.Add(valueStyle); 
  
 And if you use this way, the valueStyle color or brush should be opacity, it can cover the default style. When no one match any value item, valueStyle doesn’t draw, the default style can see. 
  
 It might not very good solution because actually it draw twice, but I just have this idea so far. If you get better way I will let you know. 
  
 Thanks 
 James