Table of Contents

ThinkGeo.MapSuite.Core.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

RequestDrawing()

Remarks
Return Value
Parameters

RequestDrawing(RectangleShape)

Remarks
Return Value
Parameters

RequestDrawing(IEnumerable<RectangleShape>)

Remarks
Return Value
Parameters

RequestDrawing(TimeSpan)

Remarks
Return Value
Parameters

RequestDrawing(TimeSpan,RequestDrawingBufferTimeType)

Remarks
Return Value
Parameters

RequestDrawing(RectangleShape,TimeSpan)

Remarks
Return Value
Parameters

RequestDrawing(RectangleShape,TimeSpan,RequestDrawingBufferTimeType)

Remarks
Return Value
Parameters

RequestDrawing(IEnumerable<RectangleShape>,TimeSpan)

Remarks
Return Value
Parameters

RequestDrawing(IEnumerable<RectangleShape>,TimeSpan,RequestDrawingBufferTimeType)

Remarks
Return Value
Parameters

GetThreadSafetyLevel()

Remarks
Return Value
Parameters

CloneDeep()

Remarks
Return Value
Parameters

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

RequireLinkProcess(IEnumerable<String>)

Remarks
Return Value
Parameters

DrawFeaturesWithStyleFilters(GeoCanvas,Dictionary<String,Collection<Feature»,Collection<SimpleCandidate>,ZoomLevel,RectangleShape)

Remarks
Return Value
Parameters

OnDrawingFeatures(DrawingFeaturesEventArgs)

Remarks
Return Value
Parameters

OnDrawingWrappingFeatures(DrawingWrappingFeaturesFeatureLayerEventArgs)

Remarks
Return Value
Parameters

DrawCore(GeoCanvas,Collection<SimpleCandidate>)

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

OnRequestedDrawing(RequestedDrawingLayerEventArgs)

Remarks
Return Value
Parameters

OnRequestingDrawing(RequestingDrawingLayerEventArgs)

Remarks
Return Value
Parameters

GetThreadSafetyLevelCore()

Remarks
Return Value
Parameters

CloneDeepCore()

Remarks
Return Value
Parameters

DrawException(GeoCanvas,Exception)

Remarks
Return Value
Parameters

DrawExceptionCore(GeoCanvas,Exception)

Remarks
Return Value
Parameters

OnDrawingException(DrawingExceptionLayerEventArgs)

Remarks
Return Value
Parameters

OnDrawnException(DrawnExceptionLayerEventArgs)

Remarks
Return Value
Parameters

DrawAttributionCore(GeoCanvas,String)

Remarks
Return Value
Parameters

OnDrawingAttribution(DrawingAttributionLayerEventArgs)

Remarks
Return Value
Parameters

OnDrawnAttribution(DrawnAttributionLayerEventArgs)

Remarks
Return Value
Parameters

OnDrawingProgressChanged(DrawingProgressChangedEventArgs)

Remarks
Return Value
Parameters

Finalize()

Remarks
Return Value
Parameters

MemberwiseClone()

Remarks
Return Value
Parameters

GetFiltersFromZoomLevel(ZoomLevel)

Remarks
Return Value
Parameters

GetFeaturesForDrawingWithStyleFilters(GeoCanvas,FeatureSource,IEnumerable<String>,IEnumerable<String>,RectangleShape,ZoomLevel)

Remarks
Return Value
Parameters

GetFeaturesByIdsWithStyleFilters(FeatureSource,IEnumerable<String>,IEnumerable<String>,IEnumerable<String>,RectangleShape,ZoomLevel)

Remarks
Return Value
Parameters

ApplyDrawingMargin(RectangleShape,Single,Single,Single)

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

MaxRecordsToDraw

N/A

Remarks

N/A

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

DrawingQuality

This property gets and sets the general drawing quality for the FeatureLayer's canvas.

Remarks

The DrawingQuality enumeration allows you to control, in a macro sense, the drawing quality that will be used in the GeoCanvas. Each GeoCanvas, which is responsible for drawing of the features, may have its own specialized drawing quality properties. What the DrawingQuality enumeration does is define some general guidelines for each GeoCanvas. For example, if you set the DrawingQuality to HighSpeed, then inside of the GdiPlusGeoCanvas there is a profile for HighSpeed. This profile sets specific properties, such as the smoothing mode and composing drawing mode of the GdiPlusGeoCanvas. As each GeoCanvas may have different drawing quality properties, this offers a general way to control drawing quality and speed. If you need complete control over how a specific GeoCanvas will draw, then you can set the DrawingQuality to Custom. This will tell the specific GeoCanvas to use the properties on its own object instead of one of the pre-defined profiles. If one of the profiles – such as HighSpeed or HighQuality – is set, then the specific GeoCanvas ignores its own properties for drawing quality.

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

DrawingMarginInPixel

N/A

Remarks

N/A

Return Value

GeometryValidationMode

N/A

Remarks

N/A

Return Value

RequestDrawingInterval

N/A

Remarks

N/A

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

Attribution

N/A

Remarks

N/A

Return Value

IsVisible

N/A

Remarks

N/A

Return Value

Transparency

N/A

Remarks

N/A

Return Value

BlueTranslation

N/A

Remarks

N/A

Return Value

RedTranslation

N/A

Remarks

N/A

Return Value

GreenTranslation

N/A

Remarks

N/A

Return Value

KeyColors

N/A

Remarks

N/A

Return Value

IsNegative

N/A

Remarks

N/A

Return Value

IsGrayscale

N/A

Remarks

N/A

Return Value

DrawingExceptionMode

N/A

Remarks

N/A

Return Value

Protected Properties

FetchedCount

N/A

Remarks

N/A

Return Value

FetchedBytes

N/A

Remarks

N/A

Return Value

StyleTime

N/A

Remarks

N/A

Return Value

FetchTime

N/A

Remarks

N/A

Return Value

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

RequestedDrawing N/A

Remarks

N/A

Event Arguments:RequestedDrawingLayerEventArgs

RequestingDrawing N/A

Remarks

N/A

Event Arguments:RequestingDrawingLayerEventArgs

DrawingProgressChanged N/A

Remarks

N/A

Event Arguments:DrawingProgressChangedEventArgs

DrawingException N/A

Remarks

N/A

Event Arguments:DrawingExceptionLayerEventArgs

DrawnException N/A

Remarks

N/A

Event Arguments:DrawnExceptionLayerEventArgs

DrawingAttribution N/A

Remarks

N/A

Event Arguments:DrawingAttributionLayerEventArgs

DrawnAttribution N/A

Remarks

N/A

Event Arguments:DrawnAttributionLayerEventArgs