MPOnlineTileLayer
@interface MPOnlineTileLayer : NSObject {
int _balancingIndex;
}
Online tile layer. Used to serve a google map with a MapsPeople online tileservice.
-
Undocumented
Declaration
Objective-C
@interface MPOnlineTileLayer : NSObject { int _balancingIndex; }
-
The google GMSTileLayer object.
Declaration
Objective-C
@property (assign, readwrite, atomic) int *layer;
Swift
var layer: UnsafeMutablePointer
-
Layer type / identifier.
Declaration
Objective-C
@property (assign, readwrite, nonatomic) NSString *layerType;
Swift
var layerType: String! { get set }
-
Instantiate using a layer type.
Declaration
Objective-C
- (id)initWithLayer:(NSString *)layerType;
Swift
init!(layer layerType: String!)
-
Undocumented
Declaration
Objective-C
@interface MPOnlineTileLayer : NSObject { int _balancingIndex; }
-
Helper method to generate the correct url, based on level and layer type.
Declaration
Objective-C
- (NSString *)getTileUrl:(NSUInteger)zoom x:(NSUInteger)x y:(NSUInteger)y;
Swift
func getTileUrl(_ zoom: UInt, x: UInt, y: UInt) -> String!
-
Add the layer to a map. - parameter: map The Google map view.
Declaration
Objective-C
- (void)addToMap:(id)map;
Swift
func add(toMap map: Any!)
Parameters
map
The Google map view.