pathPositions.add(Position.fromDegrees(49.11190305133165, -122.7345541413842, 100));
pathPositions.add(Position.fromDegrees(49.11101764617014, -122.7455553490629, 10));
pathPositions.add(Position.fromDegrees(49.11509767012883, -122.7459193678911, 10));
pathPositions.add(Position.fromDegrees(49.11467371318521, -122.7563706291131, 10));*/
Path path = new DirectedPath(pathPositions);
//SurfacePolyline path = new SurfacePolyline();
// To ensure that the arrowheads resize smoothly, refresh each time the path is drawn.
path.setAttributes(attrs);
path.setVisible(true);
path.setAltitudeMode(WorldWind.CLAMP_TO_GROUND);
path.setFollowTerrain(true);
/*path.setAltitudeMode(WorldWind.RELATIVE_TO_GROUND);*/
path.setPathType(AVKey.GREAT_CIRCLE);
layer.addRenderable(path);
// Add the layer to the model.
insertBeforeCompass(getWwd(), layer);