Constructor
new MapView()
- Since:
- Source:
Extends
Members
className :string
The HTML classes to use for this view's element
Type:
- Source:
classes :Object
Classes that will be used to select specific elements from the template.
Type:
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:
- Source:
model :Map
The model that this view uses
Type:
- Source:
template :Underscore.template
The primary HTML template for this view
Type:
- Source:
type :string
The type of View this is
Type:
- Source:
Methods
getSubViews() → {Array.<Backbone.View>}
Get a list of the views that this view contains.
- Since:
- 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:
- Source:
Renders this view
- Source:
Returns:
Returns the rendered view element
-
Type
-
MapView
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
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
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
Renders the scale bar view that shows the current position of the mouse on the
map.
- Source:
Returns:
Returns the rendered view
-
Type
-
ScaleBarView
Renders the toolbar element that contains sections for viewing and editing the
layer list.
- Source:
Returns:
Returns the rendered view
-
Type
-
ToolbarView