Table of Contents

ThinkGeo.MapSuite.Core.RestrictionLayer

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 can show or hide one or many zones that you want to restrict from being displayed. You can use the specified style to decorate the zones and set the lower/upper scale to control at which zoom levels you want to show or hide the zones. The default decoration style is a hatch pattern. You can change this to a circle with slash image, or, if you want a different look, you can use custom styles.

Inheritance Hierarchy

Members Summary

Public Constructors

RestrictionLayer()

Initializes a new instance of the RestictionLayer class.

Remarks

N/A

Parameters

RestrictionLayer(IEnumerable<AreaBaseShape>)

Initializes a new instance of the RestictionLayer class for the specified zones.

Remarks

N/A

Parameters

RestrictionLayer(IEnumerable<AreaBaseShape>,RestrictionMode)

Initializes a new instance of the RestictionLayer class for the specified zones and restriction mode.

Remarks

N/A

Parameters

RestrictionLayer(IEnumerable<AreaBaseShape>,RestrictionMode,Double,Double)

Initializes a new instance of the RestictionLayer class for the specified zones, restriction mode, upper scale and lower scale.

Remarks

N/A

Parameters

Protected Constructors

Public Methods

RequestDrawing()

N/A

Remarks

N/A

Return Value
Parameters

RequestDrawing(RectangleShape)

N/A

Remarks

N/A

Return Value
Parameters

RequestDrawing(IEnumerable<RectangleShape>)

N/A

Remarks

N/A

Return Value
Parameters

RequestDrawing(TimeSpan)

N/A

Remarks

N/A

Return Value
Parameters

RequestDrawing(TimeSpan,RequestDrawingBufferTimeType)

N/A

Remarks

N/A

Return Value
Parameters

RequestDrawing(RectangleShape,TimeSpan)

N/A

Remarks

N/A

Return Value
Parameters

RequestDrawing(RectangleShape,TimeSpan,RequestDrawingBufferTimeType)

N/A

Remarks

N/A

Return Value
Parameters

RequestDrawing(IEnumerable<RectangleShape>,TimeSpan)

N/A

Remarks

N/A

Return Value
Parameters

RequestDrawing(IEnumerable<RectangleShape>,TimeSpan,RequestDrawingBufferTimeType)

N/A

Remarks

N/A

Return Value
Parameters

GetThreadSafetyLevel()

N/A

Remarks

N/A

Return Value
Parameters

CloneDeep()

N/A

Remarks

N/A

Return Value
Parameters

Open()

N/A

Remarks

N/A

Return Value
Parameters

Close()

N/A

Remarks

N/A

Return Value
Parameters

GetBoundingBox()

N/A

Remarks

N/A

Return Value
Parameters

Draw(GeoCanvas,Collection<SimpleCandidate>)

N/A

Remarks

N/A

Return Value
Parameters

ToString()

N/A

Remarks

N/A

Return Value
Parameters

Equals(Object)

N/A

Remarks

N/A

Return Value
Parameters

GetHashCode()

N/A

Remarks

N/A

Return Value
Parameters

GetType()

N/A

Remarks

N/A

Return Value
Parameters

Protected Methods

GetBoundingBoxCore()

This method returns the bounding box of the zones.

Remarks

This method returns the bounding box of the zones.

Return Value
Parameters

DrawCore(GeoCanvas,Collection<SimpleCandidate>)

This method draws the Layer.

Remarks

This abstract method is called from the concrete public method Draw. This method draws the representation of the layer based on the extent you provided. When implementing this abstract method, consider each feature and its column data values. You can use the full power of the GeoCanvas to do the drawing. If you need column data for a feature, be sure to override the GetRequiredColumnNamesCore and add the columns you need to the collection. In many of the styles, we add properties to allow the user to specify which field they need; then, in the GetRequiredColumnNamesCore, we read that property and add it to the collection.

Return Value
Parameters

OnRequestedDrawing(RequestedDrawingLayerEventArgs)

N/A

Remarks

N/A

Return Value
Parameters

OnRequestingDrawing(RequestingDrawingLayerEventArgs)

N/A

Remarks

N/A

Return Value
Parameters

GetThreadSafetyLevelCore()

N/A

Remarks

N/A

Return Value
Parameters

CloneDeepCore()

N/A

Remarks

N/A

Return Value
Parameters

OpenCore()

N/A

Remarks

N/A

Return Value
Parameters

CloseCore()

N/A

Remarks

N/A

Return Value
Parameters

DrawException(GeoCanvas,Exception)

N/A

Remarks

N/A

Return Value
Parameters

DrawExceptionCore(GeoCanvas,Exception)

N/A

Remarks

N/A

Return Value
Parameters

OnDrawingException(DrawingExceptionLayerEventArgs)

N/A

Remarks

N/A

Return Value
Parameters

OnDrawnException(DrawnExceptionLayerEventArgs)

N/A

Remarks

N/A

Return Value
Parameters

DrawAttributionCore(GeoCanvas,String)

N/A

Remarks

N/A

Return Value
Parameters

OnDrawingAttribution(DrawingAttributionLayerEventArgs)

N/A

Remarks

N/A

Return Value
Parameters

OnDrawnAttribution(DrawnAttributionLayerEventArgs)

N/A

Remarks

N/A

Return Value
Parameters

OnDrawingProgressChanged(DrawingProgressChangedEventArgs)

N/A

Remarks

N/A

Return Value
Parameters

Finalize()

N/A

Remarks

N/A

Return Value
Parameters

MemberwiseClone()

N/A

Remarks

N/A

Return Value
Parameters

Public Properties

UpperScale

Specifies the upper threshold of the layer.

Remarks

If Restriction mode is ShowZones:If currentScale is greater than UpperScale, it will hide the whole map; otherwise, it will show the specified zones.If Restriction mode is HideZones:If currentScale is less than or equal to UpperScale and greater than or equal to LowerScale, it will hide the specified zones; otherwise, it will do nothing.

Return Value

LowerScale

Specifies the lower threshold of the layer.

Remarks

If Restriction mode is ShowZones:If currentScale is less than LowerScale, it will hide the whole map; otherwise, it will show the specified zones.If Restriction mode is HideZones:if currentScale is less than or equal to UpperScale and greater than or equal to LowerScale, it will hide the specified zones; otherwise it will do nothing.

Return Value

CustomStyles

Allows you to add custom styles to decorate restriction zones. In this case, you must set RestrictionStyle to UseCustomStyles as well.

Remarks

N/A

Return Value

RestrictionMode

Specifies whether you want to show or hide zones.

Remarks

N/A

Return Value

Zones

Specifies the areas you want to restrict.

Remarks

N/A

Return Value

RestrictionStyle

Specifies the display style of the restriction zones.

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

IsOpenCore

N/A

Remarks

N/A

Return Value

Public Events

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