Constructor
new LayerDownloadView()
- Since:
- Source:
Extends
Members
className :string
The HTML classes to use for this view's element
Type:
- Source:
template :Underscore.template
The primary HTML template for this view.
Type:
- Source:
type :string
The type of View this is
Type:
- Source:
Methods
collapse()
Hide the content section without changing the checkbox state.
- Source:
events()
- Source:
expand()
Show the content section without changing the checkbox state.
- Source:
handleCheckboxChange()
Handles changes to the layer checkbox. If checked, selects the layer
and expands the content; if unchecked, deselects, collapses, and resets
the dropdowns.
- Source:
handleFileTypeChange()
Handles changes to the file-type dropdown. Calculates the estimated
file size and updates the info box and save-button state.
- Source:
handleResolutionChange()
Handles changes to the resolution dropdown. Enables the file-type
dropdown, clears the file-type selection, removes stale download links,
and updates the info box and save-button state.
- Source:
initialize(options)
Initialise the view.
Parameters:
| Name |
Type |
Description |
options |
object
|
Options for the view.
Properties
| Name |
Type |
Description |
item |
object
|
The layer data object for this row. |
downloadPanelView |
DownloadPanelView
|
Reference to
the parent view for shared logic (save-button state, file-size). |
|
- Source:
isExpanded() → {boolean}
- Source:
Returns:
Whether the content section is currently visible.
-
Type
-
boolean
remove()
- Source:
Render the complete panel: a header row with [checkbox] [title] and
a collapsible content section with the download controls.
- Source:
Returns:
this
-
Type
-
LayerDownloadView
resetDropdowns()
Reset both dropdowns to their default/disabled state and clear the
file-size label.
- Source: