API (v2.0.0) - Giro3D
    Preparing search index...

    A feature source that does not read from any remote source, but instead acts as a container for features added by the user.

    Note

    When features are added to this source, they might be transformed to match the target coordinate system, as well as assigning them unique IDs.

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    _initialized: boolean = false
    _targetCoordinateSystem: CoordinateSystem | null = null
    isStaticFeatureSource: true = ...
    type: "StaticFeatureSource" = ...

    Accessors

    • get features(): readonly Feature<Geometry, { [x: string]: any }>[]

      Returns a copy of the features contained in this source.

      Note: this property returns an empty array if the source is not yet initialized.

      Returns readonly Feature<Geometry, { [x: string]: any }>[]

    Methods

    • Adds a single feature.

      Note: if you want to add multiple features at once, use addFeatures for better performance.

      Parameters

      • feature: Feature

      Returns void

    • Adds multiple features.

      Parameters

      • features: Iterable<Feature<Geometry, { [x: string]: any }>>

      Returns void

    • Removes a single feature.

      Note: if you want to remove multiple features at once, use removeFeatures for better performance.

      Parameters

      • feature: Feature

      Returns boolean

      true if the feature feature was actually removed, false otherwise.

    • Removes multiple features.

      Parameters

      • features: Iterable<Feature<Geometry, { [x: string]: any }>>

      Returns boolean

      true if at least one feature was actually removed, false otherwise.