Class SketchService

Hierarchy

  • SketchService

Constructors

Properties

Methods

Constructors

  • Parameters

    • Optional expandMode: "auto" | "floating" | "drawer"

    Returns SketchService

Properties

expandMode?: "auto" | "floating" | "drawer"

Methods

  • Adds an Esri Sketch widget and, optionally, an Esri Expand widget containing the Sketch to the View.map.

    Returns

    the constructed widgets and layer as an Array

    Parameters

    • container: string | HTMLElement

      a DOM node or the ID of a DOM Node, as supported by the Widget.container property. Typically, just pass the Element.

    • layerProps: null | GraphicsLayerProperties

      layer properties that, if passed to the method, will be applied when constructing the GraphicsLayer

    • initSettings: ISketchConfig

      configuration settings that will be applied when constructing the widget

    Returns [Sketch, null | Expand, GraphicsLayer]

Generated using TypeDoc