Skip to main content

interface ILinearFeature

(Niantic.Lightship.Maps.Core.Features.ILinearFeature)

Overview

LinearFeature is a maptile feature that represents one or more polylines.

	interface ILinearFeature: Niantic.Lightship.Maps.Core.Features.IMapTileFeature {
// properties

Vector3[] Points;
int[] LineStrips;
};

Inherited Members

public:
// properties

FeatureKind Kind;
LayerKind Layer;
ILabelInfo Label;

Detailed Documentation

LinearFeature is a maptile feature that represents one or more polylines.

Each polyline may contain 1 or more segments and may or may not be a closed loop.

Properties

Points

Vector3[] Points

The ordered array of points.

There may be multiple line strips in this feature, the boundaries of which are determined by looking at LineStrip lengths.

LineStrips

int[] LineStrips

The number of points in each line strip.

Each entry in this array represents a different line strip, and its length determines the number of points to pull from the Points array. For instance, if this array was [5, 2, 8], then Points[0..4] is the first line strip, Points[5..6] is the second line strip, and Points[7..14] is the third line strip.