NTEditableVectorLayer


@interface NTEditableVectorLayer : NTVectorLayer

A vector layer that supports editing its contents. Editing requires registered listener.

  • Constructs a VectorLayer object from a data source.

    Declaration

    Objective-C

    - (id)initWithDataSource:(NTVectorDataSource *)dataSource;

    Parameters

    dataSource

    The data source from which this layer loads data.

  • Returns the selected vector element. If no element is currently selected, null is returned.

    Declaration

    Objective-C

    - (NTVectorElement *)getSelectedVectorElement;

    Return Value

    The selected vector element or null if no element is selected.

  • Selects the given vector element. Deselects currently selected element is null argument is used.

    Declaration

    Objective-C

    - (void)setSelectedVectorElement:(NTVectorElement *)element;

    Parameters

    element

    The vector element to select or null.

  • Returns the current edit event listener for the layer.

    Declaration

    Objective-C

    - (NTVectorEditEventListener *)getVectorEditEventListener;

    Return Value

    The current edit event listener or null if no listener is set.

  • Sets the current edit event listener for the layer. Note that valid listener is required for editing operations to work.

    Declaration

    Objective-C

    - (void)setVectorEditEventListener:(NTVectorEditEventListener *)listener;

    Parameters

    listener

    The edit event listener to use.

  • Undocumented

    Declaration

    Objective-C

    -(void)dealloc;