GeoFenceDrawer Constructor

Initializes the GeoFence Drawer with an initial point a bearing/facing direction.

Definition

Namespace: CoordinateSharp
Assembly: CoordinateSharp (in CoordinateSharp.dll) Version: 3.1.1.1
XMLNS for XAML: Not mapped to an xmlns.
C#
public Drawer(
	Coordinate coordinate,
	Shape earthShape,
	double initialBearing
)

Parameters

coordinate  Coordinate
Starting Coordinate
earthShape  Shape
Earth Shape for calculations
initialBearing  Double
Initial bearing or direction facing

Example

The following example creates a GeoFence Drawer.
C#
//Create a coordinate with EagerLoading off for efficiency during drawing.
Coordinate c = new Coordinate(31.65, -84.02, new EagerLoad(false));

//Create the GeoFence Drawer, specifying an ellipsoidal earth
//shape with a start bearing / direction faced of 0 degrees.
GeoFence.Drawer gd = new GeoFence.Drawer(c, Shape.Ellipsoid, 0);

See Also