GoogleMaps Framework Reference

  • GMSTileReceiver is a protocol used by GMSTileLayer for handling tile requests.

  • It provides a callback mechanism, receiveTileWithX:y:zoom:image:, to deliver tile images.

  • The callback can be invoked immediately or at a later time.

  • The callback includes information on tile coordinates (x, y, zoom) and the image.

GMSTileReceiver

@protocol GMSTileReceiver <NSObject>

GMSTileReceiver is provided to GMSTileLayer when a tile request is made, allowing the callback to be later (or immediately) invoked.

  • Declaration

    Swift

    func receiveTileWith(x: UInt, y: UInt, zoom: UInt, image: UIImage?)

    Objective-C

    - (void)receiveTileWithX:(NSUInteger)x
                           y:(NSUInteger)y
                        zoom:(NSUInteger)zoom
                       image:(nullable UIImage *)image;