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);

Hierarchy

  • FeatureOverlayMgr

Constructors

Properties

featureUidToGroupIndex_: {
    [x: string]: number;
}

Type declaration

  • [x: string]: number
groups_: MapFeatureOverlayGroup[]
layer_: VectorLayer<VectorSource<Geometry>>
source_: VectorSource<Geometry>

Methods

  • Parameters

    • feature: Feature<Geometry>

      The feature to add.

    • groupIndex: number

      The group groupIndex.

    Returns void

  • Returns

    The vector layer used internally.

    Returns VectorLayer<VectorSource<Geometry>>

  • Returns

    True if the group has no features. False otherwise.

    Parameters

    • groupIndex: number

      The group groupIndex.

    Returns boolean

  • 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

  • Returns

    Styles.

    Parameters

    • feature: Feature<Geometry> | RenderFeature

      Feature.

    • resolution: number

      Resolution.

    Returns void | Style | Style[]

Generated using TypeDoc