Options
All
  • Public
  • Public/Protected
  • All
Menu

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

Index

Constructors

Properties

featureUidToGroupIndex_: {}

Type declaration

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

Methods

  • addFeature(feature: Feature<Geometry>, groupIndex: number): void
  • clear(groupIndex: number): void
  • getLayer(): VectorLayer<VectorSource<Geometry>>
  • init(map: Map): void
  • isEmpty(groupIndex: number): boolean
  • Parameters

    • groupIndex: number

      The group groupIndex.

    Returns boolean

    True if the group has no features. False otherwise.

  • removeFeature(feature: Feature<Geometry>, groupIndex: number): void
  • setStyle(style: StyleLike, groupIndex: number): void
  • styleFunction_(feature: Feature<Geometry> | RenderFeature, resolution: number): void | Style | Style[]
  • Parameters

    • feature: Feature<Geometry> | RenderFeature

      Feature.

    • resolution: number

      Resolution.

    Returns void | Style | Style[]

    Styles.

Generated using TypeDoc