public void getElevationAlongPath ( PathElevationRequest req , ElevationServiceCallback callback ) { this . callback = callback ; JSObject doc = ( JSObject ) getJSObject ( ) . eval ( "document" ) ; doc . setMember ( getVariableName ( ) , this ) ; StringBuilder r = new StringBuilder ( getVariableName ( ) ) . append ( "." ) . append ( "getElevationAlongPath(" ) . append ( req . getVariableName ( ) ) . append ( ", " ) . append ( "function(results, status) {document." ) . append ( getVariableName ( ) ) . append ( ".processResponse(results, status);});" ) ; getJSObject ( ) . eval ( r . toString ( ) ) ; }
Create a request for elevations for samples along a path .