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


11641
11642
# File 'Monkeybrains.rb', line 11641

def addLocation(location)
end

clearObject

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

Since:

  • 3.0.0


11663
11664
# File 'Monkeybrains.rb', line 11663

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


11682
11683
# File 'Monkeybrains.rb', line 11682

def getLocation(index)
end

numLocationsToybox::Lang::Number

Get the number of Location objects in this MapPolyline object.

Returns:

Since:

  • 3.0.0


11672
11673
# File 'Monkeybrains.rb', line 11672

def numLocations()
end

setColor(color) ⇒ Object

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

Parameters:

Since:

  • 3.0.0


11649
11650
# File 'Monkeybrains.rb', line 11649

def setColor(color)
end

setWidth(width) ⇒ Object

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

Parameters:

Since:

  • 3.0.0


11656
11657
# File 'Monkeybrains.rb', line 11656

def setWidth(width)
end