sofia.maps.ProvidesMarkerImage |
Indicates that a MarkerOverlay should use the annotated method to retrieve the marker image to be displayed on the map for the object.
The method bearing this annotation must be public, take no arguments, and return one of the following types:
Bitmap
Drawable
Drawable
object (such as a BitmapDrawable
). The
drawable is drawn respecting its bounds, which allows you to position it in
a manner other than the center (for example, the bottom-center, for "pin"
images).int
If the annotated method returns null, then the default marker (a red pin with an appearance similar to the one in the built-in Maps application) will be used instead.
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From interface
java.lang.annotation.Annotation
|