ThinkGeo.com    |     Documentation    |     Premium Support

Layer Transparency

Hi Guys,


Is there a way to adjust the transparency of a layer (non raster) as a whole, if not will there be a method in the future?


John


 



I use: 
 newLayer.ZoomLevelSet.ZoomLevel04.DefaultAreaStyle.FillSolidBrush.Color = GeoColor.FromArgb(80, GeoColor.StandardColors.LightBlue) 
 hope it helps

Hi Alta, 
  
 Thanks for that, not quite what I was asking for. 
  
 A layer can have many different Pens, SolidBrushes, HatchBrushes etc when using value styles via CustomStyles.  Most other GIS systems allow you to control the transparency of the entire layer regardless of what is displayed on it, that’s what I am looking for.   
  
 Regards 
  
 John

John, 
  
 I am afraid we don’t have this feature now. We have added it to our tracking system; and consider adding it in the future. 
  
 Thanks, 
 ThinkGeo Support 


We are now able to support transparency, negative and grey-scale on all layer in Map Suite.  Three new properties relating to these features have been added to the Layer class and are available in the developer daily build on and after version 5.5.24.0.  The properties are listed below. 
  
 One important consideration is that if you set any of the three properties below to values other than the defaults it will cause the Layer to be rendered on the GeoCanvas as an image and not as vector graphics.  For viewing in the control this is not that critical however if you render to the PrinterGeoCanvas or PdfGeoCanvas just note that the layer will render as an image. 
  
 Layer.Transparency - A value from 0 to 255 that controls how transparent the layer should be.  The default is 255 which mean it is fully opaque. 
 Layer.IsGreyscale - A Boolean value that defaults to false.  If set to true the layer will be displayed in shades of grey. 
 Layer.IsNegative - A Boolean value that defaults to false.  If set to true the layer’s colors will be shown as they negative counterparts. 
  
 While it is also possible to support Blue, Red and Green color translations we have left them off as they are not as applicable to general layers.  They have been retained in the RasterLayer.  If you happen to need them on FeatureLayers or other Layers then we can add them easily.  Just let us know. 
  
 David