Waze Map Editor JavaScript SDK
    Preparing search index...

    Class Editing

    Methods for dealing with selection and undoing/redoing actions.

    Index

    Methods

    • Clear all selected objects.

      Returns void

    • Returns number

      the number of changes that can be redone.

    • Returns number

      the number of unsaved edits.

    • Returns boolean

      true if drawing is in progress.

    • Returns boolean

      true if editing is allowed.

    • Returns boolean

      false.

      house number mode is deprecated, this method will always return false.

    • Returns boolean

      true if user is editing as a guest in "practice mode"

    • Returns boolean

      true if user is in "snapshot mode", viewing what’s currently live in the Waze app.

    • Blocks editing by creating a lock.

      Returns string

      unique id to be used for unlocking editing.

    • Redo last undone action.

      Returns void

      InvalidStateError if redo is disabled

    • Removes a lock and releases editing if there're no other locks.

      Parameters

      • args: { lockId: string }

      Returns void

    • save changes to the map.

      Returns Promise<void>

      promise that resolves once save completed successfully or failed.

      InvalidStateError if save is disabled or when suggesting changes.

    • Select objects by id. All objects must be of the same type. An active selection is going to be replaced by the new selection. If object type doesn't support multi selection, only the first object is going to be selected. An empty array id will clear an active selection.

      Parameters

      Returns void

      DataModelNotFoundError in case the object is not found in the WME data model

    • Undo last action.

      Returns void

      InvalidStateError if undo is disabled

    • Undo all actions.

      Returns void

      InvalidStateError if undo is disabled