Class

RoutingMenu

RoutingMenu(…props)

The routing menu that controls station search

Constructor

# new RoutingMenu(…props)

Default constructor, gets called automatically upon initialization.

Parameters:
Name Type Attributes Description
props RoutingMenuProps <repeatable>

Props received so that the component can function properly.

View Source Components/RoutingMenu/RoutingMenu.jsx, line 62

Members

# addNewSearchFieldHandler

Create a new search field (hop) between already existing search fields

View Source Components/RoutingMenu/RoutingMenu.jsx, line 193

# handleMotChange

Process changing the current selected mot, save in local state and dispatch store action.

View Source Components/RoutingMenu/RoutingMenu.jsx, line 173

# onFieldFocusHandler

Gets callled when a search field is in focus. Keep track of the last focused/selected field.

View Source Components/RoutingMenu/RoutingMenu.jsx, line 184

# processClickedResultHandler

The user uses the mouse/touch to select one of the search results.

View Source Components/RoutingMenu/RoutingMenu.jsx, line 343

# processHighlightedResultSelectHandler

The user makes changes to the current search. Either select the first result, or delete the text to make a new search.

View Source Components/RoutingMenu/RoutingMenu.jsx, line 298

# removeSearchFieldHandler

Remove a search field (hop) from a defined index. Then dispatch an update to the stops, so that the route can be updated if exists.

View Source Components/RoutingMenu/RoutingMenu.jsx, line 206

# searchStopsHandler

Perform searching for stations through the station API

View Source Components/RoutingMenu/RoutingMenu.jsx, line 230

# updateCurrentStops

Update the current stops array (string array) and the GeoJSON array in the local state.

View Source Components/RoutingMenu/RoutingMenu.jsx, line 129

# validateMots

Validate the mots provided from the props, then retrieve the icons for the valid ones.

View Source Components/RoutingMenu/RoutingMenu.jsx, line 147

Methods

# componentDidUpdate()

If a location was received through the props (user click on map) act accordingly.

View Source Components/RoutingMenu/RoutingMenu.jsx, line 85

# render()

Render the component to the dom.

View Source Components/RoutingMenu/RoutingMenu.jsx, line 362