ThinkGeo.MapSuite.SilverlightCore.InMemoryFeatureLayer
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 layer is backed by memory and is typically used for temporary features.
Inheritance Hierarchy
Members Summary
Public Constructors
InMemoryFeatureLayer()
Parameters
InMemoryFeatureLayer(IEnumerable<FeatureSourceColumn>,IEnumerable<Feature>)
Parameters
InMemoryFeatureLayer(IEnumerable<FeatureSourceColumn>,IEnumerable<BaseShape>)
Parameters
Protected Constructors
Public Methods
GetColumns()
You should set the column names for the data that the InternalFeatures will hold. For example, if you have some features that represent road signs, then one column you may want to add is “Sign Type”. Then, for every Feature you add to the layer, you need to add the “Sign Type” and a value to the InternalFeatures' ColumnValues dictionary. If you provide this information, then you can use things like ValueStyles, Labeling, etc. based on the columns you have defined.
Return Value
Parameters
BuildIndex()
Return Value
Type:Void
Description:N/A
Parameters
Open()
Return Value
Type:Void
Description:N/A
Parameters
Close()
Return Value
Type:Void
Description:N/A
Parameters
GetBoundingBox()
Return Value
Parameters
Draw(GeoCanvas,Collection<SimpleCandidate>)
Return Value
Type:Void
Description:N/A
Parameters
ToString()
Return Value
Type:String
Description:N/A
Parameters
Equals(Object)
Return Value
Type:Boolean
Description:N/A
Parameters
obj
Type:Object
Description:N/A
GetHashCode()
Return Value
Type:Int32
Description:N/A
Parameters
GetType()
Return Value
Type:Type
Description:N/A
Parameters
Protected Methods
OpenCore()
This abstract method is called from the concrete public method Open. The open method plays an important role, as it is responsible for initializing the Layer. Most methods on the Layer will throw an exception if the state of the Layer is not opened. When the map draws each layer, the layer will be opened as one of its first steps; then, after it is finished drawing with that layer, it will close it. In this way, we are sure to release all resources used by the Layer. When implementing the abstract method, consider opening the FeatureSource or RasterSource. You will get a chance to close these in the Close method of the Layer.
Return Value
Type:Void
Description:None
Parameters
OnDrawingFeatures(DrawingFeaturesEventArgs)
Return Value
Type:Void
Description:N/A
Parameters
OnDrawingWrappingFeatures(DrawingWrappingFeaturesFeatureLayerEventArgs)
Return Value
Type:Void
Description:N/A
Parameters
SetupTools()
Return Value
Type:Void
Description:N/A
Parameters
SetupToolsCore()
Return Value
Type:Void
Description:N/A
Parameters
CloseCore()
Return Value
Type:Void
Description:N/A
Parameters
GetBoundingBoxCore()
Return Value
Parameters
DrawCore(GeoCanvas,Collection<SimpleCandidate>)
Return Value
Type:Void
Description:N/A
Parameters
DrawException(GeoCanvas,Exception)
Return Value
Type:Void
Description:N/A
Parameters
e
Type:Exception
Description:N/A
DrawExceptionCore(GeoCanvas,Exception)
Return Value
Type:Void
Description:N/A
Parameters
e
Type:Exception
Description:N/A
OnDrawingProgressChanged(DrawingProgressChangedEventArgs)
Return Value
Type:Void
Description:N/A
Parameters
Finalize()
Return Value
Type:Void
Description:N/A
Parameters
MemberwiseClone()
Return Value
Type:Object
Description:N/A
Parameters
Public Properties
Columns
This property gets the columns of data for the InternalFeatures in this Layer.
You should set the column names for the data that the InternalFeatures will hold. For example, if you have some features that represent road signs, then one column you may want to add is “Sign Type”. Then, for every Feature you add to the layer, you need to add the “Sign Type” and a value to the InternalFeatures' ColumnValues dictionary. If you provide this information, then you can use things like ValueStyles, Labeling, etc. based on the columns you have defined.
Return Value
InternalFeatures
This property gets the dictionary that holds your InternalFeatures.
The dictionary is a quick way to access your InternalFeatures. You can easily add, remove or edit features in this dictionary and they instantly take effect in the layer. You can always use the EditTools to do the same thing, but this is a shortcut, as the data is backed in memory so it is very pliable.
Return Value
HasBoundingBox
This property checks to see if 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. In InMemoryFeatureLayer, we override this API and mark it as true.
The default implementation in the base class returns false.
Return Value
WrappingExtent
N/A
Return Value
WrappingMode
N/A
Return Value
EditTools
N/A
Return Value
FeatureIdsToExclude
N/A
Return Value
QueryTools
N/A
Return Value
FeatureSource
N/A
Return Value
ZoomLevelSet
N/A
Return Value
DrawingMarginPercentage
N/A
Return Value
IsOpen
N/A
Return Value
DrawingTime
N/A
Return Value
Name
N/A
Return Value
IsVisible
N/A
Return Value
DrawingExceptionMode
N/A
Return Value
Protected Properties
IsOpenCore
N/A
Return Value
Public Events
DrawingFeatures
N/A