Skip to content

Instantly share code, notes, and snippets.

@poltib
Created April 26, 2014 09:33
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/11315766 to your computer and use it in GitHub Desktop.
Save poltib/11315766 to your computer and use it in GitHub Desktop.
gmap_script_globals
var NUMBER_DOT_TWONUMBERS, SAMPLES, alert, calc_bounds, chart, display_on_map, draw_path, elevation_req_active, elevation_service, elevations, gm_init, gm_service, path, plot_elevation, poly_init;
NUMBER_DOT_TWONUMBERS = /^(\d+.)(\d{0,2})(\d+)/;
poly = 1;
chart = 1;
elevations = 1;
SAMPLES = 200;
elevation_req_active = false;
path = new google.maps.MVCArray();
gm_service = new google.maps.DirectionsService();
elevation_service = new google.maps.ElevationService();
google.load("visualization", "1", {
packages: ["columnchart"]
});
google.maps.event.addDomListener(window, 'load', load_map);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment