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()

Remarks
Parameters

RestrictionLayer(IEnumerable<AreaBaseShape>)

Remarks
Parameters

RestrictionLayer(IEnumerable<AreaBaseShape>,RestrictionMode)

Remarks
Parameters

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

Remarks
Parameters

Protected Constructors

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

GetBoundingBoxCore()

Remarks
Return Value
Parameters

DrawCore(GeoCanvas,Collection<SimpleCandidate>)

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

OpenCore()

Remarks
Return Value
Parameters

CloseCore()

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

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