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!) -> Bool

    Parameters

    object

    The 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() -> UInt

    Return Value

    The hash value of this object.

  • Returns the current layer count.

    Declaration

    Objective-C

    - (int)count;

    Swift

    func count() -> Int32

    Return Value

    The layer count.

  • Clears the layer stack.

    Declaration

    Objective-C

    - (void)clear;

    Swift

    func clear()
  • Returns the layer at the specified index.

    Declaration

    Objective-C

    - (MSFLayer *)get:(int)index;

    Swift

    func get(_ index: Int32) -> MSFLayer!

    Parameters

    index

    The 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.

    Declaration

    Objective-C

    - (MSFLayerVector *)getAll;

    Swift

    func getAll() -> MSFLayerVector!

    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

    index

    The layer index to replace. Must be between 0 and count (exclusive).

    layer

    The 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

    layers

    The 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

    index

    The layer index. Must be between 0 and count (inclusive).

    layer

    The new layer. @throws NSException If the index is out of range.

  • Adds a new layer to the layer stack. The new layer will be the last (and topmost) layer.

    Declaration

    Objective-C

    - (void)add:(MSFLayer *)layer;

    Swift

    func add(_ layer: MSFLayer!)

    Parameters

    layer

    The layer to be added.

  • 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

    layers

    The layer list to be added.

  • Removes a layer from the layer stack.

    Declaration

    Objective-C

    - (BOOL)remove:(MSFLayer *)layer;

    Swift

    func remove(_ layer: MSFLayer!) -> Bool

    Parameters

    layer

    The layer to be removed.

    Return Value

    True if the layer was removed. False otherwise (layer was not found).

  • Removes a list of layers from the layer stack.

    Declaration

    Objective-C

    - (BOOL)removeAll:(MSFLayerVector *)layers;

    Swift

    func removeAll(_ layers: MSFLayerVector!) -> Bool

    Parameters

    layers

    The 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()