Skip to content

Class PolylineMapObject

PavelTychinin edited this page Oct 29, 2021 · 2 revisions

PolylineMapObject class is used for showing polyline objects on the map.

Referenced from: LocationView.

Public methods

Function setPolyLine

public boolean setPolyLine(LocationPolyline polyline)

Function sets the positions of polyline object on the map.

Parameters
  • polyline — location polyline in metric coordinates.
Return value
  • true if success false if smth was wrong

Function setWidth

public void setWidth(float width)

Function sets the width of polyline map object.

Parameters
  • width — width of the polyline object in meters

Function setVisible

public void setVisible(boolean visible)

Function is used for setting the visibility of polyline object on the map.

Function setColor

public void setColor(float red, float green, float blue, float alpha)

Function is used for setting the color of map object.

Parameters
  • red — red color in range 0..1.
  • green — green color in range 0..1.
  • blue — blue color in range 0..1.
  • alpha — alpha color in range 0..1.
Clone this wiki locally