Table of Contents

Class GraticuleFeatureLayer

Namespace
ThinkGeo.Core
Assembly
ThinkGeo.Core.dll

GraticuleFeatureLayer shows Meridians and Parallels displaying through the map. Meridians are lines of longitude and they have a North South orientation. Parallels are lines of latitude and they have an East West orientation. Showing graticule for latitude and longitude is a standard way in cartography to give spatial references to the users.

public class GraticuleFeatureLayer : FeatureLayer
Inheritance
GraticuleFeatureLayer
Inherited Members

Constructors

GraticuleFeatureLayer()

This is the default constructor of the class.

public GraticuleFeatureLayer()

Remarks

If use this constructor, the projection is null.

GraticuleFeatureLayer(int)

This constructor creates GraticuleFeatureLayer with custom graticuleDensity

public GraticuleFeatureLayer(int graticuleDensity)

Parameters

graticuleDensity int

Properties

GraticuleLineStyle

Gets or Sets the LineStyle of the Meridians and Parallels.

public LineStyle GraticuleLineStyle { get; set; }

Property Value

LineStyle

GraticuleTextBrush

Gets or Sets the GeoBrush of the Meridians and Parallels.

public GeoBrush GraticuleTextBrush { get; set; }

Property Value

GeoBrush

GraticuleTextFont

Gets or Sets the GeoFont of the Meridians and Parallels.

public GeoFont GraticuleTextFont { get; set; }

Property Value

GeoFont

GraticuleTextHaloPen

public GeoPen GraticuleTextHaloPen { get; set; }

Property Value

GeoPen

WrappingExtent

Gets or sets the wrapping extent.

public RectangleShape WrappingExtent { get; set; }

Property Value

RectangleShape

The wrapping extent.

WrappingMode

Thie property gets or sets whether allow wrap date line.

public WrappingMode WrappingMode { get; set; }

Property Value

WrappingMode

Methods

DrawCore(GeoCanvas, Collection<SimpleCandidate>)

This method draws the AdornmentLayer.

protected override void DrawCore(GeoCanvas canvas, Collection<SimpleCandidate> labelsInAllLayers)

Parameters

canvas GeoCanvas

This parameter is the view object (or a NativeImage) to draw on.

labelsInAllLayers Collection<SimpleCandidate>

This parameter represents the labels used for collision detection and duplication checking.

Remarks

This virtual method is called from the concrete public method Draw. This method draws the representation of the layer based on the extent you provided.

You can use the full power of the GeoCanvas to do the drawing.

Exceptions

ArgumentNullException

If you pass a null as the geoCanvas, we will throw an ArgumentNullException.

ArgumentNullException

If you pass a null as the labelsInAllLayers, we will throw an ArgumentNullException.

ArgumentOutOfRangeException

If you pass in a mapUnit that is not defined in the enumeration, it will throw a ArgumentOutOfRangeException.

IsDrawingNeededCore(double)

protected override bool IsDrawingNeededCore(double currentScale)

Parameters

currentScale double

Returns

bool