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>
source_: VectorSource

Methods

  • Parameters

    • feature: Feature

      The feature to add.

    • groupIndex: number

      The group groupIndex.

    Returns void

  • Returns VectorLayer<VectorSource, Feature>

    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

      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 | RenderFeature

      Feature.

    • resolution: number

      Resolution.

    Returns void | Style | Style[]

    Styles.