GoogleMaps Framework Reference
Stay organized with collections
Save and categorize content based on your preferences.
GMSSyncTileLayer
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;
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-27 UTC.
[null,null,["Last updated 2025-08-27 UTC."],[[["\u003cp\u003e\u003ccode\u003eGMSSyncTileLayer\u003c/code\u003e is a subclass of \u003ccode\u003eGMSTileLayer\u003c/code\u003e offering a synchronous interface for generating image tile data.\u003c/p\u003e\n"],["\u003cp\u003eIt provides a method \u003ccode\u003etileForX:y:zoom:\u003c/code\u003e (or \u003ccode\u003etileFor(x:y:zoom:)\u003c/code\u003e in Swift) to synchronously return tile images.\u003c/p\u003e\n"],["\u003cp\u003eThis method is executed off the main thread and must be thread-safe due to potential multi-threaded calls.\u003c/p\u003e\n"]]],[],null,["# GoogleMaps Framework Reference\n\nGMSSyncTileLayer\n================\n\n @interface GMSSyncTileLayer : ../Classes/GMSTileLayer.html\n\n`GMSSyncTileLayer` is an abstract subclass of [GMSTileLayer](../Classes/GMSTileLayer.html) that provides a sync interface to\ngenerate image tile data.\n- `\n ``\n ``\n `\n\n ### [-tileForX:y:zoom:](#/c:objc(cs)GMSSyncTileLayer(im)tileForX:y:zoom:)\n\n `\n ` \n As per `-requestTileForX:y:zoom:receiver:` on [GMSTileLayer](../Classes/GMSTileLayer.html), but provides a synchronous\n interface to return tiles. This method may block or otherwise perform work, and is not called on\n the main thread.\n\n Calls to this method may also be made from multiple threads so implementations must be\n threadsafe. \n\n #### Declaration\n\n Swift \n\n func tileFor(x: UInt, y: UInt, zoom: UInt) -\u003e UIImage?\n\n Objective-C \n\n - (nullable UIImage *)tileForX:(NSUInteger)x\n y:(NSUInteger)y\n zoom:(NSUInteger)zoom;"]]