Constructor
new ZoomPresetCategories()
- Since:
- Source:
Extends
Members
model
- Source:
Methods
getZoomPresets() → {Array.<ZoomPresets>}
Get an array of ZoomPresets, one per ZoomPresetCategory.
- Source:
Returns:
A list of ZoomPresets collections.
-
Type
-
Array.<ZoomPresets>
getZoomPresetsFlat() → {ZoomPresets}
Get a single flattened ZoomPresets collection from all categories.
- Source:
Returns:
A ZoomPresets collection constructed from the
combined models of each category's ZoomPresets.
-
Type
-
ZoomPresets
parse(resp, options) → {Array.<object>}
Parse raw category configs into attributes for ZoomPresetCategory
models. Ensures the Map model is available to each category.
Parameters:
Name |
Type |
Description |
resp |
Array.<MapConfig#ZoomPresetCategory>
|
The raw array of category
configs. |
options |
object
|
Options passed to the collection constructor.
Properties
Name |
Type |
Attributes |
Description |
mapModel |
MapModel
|
<optional>
|
The Map model for these presets. |
|
- Source:
Returns:
The parsed attributes for each model.
-
Type
-
Array.<object>
setMapModel(mapModel)
Set the parent Map model on each ZoomPresetCategory in this collection.
Parameters:
Name |
Type |
Description |
mapModel |
MapModel
|
The Map model that contains these
categories. |
- Source: