Provides a service that wraps an "unmanaged" vector layer, used as a shared vector layer across the application.

Example:

The application's main component/controller initializes the feature overlay manager with the map:

ngeoFeatureOverlayMgr.init(map);

Once initialized, components of the application can use the manager to create a feature overlay, configuring it with specific styles:

let featureOverlay = ngeoFeatureOverlayMgr.getFeatureOverlay();
featureOverlay.setStyle(myStyle);
featureOverlay.addFeature(myFeature);

Constructors

Properties

featureUidToGroupIndex_: {
    [x: string]: number;
}
groups_: MapFeatureOverlayGroup[]
layer_: VectorLayer<VectorSource<Feature<Geometry>>, Feature<Geometry>>
source_: VectorSource<Feature<Geometry>>

Methods

  • Parameters

    • feature: Feature<Geometry>

      The feature to add.

    • groupIndex: number

      The group groupIndex.

    Returns void

  • Returns VectorLayer<VectorSource<Feature<Geometry>>, Feature<Geometry>>

    The vector layer used internally.

  • Parameters

    • groupIndex: number

      The group groupIndex.

    Returns boolean

    True if the group has no features. False otherwise.

  • Parameters

    • feature: Feature<Geometry>

      The feature to add.

    • groupIndex: number

      The group groupIndex.

    Returns void

  • Parameters

    • style: StyleLike

      Style to apply.

    • groupIndex: number

      Group index.

    Returns void

  • Parameters

    • feature: Feature<Geometry> | RenderFeature

      Feature.

    • resolution: number

      Resolution.

    Returns void | Style | Style[]

    Styles.