Class: Toybox.WatchUi.MapPolyline
- Inherits:
-
Toybox.Lang.Object
Overview
See Also:
Instance Method Summary collapse
-
addLocation(location as Position.Location or Lang.Array<Position.Location>) as Void
Add a Location or Locations to the MapPolyline object location Array.
- clear() as Void
-
getLocation(index as Lang.Number) as Position.Location or Null
Get the Location object at a provided index in this MapPolyline object.
-
numLocations() as Lang.Number
Get the number of Location objects in this MapPolyline object.
-
setColor(color as Graphics.ColorType) as Void
Set the color of the MapPolyline to draw on the map.
-
setWidth(width as Lang.Number) as Void
Set the width of the MapPolyline to draw on the map.
Instance Method Details
addLocation(location as Position.Location or Lang.Array<Position.Location>) as Void
Add a Location or Locations to the MapPolyline object location Array.
getLocation(index as Lang.Number) as Position.Location or Null
Get the Location object at a provided index in this MapPolyline object.
numLocations() as Lang.Number
Get the number of Location objects in this MapPolyline object.
setColor(color as Graphics.ColorType) as Void
Set the color of the MapPolyline to draw on the map.
setWidth(width as Lang.Number) as Void
Set the width of the MapPolyline to draw on the map.