Class: MapView

MapView()

An interactive 2D or 3D map that allows visualization of geo-spatial data.

Screenshot

Constructor

new MapView()

Since:
  • 2.18.0
Source:

Extends

  • Backbone.View

Members

className :string

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

events :object

The events this view will listen to and the associated function to call.
Type:
  • object
Source:

model :Map

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

getSubViews() → {Array.<Backbone.View>}

Get a list of the views that this view contains.
Since:
  • 2.27.0
Source:
Returns:
Returns an array of all of the sub-views. Some may be undefined if they have not been rendered yet.
Type
Array.<Backbone.View>

initialize()

Source:

onClose()

Executed when the view is closed. This will close all of the sub-views.
Since:
  • 2.27.0
Source:

render() → {MapView}

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

renderFeatureInfo() → {FeatureInfoView}

Renders the info box that is displayed when a user clicks on a feature on the map. If there are multiple features selected, this will show information for the first one only.
Source:
Returns:
Returns the rendered view
Type
FeatureInfoView

renderLayerDetails() → {LayerDetailsView}

Renders the layer details view that is displayed when a user clicks on a layer in the toolbar.
Source:
Returns:
Returns the rendered view
Type
LayerDetailsView

renderMapWidget() → {MapWidgetContainerView}

Renders the view that shows the map/globe and all of the geo-spatial data.
Source:
Returns:
Returns the rendered view
Type
MapWidgetContainerView

renderToolbar() → {ToolbarView}

Renders the toolbar element that contains sections for viewing and editing the layer list.
Source:
Returns:
Returns the rendered view
Type
ToolbarView