Extends
- Backbone.View
Members
className :string
The HTML classes to use for this view's element
Type:
- string
classes :Object
CSS classes assigned to the HTML elements that make up this view
Type:
- Object
Properties:
Name | Type | Description |
---|---|---|
extentButton |
string | The button that should zoom to the full extent of the asset/layer when clicked |
model :MapAsset
The model that this view uses
Type:
template :Underscore.template
The primary HTML template for this view
Type:
- Underscore.template
type :string
The type of View this is
Type:
- string
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'.
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.
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 |
render() → {LayerNavigationView}
Renders this view
Returns:
Returns the rendered view element
- Type
- LayerNavigationView