Table of Contents

ThinkGeo.MapSuite.SilverlightCore.FeatureLayer

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 represents a layer that is comprised of feature data.

Inheritance Hierarchy

Members Summary

Public Constructors

Protected Constructors

FeatureLayer()

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

OnDrawingFeatures(DrawingFeaturesEventArgs)

Remarks
Return Value
Parameters

OnDrawingWrappingFeatures(DrawingWrappingFeaturesFeatureLayerEventArgs)

Remarks
Return Value
Parameters

SetupTools()

Remarks
Return Value
Parameters

SetupToolsCore()

Remarks
Return Value
Parameters

OpenCore()

Remarks
Return Value
Parameters

CloseCore()

Remarks
Return Value
Parameters

GetBoundingBoxCore()

Remarks
Return Value
Parameters

DrawCore(GeoCanvas,Collection<SimpleCandidate>)

Remarks
Return Value
Parameters

DrawException(GeoCanvas,Exception)

Remarks
Return Value
Parameters

DrawExceptionCore(GeoCanvas,Exception)

Remarks
Return Value
Parameters

OnDrawingProgressChanged(DrawingProgressChangedEventArgs)

Remarks
Return Value
Parameters

Finalize()

Remarks
Return Value
Parameters

MemberwiseClone()

Remarks
Return Value
Parameters

Public Properties

WrappingExtent

N/A

Remarks

N/A

Return Value

WrappingMode

Thie property gets or sets whether allow wrap date line.

Remarks

N/A

Return Value

EditTools

This property gets the EditTools that allow you to easily edit InternalFeatures in the Feature Layer.

Remarks

The EditTools are supplied as an easily accessible wrapper for the editing methods of the FeatureSource.

Return Value

FeatureIdsToExclude

A collection of strings representing record id of features not to get in the Layer.

Remarks

This string collection is a handy place to specify what records not to get from the source. Suppose you have a shape file of roads and you want to hide the roads within a particular rectangle, simply execute GetFeaturesInsideBoundingBox() and add the id of the return features to the collection and forget about them. Since you can set this by Layer it makes is easy to determine what to and what not to.

Return Value

QueryTools

This property gets the QueryTools that allow you to easily query Features from the Feature Layer.

Remarks

This property gets the QueryTools that allow you to easily query Features from the Feature Layer. The QueryTools are supplied as an easily accessible wrapper for the query methods of the FeatureSource.

Return Value

FeatureSource

This property gets the FeatureSource for the FeatureLayer.

Remarks

The FeatureSource is the provider of data to the FeatureLayer. There are different FeatureSource classes to match the various ways that feature data is stored. It is important that, when you inherit from the FeatureLayer, in the constructor you set the FeatureSource you want to use.

Return Value

ZoomLevelSet

This property gets and sets the ZoomLevelSet, which contains the specific zoom levels for the FeatureLayer.

Remarks

The ZoomLevelSet is a class that contains all of the ZoomLevels for the FeatureLayer. Each ZoomLevel contains the styles that are used to determine how to draw the InternalFeatures.

Return Value

DrawingMarginPercentage

This property gets and sets the extra drawing margin as a percentage around the map that draw to ensure that labeling is correct.

Remarks

This extra margin that we draw exists so that labels match up if they are partially cut off.

Return Value

IsOpen

N/A

Remarks

N/A

Return Value

HasBoundingBox

N/A

Remarks

N/A

Return Value

DrawingTime

N/A

Remarks

N/A

Return Value

Name

N/A

Remarks

N/A

Return Value

IsVisible

N/A

Remarks

N/A

Return Value

DrawingExceptionMode

N/A

Remarks

N/A

Return Value

Protected Properties

IsOpenCore

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

Remarks

Various methods on the FeatureLayer 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 FeatureLayer Open method. The method will raise an exception if the current FeatureLayer is already open.

Return Value

Public Events

DrawingFeatures This event is raised when features are about to be drawn in the layer.

Remarks

This event is raised when features are about to be drawn in the layer. In the event arguments, there is a collection of features to be drawn. You can easily add or remove items from this collection so that extra items will draw or not draw.

Event Arguments:DrawingFeaturesEventArgs

DrawingWrappingFeatures N/A

Remarks

N/A

Event Arguments:DrawingWrappingFeaturesFeatureLayerEventArgs

DrawingProgressChanged N/A

Remarks

N/A

Event Arguments:DrawingProgressChangedEventArgs