geoview-core - v2.2.0
    Preparing search index...

    Class Draw

    Class used for drawing features on a map.

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    mapViewer: MapViewer

    Reference the MapViewer associated with this interaction

    Methods

    • Unregisters a callback handler for the drawabort event.

      Parameters

      • callback: DrawDelegate

        The callback to stop being called whenever the event is emitted

      Returns void

    • Unregisters a callback handler for the drawend event.

      Parameters

      • callback: DrawDelegate

        The callback to stop being called whenever the event is emitted

      Returns void

    • Unregisters a callback handler for the drawstart event.

      Parameters

      • callback: DrawDelegate

        The callback to stop being called whenever the event is emitted

      Returns void

    • Removes the last point added to the current drawing, allowing the user to undo the last step while drawing.

      Returns boolean

      True if a point was removed, false if there were no points to remove