public abstract class MapImageStyle extends MapObjectStyle implements Parcelable
Modifier and Type | Class and Description |
---|---|
static class |
MapImageStyle.Builder
Returns a new builder for a
MapImageStyle object. |
Parcelable.ClassLoaderCreator<T>, Parcelable.Creator<T>
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
Constructor and Description |
---|
MapImageStyle() |
Modifier and Type | Method and Description |
---|---|
void |
applyTo(Marker marker)
Apply this styling to the given marker.
|
static MapImageStyle.Builder |
builder(Context context,
Drawable drawable)
Returns a new builder for an
MapImageStyle object, with the given drawable |
static MapImageStyle.Builder |
builder(Context context,
int drawableId)
Returns a new builder for a
MapImageStyle object, with the given drawable |
static MapImageStyle.Builder |
builder(MarkerImage image)
Returns a new builder for a
MapImageStyle object, with the given image |
abstract int |
getHeightPixels()
The height of the marker in pixels.
|
abstract MarkerImage |
getMarkerImage()
The image that should be shown on the map
|
abstract int |
getWidthPixels()
The width of the marker in pixels.
|
abstract MapImageStyle.Builder |
toBuilder()
Return a
MapImageStyle.Builder with the same properties as this MapImageStyle |
getAnchor, getClickable, getOffset, isFlat
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
describeContents, writeToParcel
public abstract int getWidthPixels()
MarkerImage
.public abstract int getHeightPixels()
MarkerImage
.public abstract MarkerImage getMarkerImage()
public void applyTo(Marker marker)
MapObjectStyle
applyTo
in class MapObjectStyle
marker
- the marker on which to apply this stylingpublic abstract MapImageStyle.Builder toBuilder()
MapImageStyle.Builder
with the same properties as this MapImageStyle
public static MapImageStyle.Builder builder(MarkerImage image)
MapImageStyle
object, with the given imageimage
- the image to show on the mappublic static MapImageStyle.Builder builder(Context context, Drawable drawable)
MapImageStyle
object, with the given drawablecontext
- Android contextdrawable
- the drawable to show on the mappublic static MapImageStyle.Builder builder(Context context, int drawableId)
MapImageStyle
object, with the given drawablecontext
- Android contextdrawableId
- the drawable resource id to show on the map