MSFLayers
Objective-C
@interface MSFLayers : NSObject {
void *swigCPtr;
BOOL swigCMemOwn;
}
Swift
class MSFLayers : NSObject
Container for all raster and vector layers of the map view.
The order in which layers are added is important for vector elements like Points, Lines and Polygons. For these elements the layer ordering defines their draw order. Other elements like NMLModels and Polygon3Ds are z ordered and are drawn using the depth buffer. For Billboard elements like Markers and Labels, the layer ordering is unimportant, because they will be sorted from back to front and drawn in that order on top of all other vector elements.
-
Checks if this object is equal to the specified object.
Declaration
Objective-C
- (BOOL)isEqual:(id)object;Swift
func isEqual(_ object: Any!) -> BoolParameters
objectThe reference object.
Return Value
True when objects are equal, false otherwise.
-
Returns the hash value of this object.
Declaration
Objective-C
- (NSUInteger)hash;Swift
func hash() -> UIntReturn Value
The hash value of this object.
-
Returns the current layer count.
Declaration
Objective-C
- (int)count;Swift
func count() -> Int32Return Value
The layer count.
-
Clears the layer stack.
Declaration
Objective-C
- (void)clear;Swift
func clear() -
Returns the layer at the specified index.
Parameters
indexThe layer index to return. Must be between 0 and count (exclusive).
Return Value
The layer at the specified index. @throws NSException If the index is out of range.
-
Returns the list of all layers. The layers are in the order in which they were added.
Return Value
A vector of all previously added layers.
-
Replaces the layer at the specified index.
Declaration
Objective-C
- (void)set:(int)index layer:(MSFLayer *)layer;Swift
func set(_ index: Int32, layer: MSFLayer!)Parameters
indexThe layer index to replace. Must be between 0 and count (exclusive).
layerThe new layer. @throws NSException If the index is out of range.
-
Replaces all the layers with the given layer list.
Declaration
Objective-C
- (void)setAll:(MSFLayerVector *)layers;Swift
func setAll(_ layers: MSFLayerVector!)Parameters
layersThe new list of layers.
-
Inserts a new layer at the specified position. All previous layers starting from this index will be moved to the next position.
Declaration
Objective-C
- (void)insert:(int)index layer:(MSFLayer *)layer;Swift
func insert(_ index: Int32, layer: MSFLayer!)Parameters
indexThe layer index. Must be between 0 and count (inclusive).
layerThe new layer. @throws NSException If the index is out of range.
-
Adds a a list of layers to the layer stack. The new layers will be the last (and topmost) layers.
Declaration
Objective-C
- (void)addAll:(MSFLayerVector *)layers;Swift
func addAll(_ layers: MSFLayerVector!)Parameters
layersThe layer list to be added.
-
Removes a list of layers from the layer stack.
Declaration
Objective-C
- (BOOL)removeAll:(MSFLayerVector *)layers;Swift
func removeAll(_ layers: MSFLayerVector!) -> BoolParameters
layersThe list of layers to be removed.
Return Value
True if all layer were removed. False otherwise (some layers were not found).
-
Undocumented
Declaration
Objective-C
-(void)dealloc;Swift
func dealloc()