GoogleMaps Framework Reference

  • GMSSyncTileLayer is a subclass of GMSTileLayer offering a synchronous interface for generating image tile data.

  • It provides a method tileForX:y:zoom: (or tileFor(x:y:zoom:) in Swift) to synchronously return tile images.

  • This method is executed off the main thread and must be thread-safe due to potential multi-threaded calls.

GMSSyncTileLayer

  @interface 
 GMSSyncTileLayer 
 : 
  GMSTileLayer 
 
 

GMSSyncTileLayer is an abstract subclass of GMSTileLayer that provides a sync interface to generate image tile data.

  • As per -requestTileForX:y:zoom:receiver: on GMSTileLayer , but provides a synchronous interface to return tiles. This method may block or otherwise perform work, and is not called on the main thread.

    Calls to this method may also be made from multiple threads so implementations must be threadsafe.

    Declaration

    Swift

      func 
     tileFor 
     ( 
     x 
     : 
     UInt 
     , 
     y 
     : 
     UInt 
     , 
     zoom 
     : 
     UInt 
     ) 
     -> 
     UIImage 
     ? 
     
    

    Objective-C

      - 
     ( 
     nullable 
     UIImage 
     * 
     ) 
     tileForX 
     :( 
     NSUInteger 
     ) 
     x 
     y 
     :( 
     NSUInteger 
     ) 
     y 
     zoom 
     :( 
     NSUInteger 
     ) 
     zoom 
     ; 
     
    
Design a Mobile Site
View Site in Mobile | Classic
Share by: