[2.x] MMLayer - MetamediaTechnology/longdo-map-demo-ios GitHub Wiki
@property(retain) NSString *name;
Description
Name of layer
@property(retain) NSString *url;
Description
URL of layer
@property(retain) NSString *key;
Description
API Key to request layer
@property(retain) NSString *format;
Description
Formate of tile URL
@property(retain) NSString *srs;
Description
SRS for tile calculation, see JROJECTION_*
@property int type;
Description
Type of layer, see LAYER_TYPE_*
@property float opacity;
Description
Opacity of tile of this layer.
@property int weight;
Description
Weight of this layer, higher weight will draw under the lighter weight.
@property int minZoom;
Description
Min zoom of this layer to display.
@property int maxZoom;
Description
Max zoom of this layer to display.
@property int maxAge;
Description
Maximum tile age of the layer.
@property(retain) NSString *transparent;
@property(retain) NSString *styles;
@property(retain) NSString *extraQuery;
@property int refresh;
+ (MMLayer *)layerWithUrl:(NSString *)url andType:(int)type;
Description
Create a new custom layer.
Parameters
-
url the url of new layer
-
type the type of new layer, see LAYER_TYPE_*
Return
new layer