ThinkGeo Cloud
ThinkGeo UI Controls
ThinkGeo Open Source
Help and Support
External Resources
ThinkGeo Cloud
ThinkGeo UI Controls
ThinkGeo Open Source
Help and Support
External Resources
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.
N/A
RestrictionLayer(IEnumerable<AreaBaseShape>)
Initializes a new instance of the RestictionLayer class for the specified zones.
N/A
RestrictionLayer(IEnumerable<AreaBaseShape>,RestrictionMode)
Initializes a new instance of the RestictionLayer class for the specified zones and restriction mode.
N/A
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.
N/A
N/A
N/A
N/A
N/A
N/A
RequestDrawing(RectangleShape,TimeSpan)
N/A
N/A
RequestDrawing(RectangleShape,TimeSpan,RequestDrawingBufferTimeType)
N/A
N/A
RequestDrawing(IEnumerable<RectangleShape>,TimeSpan)
N/A
N/A
RequestDrawing(IEnumerable<RectangleShape>,TimeSpan,RequestDrawingBufferTimeType)
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
This method returns the bounding box of the zones.
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.
OnRequestedDrawing(RequestedDrawingLayerEventArgs)
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
DrawExceptionCore(GeoCanvas,Exception)
N/A
N/A
OnDrawingException(DrawingExceptionLayerEventArgs)
N/A
N/A
N/A
N/A
OnDrawingAttribution(DrawingAttributionLayerEventArgs)
N/A
N/A
N/A
N/A
N/A
N/A
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.
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.
Allows you to add custom styles to decorate restriction zones. In this case, you must set RestrictionStyle to UseCustomStyles as well.
N/A
Specifies whether you want to show or hide zones.
N/A
N/A
Specifies the display style of the restriction zones.
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
Event Arguments:DrawnAttributionLayerEventArgs