Loading...
Searching...
No Matches
LocationPolygon Class Reference

Polygon on the location view in WGS84 coordinates. More...

Public Member Functions

 LocationPolygon (this.points, this.sublocationId)
 Default constructor.
 

Public Attributes

List< GlobalPointpoints
 Ring vertices in WGS84 GlobalPoint.
 
int sublocationId
 Floor this polygon is attached to, or null for the outdoor map.
 

Detailed Description

Polygon on the location view in WGS84 coordinates.

Dart code snippet:

List<GlobalPoint> ring = [
GlobalPoint(55.751, 37.617),
GlobalPoint(55.752, 37.618),
GlobalPoint(55.751, 37.619),
];
LocationPolygon locationPolygon = LocationPolygon(ring, 7);
print(
"LocationPolygon: sublocation ${locationPolygon.sublocationId}, vertices ${locationPolygon.points.length}",
);

Definition at line 30 of file location_polygon.dart.

Constructor & Destructor Documentation

◆ LocationPolygon()

LocationPolygon.LocationPolygon ( this. points,
this. sublocationId )

Default constructor.

Member Data Documentation

◆ points

List<GlobalPoint> LocationPolygon.points

Ring vertices in WGS84 GlobalPoint.

Definition at line 38 of file location_polygon.dart.

◆ sublocationId

int LocationPolygon.sublocationId

Floor this polygon is attached to, or null for the outdoor map.

Definition at line 44 of file location_polygon.dart.


The documentation for this class was generated from the following file: