Register  |  Login
ThinkGeo - GPS Tracking and Mapping Solutions  |  Visit the Wiki  |  Find us on: Twitter Facebook Google+ LinkedIn

Discussion Forums

The online community for users of Map Suite GIS components

Add a Layer Transparency property.
Last Post 05-22-2012 02:35 PM by ThinkGeo. 2 Replies.
Printer Friendly
Sort:
PrevPrev NextNext
Topic is locked
Author Messages Resolved
ThinkGeoUser is Offline
ThinkGeo Support
MVP
MVP
Posts:845
Avatar

--
04-06-2011 03:02 PM

Add a Layer Transparency property.

Applies to Map Suite Desktop, WPF Desktop, Web, Silverlight and Services Editions.

This would add the ability to control the transparency (a.k.a. opacity) of an entire layer independently of its style.

The idea for this enhancement was first raised in this discussion thread.

Need to know how to do something with Map Suite? Check our Wiki Code Samples Library and view the source code of any sample right in your web browser.

Tags: Map Suite Desktop Edition, Map Suite WPF Desktop Edition, Map Suite Web Edition, Map Suite Silverlight Edition, Map Suite Services Edition
DavidUser is Offline
MVP
MVP
Posts:1534
Avatar

--
12-05-2011 03:45 AM
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
- Need sample code? Check out the Map Suite Code Community at http://code.thinkgeo.com
ThinkGeoUser is Offline
ThinkGeo Support
MVP
MVP
Posts:845
Avatar

--
05-22-2012 02:35 PM

This enhancement is now officially available in Map Suite version 6.0.0.0 and higher.

Need to know how to do something with Map Suite? Check our Wiki Code Samples Library and view the source code of any sample right in your web browser.

Topic is locked

Active Forums 4.2