Table of Contents

ThinkGeo.MapSuite.SilverlightCore.Layer

Note: The page was created before Map Suite 10. Map Suite 10.0 organized many classes into new namespaces and assemblies as well as had a few minor breaks in compatibility. The majority of previously built code should work without modification assuming the new namespaces are added. For guidance on upgrading your existing code, please check out MapSuite 10 Upgrade Guide.

This class is the base class for all types of Layers.

Inheritance Hierarchy

Members Summary

Public Constructors

Protected Constructors

Layer()

Remarks
Parameters

Public Methods

Open()

Remarks
Return Value
Parameters

Close()

Remarks
Return Value
Parameters

GetBoundingBox()

Remarks
Return Value
Parameters

Draw(GeoCanvas,Collection<SimpleCandidate>)

Remarks
Return Value
Parameters

ToString()

Remarks
Return Value
Parameters

Equals(Object)

Remarks
Return Value
Parameters

GetHashCode()

Remarks
Return Value
Parameters

GetType()

Remarks
Return Value
Parameters

Protected Methods

OpenCore()

Remarks
Return Value
Parameters

CloseCore()

Remarks
Return Value
Parameters

GetBoundingBoxCore()

Remarks
Return Value
Parameters

DrawException(GeoCanvas,Exception)

Remarks
Return Value
Parameters

DrawExceptionCore(GeoCanvas,Exception)

Remarks
Return Value
Parameters

DrawCore(GeoCanvas,Collection<SimpleCandidate>)

Remarks
Return Value
Parameters

OnDrawingProgressChanged(DrawingProgressChangedEventArgs)

Remarks
Return Value
Parameters

Finalize()

Remarks
Return Value
Parameters

MemberwiseClone()

Remarks
Return Value
Parameters

Public Properties

IsOpen

This property returns true if the Layer is open and false if it is not.

Remarks

This method is the concrete wrapper for the abstract method IsOpenCore. Various methods on the Layer require that it be in an open state. If one of those methods is called when the state is not open, then the method will throw an exception. To enter the open state, you must call the Layer Open method. The method will raise an exception if the current Layer is already open. As this is a concrete public method that wraps a Core method, we reserve the right to add events and other logic to pre- or post-process data returned by the Core version of the method. In this way, we leave our framework open on our end, but also allow you the developer to extend our logic to suit your needs. If you have questions about this, please contact our support team as we would be happy to work with you on extending our framework.

Return Value

HasBoundingBox

This property indicates whether a Layer has a BoundingBox or not. If it has no BoundingBox, it will throw an exception when you call the GetBoundingBox() and GetFullExtent() APIs.

Remarks

The default value is false.

Return Value

DrawingTime

This property gets the last drawing time for the layer.

Remarks

We track the drawing time for the layer and report it back in this method. This is useful for determining the speed of various layers.

Return Value

Name

This property gets and sets the name for the layer.

Remarks

The name is user defined. It is useful to set, as it may be used for higher level components such as legends, etc.

Return Value

IsVisible

This property gets and set the visible state of the layer.

Remarks

If this property is set to false, the layer will not draw. We ensure this in the Draw method. This is useful for legends and other controls that control the visibility of layers.

Return Value

DrawingExceptionMode

Gets or sets the DrawExcpetionMode when exception happens.

Remarks

N/A

Return Value

Protected Properties

IsOpenCore

This property returns true if the Layer is open and false if it is not.

Remarks

Various methods on the Layer require that it be in an open state. If one of those methods is called when the state is not open, then the method will throw an exception. To enter the open state, you must call the Layer Open method. The method will raise an exception if the current Layer is already open.

Return Value

Public Events

DrawingProgressChanged N/A

Remarks

N/A

Event Arguments:DrawingProgressChangedEventArgs