GeoFence(ListCoordinate) Constructor

Create a GeoFence using a list of coordinates A GeoFence can be either a series of lines or polygons.

Definition

Namespace: CoordinateSharp
Assembly: CoordinateSharp (in CoordinateSharp.dll) Version: 3.1.1.1
XMLNS for XAML: Not mapped to an xmlns.
C#
public GeoFence(
	List<Coordinate> coordinates
)

Parameters

coordinates  ListCoordinate
List of coordinates

Example

The following example creates a polyline base on coordinates.
C#
List<Coordinate> coords = new List<Coordinate>();

coords.Add(new Coordinate(25,63));
coords.Add(new Coordinate(26,63));
coords.Add(new Coordinate(27,63));

GeoFence gf = new GeoFence(coords);

See Also