XYZ Maps Documentation
    Preparing search index...

    Interface FeatureContainer

    A FeatureContainer is a array-like collection of Features. It enables editing operations to be carried out for all features of the FeatureContainer at the same time.

    interface FeatureContainer {
        length: number;
        type: "CONTAINER";
        forEach(fnc: (feature: Feature, index: number) => void): any;
        highlight(): any;
        pop(): Feature;
        push(feature: Feature | Feature[], layer?: TileLayer): number;
        remove(): any;
        toArray(): Feature[];
        transform(): any;
        unHighlight(): any;
    }
    Index
    length: number

    The number of features in the container

    type: "CONTAINER"

    The type of the container is 'CONTAINER'

    • Executes a provided function once per container feature

      Parameters

      • fnc: (feature: Feature, index: number) => void

        function to be called for the objects in container

      Returns any

    • Highlights all features in the container

      Returns any

    • Pops out the last feature that has been added to the container

      Returns Feature

      the last added Feature

    • Add the given feature(s) to the container.

      Parameters

      • feature: Feature | Feature[]

        The feature(s) to add to the end of the container.

      • Optionallayer: TileLayer

        layer the feature(s) should be added.

      Returns number

      length of the containing features

    • Removes all features of the container from the map.

      Returns any

    • Receive all Features of the Container as a native Array

      Returns Feature[]

    • Enable the Transform Utility to allow easy geometry transformations (move/scale/rotate) of all the feature of the container by mouse/touch interaction.

      Returns any

    • UnHighlight all features of the container

      Returns any