Constructor
new LayerNavigationView()
- Since:
- Source:
Extends
Members
className :string
The HTML classes to use for this view's element
Type:
- Source:
classes :Object
CSS classes assigned to the HTML elements that make up this view
Type:
Properties:
Name |
Type |
Description |
extentButton |
string
|
The button that should zoom to the full extent
of the asset/layer when clicked |
- Source:
The model that this view uses
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
events() → {Object}
Creates an object that gives the events this view will listen to and the
associated function to call. Each entry in the object has the format 'event
selector': 'function'.
- Source:
Returns:
-
Type
-
Object
flyToExtent()
Trigger an event from the Map Asset model that tells the Map Widget to zoom to
the full extent of this layer. Also make sure that the layer is visible. If
it's not visible after the user clicks the "zoom" button, that could be
confusing.
- Source:
initialize(optionsopt)
Executed when a new LayerNavigationView is created
Parameters:
Name |
Type |
Attributes |
Description |
options |
Object
|
<optional>
|
A literal object with options to pass to the view |
- Source:
Renders this view
- Source:
Returns:
Returns the rendered view element
-
Type
-
LayerNavigationView