elevation profile is drawn in static div; popup doesn't follow mousepointer anymore
refactored modifiedSwitch behaviour; profile can now contain arbitrary number of vertices (set by maxVertices)