// Add the map to the JFrame
getContentPane().add(map, BorderLayout.CENTER);
// Create a mouse delegator to handle mouse events on the map
mapHandler.add(new MouseDelegator());
// Create and add the MouseMode that the RouteLayer wants
// events from. The MouseDelegator asks all layers which
// MouseMode they listen to, and hooks them up. When that
// MouseMode is active, events flow to the top layer, then
// down to lower layers if the event is not consumed along the