Skip to content

Instantly share code, notes, and snippets.

@poltib
Created April 26, 2014 09:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save poltib/11315836 to your computer and use it in GitHub Desktop.
Save poltib/11315836 to your computer and use it in GitHub Desktop.
gmap_script_drawpath
draw_path = function(path) {
var pathRequest;
if (elevation_req_active || !path) {
r eturn;
}
pathRequest = {
path: path,
samples: SAMPLES
};
elevation_req_active = true;
return elevation_service.getElevationAlongPath(pathRequest, plot_elevation);
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment