Constructor
# new MapComponent(…props)
Default constructor, gets called automatically upon initialization.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
props |
MapComponentProps |
<repeatable> |
Props received so that the component can function properly. |
Members
Methods
# componentDidMount()
Create Openlayers map (source, view, layer, etc...). Add event listener onClick to handle location selection from map.
# componentDidUpdate()
Perform the necessary actions when receiving updated props. If new stops are received, then remove any existing stops/routes and draw those stops/routes.
# render()
Render the map component to the dom