Class GroupLayerDirective

Creates an Esri GroupLayer of this element's "child elements".

Known Limitation

The GroupLayer creation will only add nested elements at initialization of the Host Component. This limitation means that all group layer children must be present in the View at the time of creation. This limitation means that ngIf is not currently supported. Please file an issue if this limitation bites you.

Example Usage:

<vmc-group-layer [properties]="groupLayerProperties">
<vmc-feature-layer
*ngFor="let prop of featureLayers"
[properties]="prop"
(layerViewCreate)="onLayerViewCreate($event)"
></vmc-feature-layer>
<vmc-map-image-layer
layerUrl="https://sampleserver6.arcgisonline.com/arcgis/rest/services/USA/MapServer"
[properties]="{ visible: false }"
></vmc-map-image-layer>
<vmc-graphics-layer [properties]="graphicsLayerProps"></vmc-graphics-layer>
<vmc-csv-layer [properties]="csvLayerProps"></vmc-csv-layer>
</vmc-group-layer>

Hierarchy

  • GroupLayerDirective

Implements

  • OnInit
  • OnDestroy
  • AfterViewInit

Constructors

  • Parameters

    • destroy$: Observable<null>
    • esriEventer: EsriEventer
    • viewBase: ViewBase

    Returns GroupLayerDirective

Properties

collectionAfterAdd: Observable<CollectionAfterAddEvent> = ...
collectionAfterChanges: Observable<CollectionAfterChangesEvent> = ...
collectionAfterRemove: Observable<CollectionAfterChangesEvent> = ...
collectionBeforeAdd: Observable<CollectionBeforeAddEvent> = ...
collectionBeforeChanges: Observable<CollectionBeforeChangesEvent> = ...
collectionBeforeRemove: Observable<CollectionBeforeRemoveEvent> = ...
collectionChange: Observable<CollectionChangeEvent<any>> = ...
csvLayers: QueryList<CsvLayerDirective>
destroy$: Observable<null>
esriEventer: EsriEventer
featureLayers: QueryList<FeatureLayerDirective>
graphicsLayers: QueryList<GraphicsLayerDirective>
groupLayer: null | GroupLayer = null
groupLayer$: BehaviorSubject<null | GroupLayer> = ...
groupLayerAdded: EventEmitter<null | GroupLayer> = ...
groupLayerReady: EventEmitter<null | GroupLayer> = ...
layerViewCreate: Observable<LayerLayerviewCreateEvent> = ...
layerViewCreateError: Observable<LayerLayerviewCreateErrorEvent> = ...
layerViewDestroy: Observable<LayerLayerviewDestroyEvent> = ...
layers$: Observable<Collection<Layer>> = ...
mapImageLayers: QueryList<MapImageLayerDirective>
properties$: BehaviorSubject<null | GroupLayerProperties> = ...
view$: Observable<null | MapView | SceneView> = ...
viewBase: ViewBase

Accessors

  • set properties(val: null | GroupLayerProperties): void
  • Parameters

    • val: null | GroupLayerProperties

    Returns void

Methods

  • Parameters

    • view: MapView | SceneView

    Returns void

  • Parameters

    • groupLayer: GroupLayer

    Returns void

  • Returns void

  • Returns void

  • Returns void

  • Parameters

    • view: MapView | SceneView
    • properties: null | GroupLayerProperties

    Returns void

Generated using TypeDoc