MagneticNorthLineStyle¶
Namespace: ThinkGeo.Core
Custom line style that draws the magnetic north indicator with arrow embellishments.
public class MagneticNorthLineStyle : LineStyle
Inheritance object → Style → LineStyle → MagneticNorthLineStyle
Properties¶
XOffsetInPixel¶
This property gets and sets the X pixel offset for drawing each feature.
public float XOffsetInPixel { get; set; }
Property Value¶
float
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¶
float
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¶
Gets or sets the OuterPenDrawingLevel.
public DrawingLevel OuterPenDrawingLevel { get; set; }
Property Value¶
InnerPenDrawingLevel¶
Gets or sets the InnerPenDrawingLevel.
public DrawingLevel InnerPenDrawingLevel { get; set; }
Property Value¶
CenterPenDrawingLevel¶
Gets or sets the CenterPenDrawingLevel.
public DrawingLevel CenterPenDrawingLevel { get; set; }
Property Value¶
DirectionPointStyle¶
Gets or sets the DirectionPointStyle.
public PointStyle DirectionPointStyle { get; set; }
Property Value¶
DirectionPointInterval¶
Gets or sets the DirectionPointInterval.
public double DirectionPointInterval { get; set; }
Property Value¶
DirectionPointMinimumInterval¶
Gets or sets the DirectionPointMinimumInterval.
public double DirectionPointMinimumInterval { get; set; }
Property Value¶
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¶
bool
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¶
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¶
Gets the list of SQL-style filters applied to this style.
public Collection<string> Filters { get; }
Property Value¶
LabelDisplayMode¶
Gets the current label display mode that determines whether labels, shapes, or both are rendered.
public LabelDisplayMode LabelDisplayMode { get; }
Property Value¶
Constructors¶
MagneticNorthLineStyle()¶
Initializes a new instance of the MagneticNorthLineStyle class.
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>
Returns¶
Events¶
DrawingDirectionPoint¶
Occurs when the DrawingDirectionPoint event is raised.
public event EventHandler<DrawingDirectionPointEventArgs> DrawingDirectionPoint;