Skip to content
Browse files

readme

  • Loading branch information...
1 parent 9f9303a commit 38372f22dfd9511f8515f8a4db4bb20994f98789 @seanbehan seanbehan committed May 19, 2012
Showing with 2 additions and 2 deletions.
  1. +1 −1 README.md
  2. +1 −1 lib/static_map.rb
View
2 README.md
@@ -45,7 +45,7 @@ The options are
* size String - in pixels of the image. 500x500
* sensor Boolean - autodetect user location
* markers Array of Hashes - location of pins on map. Requires a location address or lat/long coordinates
-* maptype String - satelite, road... etc
+* maptype String - type of map (satellite, road, hybrid, terrain)
* path String - path to write file to when #save is called
* alt String - alt text if using image tag
* title String - title text if using image tag
View
2 lib/static_map.rb
@@ -50,7 +50,7 @@ def url
end
def params
- x = { size: size, center: center, zoom: zoom, sensor: sensor }.reject { |k,v| v.nil? }.map do |k,v|
+ x = { size: size, center: center, zoom: zoom, sensor: sensor, maptype: maptype }.reject { |k,v| v.nil? }.map do |k,v|
"#{k}=#{CGI.escape(v.to_s)}"
end.join("&")

0 comments on commit 38372f2

Please sign in to comment.
Something went wrong with that request. Please try again.