Class: LayerNavigationView

LayerNavigationView()

A panel with buttons that control navigation to points of interest in a Layer or other Map Asset, including a button that zooms to the entire extent of the asset. This view may update the opacity and visibility of a MapAsset.

Screenshot

Constructor

new LayerNavigationView()

Since:
  • 2.18.0
Source:

Extends

  • Backbone.View

Members

className :string

The HTML classes to use for this view's element
Type:
  • string
Source:

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
Source:

model :MapAsset

The model that this view uses
Type:
Source:

template :Underscore.template

The primary HTML template for this view
Type:
  • Underscore.template
Source:

type :string

The type of View this is
Type:
  • string
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:

render() → {LayerNavigationView}

Renders this view
Source:
Returns:
Returns the rendered view element
Type
LayerNavigationView