Class: module:FeatureOverlayMgr service:ngeoFeatureOverlayMgr

ngeo.map.module:FeatureOverlayMgr.ngeo.map.module:FeatureOverlayMgr

new module:FeatureOverlayMgr()

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