Class: Toybox::WatchUi::MapPolyline

Inherits:
Lang::Object show all

Overview

An object representing a polyline (polygonal chain) on the map.

This object holds an Array of Location objects to draw a polyline on the map.

Instance Method Summary collapse

Methods inherited from Lang::Object

equals, hashCode, method, toString, weak

Instance Method Details

addLocation(location) ⇒ Object

Add a Location or Locations to the MapPolyline object location Array.

Parameters:

Since:

  • 3.0.0


12970
12971
# File 'Monkeybrains.rb', line 12970

def addLocation(location)
end

clearObject

Clear all the Location objects from the MapPolyline object's location Array.

Since:

  • 3.0.0


12992
12993
# File 'Monkeybrains.rb', line 12992

def clear()
end

getLocation(index) ⇒ Toybox::Position::Location

Get the Location object at a provided index in this MapPolyline object.

Parameters:

Returns:

Since:

  • 3.0.0


13011
13012
# File 'Monkeybrains.rb', line 13011

def getLocation(index)
end

numLocationsToybox::Lang::Number

Get the number of Location objects in this MapPolyline object.

Returns:

Since:

  • 3.0.0


13001
13002
# File 'Monkeybrains.rb', line 13001

def numLocations()
end

setColor(color) ⇒ Object

Set the color of the MapPolyline to draw on the map.

Parameters:

Since:

  • 3.0.0


12978
12979
# File 'Monkeybrains.rb', line 12978

def setColor(color)
end

setWidth(width) ⇒ Object

Set the width of the MapPolyline to draw on the map.

Parameters:

Since:

  • 3.0.0


12985
12986
# File 'Monkeybrains.rb', line 12985

def setWidth(width)
end