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


12973
12974
# File 'Monkeybrains.rb', line 12973

def addLocation(location)
end

clearObject

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

Since:

  • 3.0.0


12995
12996
# File 'Monkeybrains.rb', line 12995

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


13014
13015
# File 'Monkeybrains.rb', line 13014

def getLocation(index)
end

numLocationsToybox::Lang::Number

Get the number of Location objects in this MapPolyline object.

Returns:

Since:

  • 3.0.0


13004
13005
# File 'Monkeybrains.rb', line 13004

def numLocations()
end

setColor(color) ⇒ Object

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

Parameters:

Since:

  • 3.0.0


12981
12982
# File 'Monkeybrains.rb', line 12981

def setColor(color)
end

setWidth(width) ⇒ Object

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

Parameters:

Since:

  • 3.0.0


12988
12989
# File 'Monkeybrains.rb', line 12988

def setWidth(width)
end