Class: FeatureGrid

FeatureGrid()

The FeatureGrid

Constructor

new FeatureGrid()

The constructor.

Source:

Extends

  • React.Component

Members

defaultProps :Object

The default properties.

Type:
  • Object
Source:

deinitMapEventHandlers

Unbinds the pointermove and click event handlers from the map (if given).

Source:

deinitVectorLayer

Removes the vector layer from the given map (if any).

Source:

getColumnDefs

Returns the column definitions out of the attributes of the first given feature.

Source:

getFeatureFromRowKey

Returns the correspondig feature for the given table row key.

Source:

getTableData

Returns the table row data from all of the given features.

Source:

highlightFeatures

Highlights the given features in the map.

Source:

initMapEventHandlers

Adds map event callbacks to highlight and select features in the map (if given) on pointermove and singleclick. Hovered and selected features will be highlighted and selected in the grid as well.

Source:

initVectorLayer

Initialized the vector layer that will be used to draw the input features on and adds it to the map (if any).

Source:

onMapPointerMove

Highlights the feature beneath the cursor on the map and in the grid.

Source:

onMapSingleClick

Selects the selected feature in the map and in the grid.

Source:

onRowClick

Called on row click and zooms the the corresponding feature's extent.

Source:

onRowMouseOut

Called on mouseout and unhightlights any highlighted feature.

Source:

onRowMouseOver

Called on row mouseover and hightlights the corresponding feature's geometry.

Source:

onSelectChange

Called if the selection changes.

Source:

propTypes :Object

The properties.

Type:
  • Object
Source:

resetFeatureStyles

Resets the style of all features.

Source:

selectFeatures

Sets the select style to the given features in the map.

Source:

unhighlightFeatures

Unhighlights the given features in the map.

Source:

zoomToFeatures

Fits the map's view to the extent of the passed features.

Source:

Methods

componentDidMount()

Called on lifecycle phase componentDidMount.

Source:

componentWillReceiveProps(nextProps)

Called on lifecycle phase componentWillReceiveProps.

Parameters:
Name Type Description
nextProps Object

The next props.

Source:

componentWillUnmount()

Called on lifecycle phase componentWillUnmount.

Source:

render()

The render method.

Source: