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. Layer order is the draw order of Points, Lines and Polygons; NMLModels and Polygon3Ds use the depth buffer, and billboards (Markers, Labels) are sorted back to front 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. A layer already added is moved there instead, never added twice.
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()