Class: ViewfinderView

ViewfinderView()

ViewfinderView allows a user to search for a latitude and longitude in the map view, and find suggestions for places related to their search terms.

Screenshot

Constructor

new ViewfinderView()

Since:
  • 2.28.0
Source:

Extends

  • Backbone.View

Members

className :string

The HTML class to use for this view's outermost element.
Type:
  • string
Source:

templateVars

Values meant to be used by the rendered HTML template.
Source:

type :string

The type of View this is
Type:
  • string
Source:

Methods

focusInput()

Helper function to focus input on the search query input and ensure that the cursor is at the end of the text (as opposed to the beginning which appears to be the default jQuery behavior).
Since:
  • 2.29.0
Source:

getSearch() → {JQuery}

Get the SearchView element.
Source:
Returns:
The SearchView element.
Type
JQuery

getZoomPresets() → {JQuery}

Get the ZoomPresetsView element.
Since:
  • 2.29.0
Source:
Returns:
The ZoomPresetsView element.
Type
JQuery

render()

Render the view by updating the HTML of the element. The new HTML is computed from an HTML template that is passed an object with relevant view state.
Source:

renderSearchView()

Render child SearchView and append to DOM.
Source:

renderZoomPresetsView()

Render child ZoomPresetsView and append to DOM.
Since:
  • 2.29.0
Source: