SpriteStyle
Stay organized with collections
Save and categorize content based on your preferences.
Describes a StampStyle
, where the associated stamp is a repeating complete image.
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 |
|
Public Constructor Summary
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
Parameters
stamp |
the image to be repeated over a stroke. |
Returns
- the builder with the stamp input.
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\u003eSpriteStyle\u003c/code\u003e describes a repeating image pattern used for map styling, extending the \u003ccode\u003eStampStyle\u003c/code\u003e class.\u003c/p\u003e\n"],["\u003cp\u003eIt utilizes a \u003ccode\u003eBitmapDescriptor\u003c/code\u003e to define the image used for the repeating pattern.\u003c/p\u003e\n"],["\u003cp\u003eA \u003ccode\u003eSpriteStyle\u003c/code\u003e can be created using the \u003ccode\u003enewBuilder\u003c/code\u003e method, providing the desired \u003ccode\u003eBitmapDescriptor\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eSpriteStyle\u003c/code\u003e inherits functionalities from \u003ccode\u003eStampStyle\u003c/code\u003e for managing the image pattern, including \u003ccode\u003egetStamp\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,["# SpriteStyle\n\npublic class **SpriteStyle** extends [StampStyle](/maps/documentation/navigation/android-sdk/reference/com/google/android/gms/maps/model/StampStyle) \nDescribes a [StampStyle](/maps/documentation/navigation/android-sdk/reference/com/google/android/gms/maps/model/StampStyle), where the associated stamp is a repeating complete image. \n\n### Nested Class Summary\n\n|-------|---|---|-------------------------------------------------------------------------------------------------------------------------------|\n| class | [SpriteStyle.Builder](/maps/documentation/navigation/android-sdk/reference/com/google/android/gms/maps/model/SpriteStyle.Builder) || Builder of [SpriteStyle](/maps/documentation/navigation/android-sdk/reference/com/google/android/gms/maps/model/SpriteStyle). |\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 Constructor Summary\n\n|---|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| | [SpriteStyle](/maps/documentation/navigation/android-sdk/reference/com/google/android/gms/maps/model/SpriteStyle#SpriteStyle(com.google.android.gms.maps.model.BitmapDescriptor))([BitmapDescriptor](/maps/documentation/navigation/android-sdk/reference/com/google/android/gms/maps/model/BitmapDescriptor) stamp) |\n\n### Public Method Summary\n\n|------------------------------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| static [SpriteStyle.Builder](/maps/documentation/navigation/android-sdk/reference/com/google/android/gms/maps/model/SpriteStyle.Builder) | [newBuilder](/maps/documentation/navigation/android-sdk/reference/com/google/android/gms/maps/model/SpriteStyle#newBuilder(com.google.android.gms.maps.model.BitmapDescriptor))([BitmapDescriptor](/maps/documentation/navigation/android-sdk/reference/com/google/android/gms/maps/model/BitmapDescriptor) stamp) Creates a new [SpriteStyle](/maps/documentation/navigation/android-sdk/reference/com/google/android/gms/maps/model/SpriteStyle) builder. |\n\n### Inherited Method Summary\n\nFrom class [com.google.android.gms.maps.model.StampStyle](/maps/documentation/navigation/android-sdk/reference/com/google/android/gms/maps/model/StampStyle) \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\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 Constructors\n-------------------\n\n#### public\n**SpriteStyle**\n([BitmapDescriptor](/maps/documentation/navigation/android-sdk/reference/com/google/android/gms/maps/model/BitmapDescriptor) stamp)\n\n\u003cbr /\u003e\n\n##### Parameters\n\n| stamp | |\n|-------|---|\n\nPublic Methods\n--------------\n\n#### public static [SpriteStyle.Builder](/maps/documentation/navigation/android-sdk/reference/com/google/android/gms/maps/model/SpriteStyle.Builder)\n**newBuilder**\n([BitmapDescriptor](/maps/documentation/navigation/android-sdk/reference/com/google/android/gms/maps/model/BitmapDescriptor) stamp)\n\nCreates a new [SpriteStyle](/maps/documentation/navigation/android-sdk/reference/com/google/android/gms/maps/model/SpriteStyle) builder. \n\n##### Parameters\n\n| stamp | the image to be repeated over a stroke. |\n|-------|-----------------------------------------|\n\n##### Returns\n\n- the builder with the stamp input. \n\n##### See Also\n\n- [StampStyle.getStamp()](/maps/documentation/navigation/android-sdk/reference/com/google/android/gms/maps/model/StampStyle#getStamp())"]]