Class WebMapComponent

Renders an Esri ArcGIS JavaScript API WebMap to the DOM.

This component can be thought of as the top of a VMC map tree. Add the vmc-web-map selector to your Angular template, and add any dependent widgets inside the element as child elements.

Example usage:

<vmc-web-map>
<vmc-legend></vmc-legend>
</vmc-web-map>

Hierarchy

  • WebMapComponent

Implements

  • ViewBase
  • OnInit
  • OnDestroy

Constructors

  • Parameters

    • destroy$: Observable<null>
    • esriEventer: EsriEventer
    • rxLayerViewService: RxLayerViewService
    • webMapService: WebMapService

    Returns WebMapComponent

Properties

_portalItemId$: BehaviorSubject<string> = ...
_view: BehaviorSubject<null | MapView> = ...
_webMap: BehaviorSubject<null | WebMap> = ...
destroy$: Observable<null>
el: ElementRef<HTMLDivElement>

An Angular ElementRef of the

element that hosts the map view.

esriEventer: EsriEventer
initProps: null | MapViewProperties = null

A static set of Esri MapViewProperties that will be passed to the Esri MapView when it is constructed by the WebMapComponent. Useful to set properties on the view for the first render. For example, to disable parts of the default MapView UI.

rxLayerViewService: RxLayerViewService
view: null | MapView = null

A reference to the Esri MapView that is associated with this component's view.

view$: Observable<null | MapView> = ...
webMap: null | WebMap = null

A reference to the Esri MapMap that is associated with this component's view.

webMap$: Observable<null | MapView> = ...
webMapService: WebMapService

Events

centerChange: Observable<Point> = ...

The Esri MapView.center property as an Angular event. Internally, the VMC library uses the Esri watch pattern.

Remark

supports 2-way data binding, but it can disrupt animations.

focusedChange: Observable<boolean> = ...

The Esri MapView.focused property as an Angular event. Internally, the VMC library uses the Esri watch pattern.

Remark

Does not supports 2-way data binding.

interactingChange: Observable<boolean> = ...

The Esri MapView.interacting property as an Angular event. Internally, the VMC library uses the Esri watch pattern.

Remark

Does not supports 2-way data binding.

isUpdatingLayers: Observable<boolean> = ...

An rxjs Observable Stream exposed as an Angular Event. This property events the value true when one or more supported layers in the MapView are updating. It emits false when the updates are stable.

mapViewReady: EventEmitter<MapView> = ...

Emits a reference to the Esri MapView when it is fully loaded, as indicated by the View's View.when method.

orientationChange: Observable<string> = ...

The Esri MapView.orientation property as an Angular event. Internally, the VMC library uses the Esri watch pattern.

Remark

Does not supports 2-way data binding.

resolutionChange: Observable<number> = ...

The Esri MapView.resolution property as an Angular event. Internally, the VMC library uses the Esri watch pattern.

Remark

Does not supports 2-way data binding.

scaleChange: Observable<number> = ...

The Esri MapView.scale property as an Angular event. Internally, the VMC library uses the Esri watch pattern.

Remark

Does not supports 2-way data binding.

stationaryChange: Observable<boolean> = ...

The Esri MapView.stationary property as an Angular event. Internally, the VMC library uses the Esri watch pattern.

Remark

Does not supports 2-way data binding.

updatingChange: Observable<boolean> = ...

The Esri MapView.updating property as an Angular event. Internally, the VMC library uses the Esri watch pattern.

Remark

Does not supports 2-way data binding.

viewBlur: Observable<ViewBlurEvent> = ...

The Esri MapView.blur event, exposed as an Angular event.

viewClick: Observable<ViewClickEvent> = ...

The Esri MapView.click event, exposed as an Angular event.

viewDblClick: Observable<ViewDoubleClickEvent> = ...

The Esri MapView.double-click event, exposed as an Angular event.

viewDrag: Observable<ViewDragEvent> = ...

The Esri MapView.drag event, exposed as an Angular event.

viewFocus: Observable<ViewFocusEvent> = ...

The Esri MapView.focus event, exposed as an Angular event.

viewHold: Observable<ViewHoldEvent> = ...

The Esri MapView.hold event, exposed as an Angular event.

viewImmediateClick: Observable<ViewImmediateClickEvent> = ...

The Esri MapView.immediate-click event, exposed as an Angular event.

viewImmediateDblClick: Observable<ViewImmediateDoubleClickEvent> = ...

The Esri MapView.immediate-double-click event, exposed as an Angular event.

viewKeyDown: Observable<ViewKeyDownEvent> = ...

The Esri MapView.key-down event, exposed as an Angular event.

viewKeyUp: Observable<ViewKeyUpEvent> = ...

The Esri MapView.key-up event, exposed as an Angular event.

viewLayerViewCreate: Observable<ViewLayerviewCreateEvent> = ...

The Esri MapView.layerview-create event, exposed as an Angular event.

viewLayerViewCreateError: Observable<ViewLayerviewCreateErrorEvent> = ...

The Esri MapView.layerview-create-error event, exposed as an Angular event.

viewLayerViewDestroy: Observable<ViewLayerviewDestroyEvent> = ...

The Esri MapView.layerview-destroy event, exposed as an Angular event.

viewMouseWheel: Observable<ViewMouseWheelEvent> = ...

The Esri MapView.mouse-wheel event, exposed as an Angular event.

viewPointerDown: Observable<ViewPointerDownEvent> = ...

The Esri MapView.pointer-down event, exposed as an Angular event.

viewPointerEnter: Observable<ViewPointerEnterEvent> = ...

The Esri MapView.pointer-enter event, exposed as an Angular event.

viewPointerLeave: Observable<ViewPointerLeaveEvent> = ...

The Esri MapView.pointer-leave event, exposed as an Angular event.

viewPointerMove: Observable<ViewPointerMoveEvent> = ...

The Esri MapView.pointer-move event, exposed as an Angular event.

viewPointerUp: Observable<ViewPointerUpEvent> = ...

The Esri MapView.pointer-up event, exposed as an Angular event.

viewResize: Observable<ViewResizeEvent> = ...

The Esri MapView.resize event, exposed as an Angular event.

viewpointChange: Observable<Viewpoint> = ...

The Esri MapView.viewpoint property as an Angular event. Internally, the VMC library uses the Esri watch pattern.

Remark

Does not supports 2-way data binding.

webMapReady: EventEmitter<WebMap> = ...

Emits a reference to the Esri WebMap when it is fully loaded, as indicated by the object's WebMap.when method.

zoomChange: Observable<number> = ...

The Esri MapView.zoom property as an Angular event. Internally, the VMC library uses the Esri watch pattern.

Remark

supports 2-way data binding, but it can disrupt animations.

Accessors

  • set portalItemId(val: string): void
  • An Angular Component input.

    The PortalItem.id of a WebMap item in an ArcGIS Portal or AGOL.

    Parameters

    • val: string

    Returns void

Methods

  • Private

    Parameters

    • id: string

    Returns void

  • Private

    Returns void

  • Private

    Returns void

Generated using TypeDoc