Class GLRouteElevation


  • public class GLRouteElevation
    extends globus.glmap.GLNativeObject
    Class to load height data
    • Method Detail

      • requestHeightForRoute

        public static long requestHeightForRoute​(@NonNull
                                                 GLRoute route,
                                                 @NonNull
                                                 GLRouteElevation.ResultsCallback resultsCallback)
        Requests height for points in route
        Parameters:
        route - route to update with height information
        resultsCallback - callback that is called when request is finished or cancelled
        Returns:
        request ID
      • requestOfflineHeightForRoute

        public static long requestOfflineHeightForRoute​(@NonNull
                                                        GLRoute route,
                                                        boolean allowPartial,
                                                        @NonNull
                                                        GLRouteElevation.ResultsCallback resultsCallback)
        Requests height for points in route
        Parameters:
        route - route to update with height information
        allowPartial - when 'false' request will fail if any tile with height data is absent
        resultsCallback - callback that is called when request is finished or cancelled
      • cancelRequest

        public static void cancelRequest​(long requestID)
        Cancels request that was started
        Parameters:
        requestID - ID of request to cancel
      • getMin

        public float getMin()
        Minimal value
        Returns:
        Minimal value
      • getMax

        public float getMax()
        Maximum value
        Returns:
        Maximum value
      • heightAtIndex

        public float heightAtIndex​(int index)
        Returns height at given point index
        Parameters:
        index - index of point
        Returns:
        height at given point