Route Handles With External Images

This example demonstrates how to set the image for the handle of each route stop to an external image. Not only is setting the handle images less code than placing a marker or vector over a stop location, it also causes the image to move with the route when a stop is dragged to a new location. Drag any of the stops on the route below to demonstrate this feature.

This example also shows how to set the default image for each handle type. If you drag a section of the route that is not located on an existing handle, a new handle will be generated using the image specified by the waypointURL parameter of the routing layer.