MaplyRenderController
Objective-C
@interface MaplyRenderController : NSObject <MaplyRenderControllerProtocol>
Swift
class MaplyRenderController : NSObject, MaplyRenderControllerProtocol
The Render Controller is a standalone WhirlyGlobe-Maply renderer.
This Render Controller is used for offline rendering.
-
Initialize as an offline renderer of a given target size of the given rendering type
Declaration
Objective-C
- (instancetype _Nullable)initWithSize:(CGSize)size mode:(MaplyRenderType)renderType;
Swift
init?(size: CGSize, mode renderType: MaplyRenderType)
-
Initialize as an offline renderer of a given target size with default renderer (Metal)
Declaration
Objective-C
- (instancetype _Nullable)initWithSize:(CGSize)size;
Swift
init?(size: CGSize)
-
If set up in offline mode, this is how we draw
Declaration
Objective-C
- (id)renderToImage;
Swift
func renderToImage() -> Any!
-
Return the raw RGBA pixels from the rendered image rather than a UIImage
Declaration
Objective-C
- (NSData *_Nullable)renderToImageData;
Swift
func renderToImageData() -> Data?