Show route directions between two points with some waypoints on the way. The first record returned by the query is taken as the starting point, and the last record is used as the end point for the journey.
Google Maps allows a maximum of 8 waypoints in addition to the origin and destination.
The Directions Panel is an ordinary APEX region with the following contents:
this.options.directionsPanel = "directionspanel";
If the "Optimize Waypoints" plugin attribute is switched on, the map would reorder the intermediate waypoints to minimize the route cost.