Polyline
Package: com.eegeo.mapapi.polylines
Methods
double getElevation()
Returns the current elevation of the polyline. The property is interpreted differently, depending on the ElevationMode property.
Returns: A height, in meters.
void setElevation(double elevation)
Sets the elevation of this polyline.
Type | argument | Description |
---|---|---|
double | elevation | A height in meters. Interpretation depends on the current PolylineOptions.MarkerElevationMode. |
ElevationMode getElevationMode()
Returns the mode specifying how the Elevation property is interpreted.
Returns: An enumerated value indicating whether Elevation is specified as a height above terrain, or an absolute altitude above sea level.
void setElevationMode(ElevationMode elevationMode)
Sets the elevation mode for this polyline.
Type | argument | Description |
---|---|---|
ElevationMode | elevationMode | The mode specifying how to interpret the Elevation property. |
String getIndoorMapId()
Gets the identifier of an indoor map on which this polyline should be displayed, if any.
Returns: For a polyline on an indoor map, the string identifier of the indoor map; otherwise an empty string.
void setIndoorMapId(String indoorMapId)
Sets the identifier of an indoor map on which this polyline should be displayed, if any.
int getIndoorFloorId()
Gets the identifier of an indoor map floor on which this polyline should be displayed, if any.
Returns: The indoor map floor id.
void setIndoorFloorId(int indoorFloorId)
Sets the identifier of an indoor map floor on which this polyline should be displayed, if any.
Type | argument | Description |
---|---|---|
int | indoorFloorId | The indoor map floor id. |
float getWidth()
Gets the width of the polyline.
Returns: The width of the polyline in screen pixels.
void setWidth(float width)
Sets the width of this polyline.
Type | argument | Description |
---|---|---|
float | width | The width of the polyline in screen pixels. |
int getColor()
Gets the color of the polyline.
Returns: The color of the polyline as a 32-bit ARGB color.
void setColor(int color)
Sets the color for this polyline.
Type | argument | Description |
---|---|---|
int | color | The color of the polyline as a 32-bit ARGB color. |
float getMiterLimit()
Gets the miter limit of the polyline.
Returns: The miter limit, as a ratio between maximum allowed miter join diagonal length and the line width.
void setMiterLimit(float miterLimit)
Sets the miter limit of this polyline.
Type | argument | Description |
---|---|---|
float | miterLimit | the miter limit, as a ratio between maximum allowed miter join diagonal length and the line width. |
List<LatLng> getPoints()
Gets the points of the polyline.
Returns: The vertices of this polyline.