src/main/java/de/blau/android/layer/gpx/MapOverlay.java
/**
     * Get a label from a waypoint
     * 
     * @param labelIndex the index
     * @param wp the waypoint
     * @return the label or null
     */
Get a label from a waypoint

@param labelIndex the index
@param wp the waypoint
@return the label or null
Get a label from a waypoint @param labelIndex the index @param wp the waypoint @return the label or null
@Nullable
    private String indexToLabel(final int labelIndex, WayPoint wp) {
        switch (labelIndex) {
        case 0:
            return wp.getLabel();
        case 1:
            return wp.getName();
        case 2:
            return wp.getDescription();
        case 3:
            return wp.getType();
        default:
            return null;
        }
    }
@ Nullable private String indexToLabel ( final int labelIndex , WayPoint wp ) { switch ( labelIndex ) { case 0 : return wp . getLabel ( ) ; case 1 : return wp . getName ( ) ; case 2 : return wp . getDescription ( ) ; case 3 : return wp . getType ( ) ; default : return null ; } }
Get a label from a waypoint
Get a label from a waypoint