Class: Toybox::WatchUi::MapMarker

Inherits:
Lang::Object show all

Overview

The base class for the MapMarker object.

The MapMarker is used to hold a BitmapResource, or a MAP_MARKER_ICON_* enum value, and the corresponding x, y value to note the “hotspot” for the image to be used as an icon for a marker within a MapView. This class also contains the Location at which the MapMarker should be displayed on the map.

Since:

  • 3.0.0

Instance Method Summary collapse

Methods inherited from Lang::Object

equals, hashCode, method, toString, weak

Constructor Details

initialize(location) ⇒ MapMarker

Returns a new instance of MapMarker

Parameters:

Since:

  • 3.0.0


12914
12915
# File 'Monkeybrains.rb', line 12914

def initialize(location)
end

Instance Method Details

getLocationToybox::Position::Location

Get the location for the MapMarker.

Returns:

Since:

  • 3.0.0


12952
12953
# File 'Monkeybrains.rb', line 12952

def getLocation()
end

setIcon(icon, x, y) ⇒ Object

Set a bitmap icon to use for the MapMarker object on a MapView.

Parameters:

Raises:

Since:

  • 3.0.0


12935
12936
# File 'Monkeybrains.rb', line 12935

def setIcon(icon, x, y)
end

setLabel(label) ⇒ Object

Set a label for the map marker to draw on the map.

Parameters:

See Also:

Since:

  • 3.0.0


12944
12945
# File 'Monkeybrains.rb', line 12944

def setLabel(label)
end