NTLayers


@interface NTLayers : NSObject {
  void *swigCPtr;
  BOOL swigCMemOwn;
}

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;

    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;

    Return Value

    The hash value of this object.

  • Returns the current layer count.

    Declaration

    Objective-C

    - (int)count;

    Return Value

    The layer count.

  • Clears the layer stack.

    Declaration

    Objective-C

    - (void)clear;
  • Returns the layer at the specified index.

    Warning

    Throws NSException If the index is out of range.

    Declaration

    Objective-C

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

    Parameters

    index

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

    Return Value

    The layer at the specified index.

  • Returns the list of all layers. The layers are in the order in which they were added.

    Declaration

    Objective-C

    - (NTLayerVector *)getAll;

    Return Value

    A vector of all previously added layers.

  • Replaces the layer at the specified index.

    Warning

    Throws NSException If the index is out of range.

    Declaration

    Objective-C

    - (void)set:(int)index layer:(NTLayer *)layer;

    Parameters

    index

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

    layer

    The new layer.

  • Replaces all the layers with the given layer list.

    Declaration

    Objective-C

    - (void)setAll:(NTLayerVector *)layers;

    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.

    Warning

    Throws NSException If the index is out of range.

    Declaration

    Objective-C

    - (void)insert:(int)index layer:(NTLayer *)layer;

    Parameters

    index

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

    layer

    The new layer.

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

    Declaration

    Objective-C

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

    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:(NTLayerVector *)layers;

    Parameters

    layers

    The layer list to be added.

  • Removes a layer from the layer stack.

    Declaration

    Objective-C

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

    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:(NTLayerVector *)layers;

    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;