Skip to content

Instantly share code, notes, and snippets.

@tarakanbg
Created January 23, 2013 20:18
Show Gist options
  • Save tarakanbg/4612580 to your computer and use it in GitHub Desktop.
Save tarakanbg/4612580 to your computer and use it in GitHub Desktop.
# Setting width, height, enabling terrain overlay and disabling the city labels:
"egll-lowi".gcmap(:width => 800, :height => 400, :terrain => true, :city => false) # => Returns an image map URL with set width, height and terrain, with city labels disabled
# Setting the map to display the airports' names instead of the ICAO/IATA codes
route = "egll-lowi"
route.gcmap(:airport_name => true) # => Returns an image map URL with airport names displayed
# Setting the map to display the airports' names and a terrain overlay
route = "egll-lowi"
route.gcmap(:airport_name => true, :terrain => true) # => Returns an image map URL with airport names and terrain displayed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment