-
Notifications
You must be signed in to change notification settings - Fork 20
Layer Editor panel
Raitis Berzins edited this page Oct 28, 2021
·
10 revisions
Layer editor is a component in LayerManagerModule and is nested under LayerMangerComponent. It lets you edit the currently selected layer in layer managers list:
- Rename layer
- Set layers dimensions used in WMS, WMS-T, XYZ layers requests through dimension widget.
- Display layers legend using legend widget
- Zoom to layers extent
- Delete layer from map
Several widgets (sub-components) exist to manage/display info about layer and the widget list can be extended using
hsLayerEditorWidgetContainerService
. The default widgets are: - HsTypeWidgetComponent
- HsMetadataWidgetComponent
- HsLegendWidgetComponent
- HsLayerEditorDimensionsComponent
- HsOpacityWidgetComponent
New widgets can be created by extending HsLayerEditorWidgetBaseComponent
class or implementing HsPanelComponent
interface and providing your own html template.
The widget can be added to the DOM by:
import {HsLayerEditorWidgetContainerService} from 'hslayers-ng';
...
this.hsLayerEditorWidgetContainerService.create(
HsYourWidgetComponent,
{}
);
Quick Links: Home ➖ App configuration ➖ Layer configuration ➖ Cesium configuration ➖ Composition schema (separate repo)