Skip to content

MagneticNorthLineStyle

Namespace: ThinkGeo.Core

public class MagneticNorthLineStyle : LineStyle

Inheritance ObjectStyleLineStyleMagneticNorthLineStyle

Properties

XOffsetInPixel

This property gets and sets the X pixel offset for drawing each feature.

public float XOffsetInPixel { get; set; }

Property Value

Single
This property gets the X pixel offset for drawing each feature.

Remarks:

This property allows you to specify an X offset. When combined with a Y offset, it is useful to allow you to achieve effects such as drop shadows, etc. There also may be times when you need to modify the location of feature data so as to better align it with raster satellite data.

YOffsetInPixel

This property gets and sets the Y pixel offset for drawing each feature.

public float YOffsetInPixel { get; set; }

Property Value

Single
This property gets the Y pixel offset for drawing each feature.

Remarks:

This property allows you to specify an Y offset. When combined with an X offset, it is useful to allow you to achieve effects such as drop shadows, etc. There also may be times when you need to modify the location of feature data so as to better align it with raster satellite data.

CustomLineStyles

This property returns a collection of line styles, allowing you to stack multiple line styles on top of each other.

public Collection<LineStyle> CustomLineStyles { get; }

Property Value

Collection<LineStyle>
This property returns a collection of line styles.

Remarks:

Using this collection, you can stack multiple styles on top of each other. When we draw the feature, we will draw them in order that they exist in the collection. You can use these stacks to create drop shadow effects, multiple colored outlines, etc.

OuterPen

This property gets and sets the outer pen for the line.

public GeoPen OuterPen { get; set; }

Property Value

GeoPen
This property gets the outer pen for the line.

Remarks:

You can set an inner, outer and center pen to give you a nice effect. The outer pen draws first, and should typically be black and larger then the inner pen. The inner pen draws next, and should be set as the color of the road you want. It should be thinner than the outer pen. The center pen draws last, and is used to represent a centerline in the road. We suggest that you only use the center pen for highways at low zoom level, as the dashed pen has some performance penalties.

InnerPen

This property gets and sets the inner pen for the line.

public GeoPen InnerPen { get; set; }

Property Value

GeoPen
This property gets the inner pen for the line.

Remarks:

You can set an inner, outer and center pen to give you a nice effect. The outer pen draws first, and should typically be black and larger then the inner pen. The inner pen draws next, and should be set as the color of the road you want. It should be thinner than the outer pen. The center pen draws last, and is used to represent a centerline in the road. We suggest that you only use the center pen for highways at low zoom level, as the dashed pen has some performance penalties.

CenterPen

This property gets and sets the center pen for the line.

public GeoPen CenterPen { get; set; }

Property Value

GeoPen
This property gets the center pen for the line.

Remarks:

You can set an inner, outer and center pen to give you a nice effect. The outer pen draws first, and should typically be black and larger then the inner pen. The inner pen draws next, and should be set as the color of the road you want. It should be thinner than the outer pen. The center pen draws last, and is used to represent a centerline in the road. We suggest that you only use the center pen for highways at low zoom level, as the dashed pen has some performance penalties.

OuterPenDrawingLevel

public DrawingLevel OuterPenDrawingLevel { get; set; }

Property Value

DrawingLevel

InnerPenDrawingLevel

public DrawingLevel InnerPenDrawingLevel { get; set; }

Property Value

DrawingLevel

CenterPenDrawingLevel

public DrawingLevel CenterPenDrawingLevel { get; set; }

Property Value

DrawingLevel

DirectionPointStyle

public PointStyle DirectionPointStyle { get; set; }

Property Value

PointStyle

DirectionPointInterval

public double DirectionPointInterval { get; set; }

Property Value

Double

DirectionPointMinimumInterval

public double DirectionPointMinimumInterval { get; set; }

Property Value

Double

Name

This property gets and set the name of the style.

public string Name { get; set; }

Property Value

String
This property gets the name of the style.

Remarks:

This name is not used by the system; it is only for the developer. However, it can be used if you generate your own legend.

IsActive

This property gets and sets the active status of the style.

public bool IsActive { get; set; }

Property Value

Boolean
This property gets the active status of the style.

Remarks:

If the style is not active then it will not draw.

RequiredColumnNames

This property gets the collection of fields that are required for the style.

public Collection<string> RequiredColumnNames { get; }

Property Value

Collection<String>

        This property gets the collection of fields that are required for the
        style.

Remarks:

This property gets the collection of fields that are required for the style. These are in addition to any other columns you specify in styles that inherit from this one. For example, if you have use a ValueStyle and it requires a column name for the value comparison, then that column does not need to be in this collection. You only use the RequiredColumnNames for columns you need beyond those required by specific inherited styles.

Filters

public Collection<string> Filters { get; }

Property Value

Collection<String>

Constructors

MagneticNorthLineStyle()

public MagneticNorthLineStyle()

Methods

DrawCore(IEnumerable<Feature>, GeoCanvas, Collection<SimpleCandidate>, Collection<SimpleCandidate>)

protected void DrawCore(IEnumerable<Feature> features, GeoCanvas canvas, Collection<SimpleCandidate> labelsInThisLayer, Collection<SimpleCandidate> labelsInAllLayers)

Parameters

features IEnumerable<Feature>

canvas GeoCanvas

labelsInThisLayer Collection<SimpleCandidate>

labelsInAllLayers Collection<SimpleCandidate>

Events

DrawingDirectionPoint

public event EventHandler<DrawingDirectionPointEventArgs> DrawingDirectionPoint;