Numbered Route Handles

Using the custom SVG feature for route handles, this example demonstrates how to customize the individual handles by numbering them. By using the routing layer's onRouteModified callback function, the handles can be numbered dynamically. Try dragging a random point in the route in order to generate a new waypoint, the numbers of the new and any existing route handles will be adjusted accordingly.