Class: Toybox.WatchUi.MapMarker
- Inherits:
-
Toybox.Lang.Object
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.
Instance Method Summary collapse
-
getLocation() as Position.Location
Get the location for the MapMarker.
-
initialize(location as Position.Location)
Constructor.
-
setIcon(icon as Graphics.BitmapType or WatchUi.MapMarkerIcon or Lang.Number, x as Lang.Number, y as Lang.Number) as Void
Set a bitmap icon to use for the MapMarker object on a MapView.
-
setLabel(label as Lang.String or Lang.ResourceId) as Void
Instance Method Details
getLocation() as Position.Location
Get the location for the MapMarker.
initialize(location as Position.Location)
Constructor
setIcon(icon as Graphics.BitmapType or WatchUi.MapMarkerIcon or Lang.Number, x as Lang.Number, y as Lang.Number) as Void
Set a bitmap icon to use for the MapMarker object on a MapView.
setLabel(label as Lang.String or Lang.ResourceId) as Void