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()
When displaying a ScaleBarAdornmentLayer, we need to instance a ScaleLineAdornmentLayer and add it to MapEngine. The ScaleBar will not be drawn when the CurrentExtent is outside of the world Extent(-90,180-,90,-180).
Parameters
Protected Constructors
Public Methods
GetDrawingLocation(GeoCanvas,Single,Single)
Return Value
Parameters
adornmentWidth
Type:Single
Description:N/A
adornmentHeight
Type:Single
Description:N/A
GetThreadSafetyLevel()
Return Value
Parameters
CloneDeep()
Return Value
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
RequestDrawing()
Return Value
Type:Void
Description:N/A
Parameters
RequestDrawing(RectangleShape)
Return Value
Type:Void
Description:N/A
Parameters
RequestDrawing(IEnumerable<RectangleShape>)
Return Value
Type:Void
Description:N/A
Parameters
RequestDrawing(TimeSpan)
Return Value
Type:Void
Description:N/A
Parameters
bufferTime
Type:TimeSpan
Description:N/A
RequestDrawing(RectangleShape,TimeSpan)
Return Value
Type:Void
Description:N/A
Parameters
bufferTime
Type:TimeSpan
Description:N/A
RequestDrawing(IEnumerable<RectangleShape>,TimeSpan)
Return Value
Type:Void
Description:N/A
Parameters
bufferTime
Type:TimeSpan
Description:N/A
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
UpdateScale(GeoCanvas,GeographyUnit)
Return Value
Type:Void
Description:N/A
Parameters
DrawCore(GeoCanvas,Collection<SimpleCandidate>)
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
Type:Void
Description:None
Parameters
OnRequestingDrawing(RequestingDrawingLayerEventArgs)
Return Value
Type:Void
Description:N/A
Parameters
GetThreadSafetyLevelCore()
Return Value
Parameters
CloneDeepCore()
Return Value
Parameters
OpenCore()
Return Value
Type:Void
Description:N/A
Parameters
CloseCore()
Return Value
Type:Void
Description:N/A
Parameters
GetBoundingBoxCore()
Return Value
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
OnDrawingException(DrawingExceptionLayerEventArgs)
Return Value
Type:Void
Description:N/A
Parameters
OnDrawnException(DrawnExceptionLayerEventArgs)
Return Value
Type:Void
Description:N/A
Parameters
DrawAttributionCore(GeoCanvas,String)
Return Value
Type:Void
Description:N/A
Parameters
attribution
Type:String
Description:N/A
OnDrawingAttribution(DrawingAttributionLayerEventArgs)
Return Value
Type:Void
Description:N/A
Parameters
OnDrawnAttribution(DrawnAttributionLayerEventArgs)
Return Value
Type:Void
Description:N/A
Parameters
OnDrawingProgressChanged(DrawingProgressChangedEventArgs)
Return Value
Type:Void
Description:N/A
Parameters
OnRequestedDrawing(RequestedDrawingLayerEventArgs)
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
ProjectionToDecimalDegrees
Return Value
ProjectionParametersString
Return Value
DisplayUnitString
Return Value
UnitFamily
Return Value
Thickness
Return Value
MaxWidth
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
Return Value
TextStyle
Return Value
AlternateBarBrush
Return Value
MaskBrush
Return Value
HasMask
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
Return Value
BarPen
Return Value
Width
Return Value
Height
Return Value
BackgroundMask
Return Value
Location
Return Value
XOffsetInPixel
Return Value
YOffsetInPixel
Return Value
IsOpen
Return Value
HasBoundingBox
Return Value
DrawingTime
Return Value
Name
Return Value
IsVisible
Return Value
Transparency
Return Value
IsNegative
Return Value
IsGrayscale
Return Value
DrawingExceptionMode
Return Value
Attribution
Return Value
RequestDrawingInterval
Return Value
Protected Properties
ActualWidth
Return Value
IsOpenCore
Return Value
Public Events
DrawingException