StampStyle
Stay organized with collections
Save and categorize content based on your preferences.
Describes the drawing style for a stamped image or texture over a StrokeStyle
.
Inherited Constant Summary
From interface
com.google.android.gms.common.internal.safeparcel.SafeParcelable
From interface
android.os.Parcelable
int |
CONTENTS_FILE_DESCRIPTOR |
|
int |
PARCELABLE_WRITE_RETURN_VALUE |
|
Inherited Method Summary
From class
com.google.android.gms.common.internal.safeparcel.AbstractSafeParcelable
final
int
|
describeContents()
|
From class
java.lang.Object
boolean
|
equals(Object arg0)
|
final
Class<?>
|
getClass()
|
int
|
hashCode()
|
final
void
|
notify()
|
final
void
|
notifyAll()
|
String
|
toString()
|
final
void
|
wait(long arg0, int arg1)
|
final
void
|
wait(long arg0)
|
final
void
|
wait()
|
From interface
android.os.Parcelable
abstract
int
|
describeContents()
|
abstract
void
|
writeToParcel(Parcel arg0, int arg1)
|
Public Methods
The image or texture to be repeated over a stroke.
The rendered stamps will be the width of the line that was set for the StrokeStyle. The
image will be oriented with the top of the image facing the start point, and the bottom of the
image facing the end point. For example, if the underlying line has two points and the start
point is directly above the endpoint, the stamp will appear in an upright orientation.
Returns
- the bitmap image for this stamp style.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-08-28 UTC.
[null,null,["Last updated 2025-08-28 UTC."],[[["\u003cp\u003e\u003ccode\u003eStampStyle\u003c/code\u003e defines how an image or texture is drawn repeatedly over a stroke on a map.\u003c/p\u003e\n"],["\u003cp\u003eIt allows customization of the appearance of lines or paths using repeating stamps.\u003c/p\u003e\n"],["\u003cp\u003eThe stamp can be a complete image (\u003ccode\u003eSpriteStyle\u003c/code\u003e) or a texture (\u003ccode\u003eTextureStyle\u003c/code\u003e).\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003egetStamp()\u003c/code\u003e method provides access to the BitmapDescriptor used for the stamp.\u003c/p\u003e\n"],["\u003cp\u003eThe stamp's orientation depends on the direction of the underlying stroke.\u003c/p\u003e\n"]]],[],null,["# StampStyle\n\npublic class **StampStyle** extends AbstractSafeParcelable \n\n|---|---|---|\n| Known Direct Subclasses [SpriteStyle](/maps/documentation/navigation/android-sdk/reference/com/google/android/gms/maps/model/SpriteStyle), [TextureStyle](/maps/documentation/navigation/android-sdk/reference/com/google/android/gms/maps/model/TextureStyle) |---------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | [SpriteStyle](/maps/documentation/navigation/android-sdk/reference/com/google/android/gms/maps/model/SpriteStyle) | Describes a [StampStyle](/maps/documentation/navigation/android-sdk/reference/com/google/android/gms/maps/model/StampStyle), where the associated stamp is a repeating complete image. | | [TextureStyle](/maps/documentation/navigation/android-sdk/reference/com/google/android/gms/maps/model/TextureStyle) | Describes a [StampStyle](/maps/documentation/navigation/android-sdk/reference/com/google/android/gms/maps/model/StampStyle), where the associated stamp is used as a texture. | |||\n\nDescribes the drawing style for a stamped image or texture over a [StrokeStyle](/maps/documentation/navigation/android-sdk/reference/com/google/android/gms/maps/model/StrokeStyle). \n\n### Inherited Constant Summary\n\nFrom interface com.google.android.gms.common.internal.safeparcel.SafeParcelable \n\n|--------|------|---|\n| String | NULL | |\n\nFrom interface android.os.Parcelable \n\n|-----|-------------------------------|---|\n| int | CONTENTS_FILE_DESCRIPTOR | |\n| int | PARCELABLE_WRITE_RETURN_VALUE | |\n\n### Public Method Summary\n\n|-----------------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [BitmapDescriptor](/maps/documentation/navigation/android-sdk/reference/com/google/android/gms/maps/model/BitmapDescriptor) | [getStamp](/maps/documentation/navigation/android-sdk/reference/com/google/android/gms/maps/model/StampStyle#getStamp())() The image or texture to be repeated over a stroke. |\n\n### Inherited Method Summary\n\nFrom class com.google.android.gms.common.internal.safeparcel.AbstractSafeParcelable \n\n|-----------|--------------------|\n| final int | describeContents() |\n\nFrom class java.lang.Object \n\n|------------------|---------------------------|\n| boolean | equals(Object arg0) |\n| final Class\\\u003c?\\\u003e | getClass() |\n| int | hashCode() |\n| final void | notify() |\n| final void | notifyAll() |\n| String | toString() |\n| final void | wait(long arg0, int arg1) |\n| final void | wait(long arg0) |\n| final void | wait() |\n\nFrom interface android.os.Parcelable \n\n|---------------|--------------------------------------|\n| abstract int | describeContents() |\n| abstract void | writeToParcel(Parcel arg0, int arg1) |\n\nPublic Methods\n--------------\n\n#### public [BitmapDescriptor](/maps/documentation/navigation/android-sdk/reference/com/google/android/gms/maps/model/BitmapDescriptor)\n**getStamp**\n()\n\nThe image or texture to be repeated over a stroke.\n\nThe rendered stamps will be the width of the line that was set for the StrokeStyle. The\nimage will be oriented with the top of the image facing the start point, and the bottom of the\nimage facing the end point. For example, if the underlying line has two points and the start\npoint is directly above the endpoint, the stamp will appear in an upright orientation. \n\n##### Returns\n\n- the bitmap image for this stamp style."]]