-
Notifications
You must be signed in to change notification settings - Fork 67
API Documentation
Sets/updates the main container DOM element, and (optionally), a separate element for the legend.
Creates and renders the transitive network for the currently loaded Transitive data object.
Sets the container element and renders the network in a single call.
Redraws a rendered network, e.g. on a pan/zoom action (calls render() first if network has not been rendered).
Clears the current Transitive data object.
Updates the current Transitive data object.
Highlights a specific journey (i.e. an individual path through the network) using the journey's id as defined in the Transitive data object.
Returns an object containing the display's current SVG styling for a given mode, as defined by an OTP mode identifier ("WALK", "BUS", etc.)
Sets the lon/lat bounding box for the display, expressed as [ [west, south], [east, north] ]
Returns the lon/lat bounding box for the currently loaded network, expressed as [ [west, south], [east, north] ]
Updates the dimensions of the display in pixels