-
- All Implemented Interfaces:
-
com.google.maps.android.data.DataPolygon,com.google.maps.android.data.Geometry
public class KmlPolygon implements DataPolygon<ArrayList<ArrayList<LatLng>>>
Represents a KML Polygon. Contains a single array of outer boundary coordinates and an array of arrays for the inner boundary coordinates.
-
-
Field Summary
Fields Modifier and Type Field Description public final static StringGEOMETRY_TYPE
-
Constructor Summary
Constructors Constructor Description KmlPolygon(List<LatLng> outerBoundaryCoordinates, List<List<LatLng>> innerBoundaryCoordinates)Creates a new KmlPolygon object
-
Method Summary
Modifier and Type Method Description StringgetGeometryType()Gets the type of geometry List<List<LatLng>>getGeometryObject()Gets the coordinates of the Polygon List<LatLng>getOuterBoundaryCoordinates()Gets an array of outer boundary coordinates List<List<LatLng>>getInnerBoundaryCoordinates()Gets an array of arrays of inner boundary coordinates StringtoString()-
-
Method Detail
-
getGeometryType
String getGeometryType()
Gets the type of geometry
-
getGeometryObject
List<List<LatLng>> getGeometryObject()
Gets the coordinates of the Polygon
-
getOuterBoundaryCoordinates
List<LatLng> getOuterBoundaryCoordinates()
Gets an array of outer boundary coordinates
-
getInnerBoundaryCoordinates
List<List<LatLng>> getInnerBoundaryCoordinates()
Gets an array of arrays of inner boundary coordinates
-
-
-
-