Package globus.glroute
Class GLRouteElevation
java.lang.Object
globus.glmap.GLNativeObject
globus.glroute.GLRouteElevation
Class to load height data
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic interface
Callback that will be called when request is finished -
Method Summary
Modifier and TypeMethodDescriptionstatic void
cancelRequest
(long requestID) Cancels request that was startedfloat
getMax()
Maximum valuefloat
getMin()
Minimal valuefloat
heightAtIndex
(int index) Returns height at given point indexstatic long
requestHeightForRoute
(GLRoute route, GLRouteElevation.ResultsCallback resultsCallback) Requests height for points in routestatic long
requestOfflineHeightForRoute
(GLRoute route, boolean allowPartial, GLRouteElevation.ResultsCallback resultsCallback) Requests height for points in routeMethods inherited from class globus.glmap.GLNativeObject
dispose
-
Method Details
-
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 informationresultsCallback
- 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 informationallowPartial
- when 'false' request will fail if any tile with height data is absentresultsCallback
- callback that is called when request is finished or cancelled- Returns:
- request ID
-
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
-