GoogleNavigation Framework Reference

  • GMSTextureStyle is a style that applies a repeating image pattern to a polyline.

  • It can be initialized using an image with textureStyleWithImage: or initWithImage:.

  • The provided image will be used as a repeating texture along the polyline's path.

GMSTextureStyle

@interface GMSTextureStyle : GMSStampStyle

A polyline style that draws a repeating image over a GMSStyleSpan.

  • Returns a texture stamp style with the given image.

    Declaration

    Objective-C

    + (nonnull instancetype)textureStyleWithImage:(nonnull UIImage *)image;

    Parameters

    image

    A UIImage object to use as the stamp image.

    Return Value

    An initialized texture stamp style.

  • Returns an initialized texture stamp style with the given image.

    Declaration

    Swift

    init(image: UIImage)

    Objective-C

    - (nonnull instancetype)initWithImage:(nonnull UIImage *)image;

    Parameters

    image

    A UIImage object to use as the stamp image.

    Return Value

    An initialized texture stamp style.