public class Polyline extends MapObject
Constructor and Description |
---|
Polyline(Map map)
Creates new Polyline object.
|
Modifier and Type | Method and Description |
---|---|
boolean |
getDraggable()
Returns whether this shape can be dragged by the user.
|
boolean |
getEditable()
Returns whether this shape can be edited by the user.
|
LatLng[] |
getPath()
Retrieves the path.
|
boolean |
getVisible()
Returns whether this poly is visible on the map.
|
void |
remove()
Removes polyline from the map.
|
void |
setDraggable(boolean value)
If set to true, the user can drag this shape over the map.
|
void |
setEditable(boolean value)
If set to true, the user can edit this shape by dragging the control points shown at the vertices
and on each segment.
|
void |
setOptions(PolylineOptions options)
Sets new options for current shape
|
void |
setPath(LatLng[] value)
Sets the shape path.
|
void |
setVisible(boolean value)
Hides this poly if set to false.
|
addEventListener, attachObject, cacheProperties, cacheProperties, clone, createJSValue, dispose, fromJSValue, getJSObject, getMap, getProperties, invokeMethod, propertyChanged, removeEventListener, updateProperty
public Polyline(Map map)
map
- owner Map objectpublic boolean getDraggable()
public boolean getEditable()
public void remove()
public boolean getVisible()
public void setDraggable(boolean value)
value
- new valuepublic void setEditable(boolean value)
value
- new valuepublic void setVisible(boolean value)
value
- new valuepublic void setOptions(PolylineOptions options)
options
- new options object@Nullable public LatLng[] getPath()
public void setPath(LatLng[] value)
value
- new path