Table of Contents

ThinkGeo.MapSuite.Core.ScaleBarAdornmentLayer

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.

The ScaleBarAdornmentLayer class allows you show a bar graphic on the map that displays the distance scale for the current map extent.

Inheritance Hierarchy

Members Summary

Public Constructors

ScaleBarAdornmentLayer()

Remarks
Parameters

Protected Constructors

Public Methods

GetDrawingLocation(GeoCanvas,Single,Single)

Remarks
Return Value
Parameters

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

UpdateScale(GeoCanvas,GeographyUnit)

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

GetBoundingBoxCore()

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

ProjectionToDecimalDegrees

Gets or sets a Proj4 projection parameter string which shows what coordinate system the map is using.

Remarks

N/A

Return Value

DisplayUnitString

This propery is a dictionary that exposes what text will be drawn to represent the ScaleLine Unit.

Remarks

We will display different letters for different units of measure; for example: “m” for meters, “ft” for feet, etc.

Return Value

UnitFamily

Gets or sets the UnitSystem (Imperial/Metric) to be used for the ScaleBar.

Remarks

By setting this property, you can control whether to use a metric or imperial measurement system for the ScaleBar.

Return Value

Thickness

Gets or sets the thickness of the ScaleBar. It is an integer value representing the height of the ScaleBar in screen units.

Remarks

N/A

Return Value

MaxWidth

Gets or Sets the MaxWidth of the ScaleBar.

Remarks

You can use this property to set the maximum width that you want the ScaleBar to occupy on the map. The ScaleBarAdornmentLayer will automatically adjust its size based upon the current extent of the map. By setting this property, you can control the maximum width the ScaleBar will occupy on the map.

Return Value

BarBrush

The property is the GeoBrush that will be used to draw the ScaleBar.

Remarks

This BarBrush property will give you full control over the appearance of the ScaleBarAdornmentLayer.

Return Value

TextStyle

N/A

Remarks

N/A

Return Value

AlternateBarBrush

The property is the GeoBrush that will be used to draw the alternate ScaleBar.

Remarks

This AlternateBarBrush property will give you full control over the appearance of the ScaleBarAdornmentLayer.

Return Value

MaskBrush

Gets or sets the color for the ScaleBarAdornmentLayer's mask, if the HasMask property is set to true.

Remarks

N/A

Return Value

HasMask

Gets or sets whether the ScaleBar will have a mask or not. A boolean value representing whether or not a mask is shown.

Remarks

Depending upon the look of your map and your requirements, you may or may not want a mask on the ScaleBar. You can control whether or not the ScaleBar has a mask by setting this property. If you set the HasMask property to true, be sure to specify a mask color (or texture) by using the MaskBrush property.

Return Value

MaskContour

Gets or sets the pen for the outline of the ScaleBar mask.

Remarks

By using this property you can control the border of the mask, if the HasMask property is set to true. If you do not want a contour or border to show, you should set the pen to transparent.

Return Value

BarPen

N/A

Remarks

N/A

Return Value

Width

N/A

Remarks

N/A

Return Value

Height

N/A

Remarks

N/A

Return Value

BackgroundMask

N/A

Remarks

N/A

Return Value

Location

N/A

Remarks

N/A

Return Value

XOffsetInPixel

N/A

Remarks

N/A

Return Value

YOffsetInPixel

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

ActualWidth

N/A

Remarks

N/A

Return Value

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