StampStyle

  • StampStyle defines how an image or texture is drawn repeatedly over a stroke on a map.

  • It has two subclasses: SpriteStyle (for repeating point sprites) and TextureStyle (for non-repeating textures).

  • The getStamp() method retrieves the image or texture used for the stamp.

  • The stamp's width matches the stroke's line width and its orientation aligns with the stroke's direction.

public abstract class StampStyle extends Object
Known Direct Subclasses

Describes the drawing style for a stamped image or texture over a StrokeStyle.

Public Method Summary

BitmapDescriptor
getStamp()
The image or texture to be repeated over a stroke.

Inherited Method Summary

Public Methods

public BitmapDescriptor getStamp ()

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.