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:

classes :Object

Classes that will be used to select specific elements from the template.
Type:
  • Object
Properties:
Name Type Description
mapWidgetContainer string The element that will hold the map widget (i.e. CesiumWidgetView)
scaleBarContainer string The container for the ScaleBarView
featureInfoContainer string The container for the box that will show details about a selected feature
toolbarContainer string The container for the toolbar UI
layerDetailsContainer string The container for the element that will show details about a specific layer
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(optionsopt)

Executed when a new MapView is created
Parameters:
Name Type Attributes Description
options Object <optional>
A literal object with options to pass to the view.
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() → {CesiumWidgetView}

Renders the view that shows the map/globe and all of the geo-spatial data. Currently, this uses the CesiumWidgetView, but this function could be modified to use an alternative map widget in the future.
Source:
Returns:
Returns the rendered view
Type
CesiumWidgetView

renderScaleBar() → {ScaleBarView}

Renders the scale bar view that shows the current position of the mouse on the map.
Source:
Returns:
Returns the rendered view
Type
ScaleBarView

renderToolbar() → {ToolbarView}

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