Class: MapAssetEditorView

MapAssetEditorView()

Edits Label and Description and owns the imagery editor.

Screenshot

Constructor

new MapAssetEditorView()

Since:
  • 2.41.0
Source:

Extends

  • Backbone.View

Members

className

Source:

model :MapAsset

The existing asset supplied by the caller.
Type:
Source:

typeEditorView :MapImageryEditorView|null

The imagery editor owned by this view.
Type:
Source:

Methods

events()

Source:

focusLabel() → {void}

Focus and select the label for editing.
Since:
  • 2.41.0
Source:
Returns:
Type
void

onClose()

Remove the child editor before rendering or closing
Source:

remove()

Source:

render() → {MapAssetEditorView}

Render shared fields and the imagery editor when supported.
Source:
Returns:
This view
Type
MapAssetEditorView

showValidation(fieldopt)

Show source errors in the imagery editor, if present.
Parameters:
Name Type Attributes Description
field string <optional>
The source field to check
Source:

template() → {string}

Build the Label and Description controls.
Source:
Returns:
Markup containing no model-supplied values
Type
string

updateModel(event)

Update the asset's Label or Description.
Parameters:
Name Type Description
event Event The changed field
Source: