class Gmaps::StaticMap
- Gmaps::StaticMap
- Reference
- Object
Included Modules
Defined in:
gmaps/static_map.crConstant Summary
-
API_URL =
"https://maps.googleapis.com/maps/api/staticmap"
-
Log =
::Log.for(self)
Constructors
Class Method Summary
Instance Method Summary
- #add_marker(location : GoogleMaps::Locatable, label : String | Nil = nil, color : String | Nil = "blue", size : String | Nil = nil)
- #add_route_overlay(route : Gmaps::Route)
- #api_key : String | Nil
- #api_key=(api_key : String | Nil)
- #center : String | Nil
- #center=(center : String | Nil)
- #fetch(format : String = format, api_key : String | Nil = api_key)
- #format : String | Nil
- #format=(format : String | Nil)
- #markers : Array(Marker)
- #markers=(markers : Array(Marker))
- #path : String | Nil
- #path=(path : String | Nil)
- #scale : Int32 | Nil
- #scale=(scale : Int32 | Nil)
- #size : String
- #size=(size : String)
- #zoom : Int32
- #zoom=(zoom : Int32)
Instance methods inherited from module Gmaps::UrlSigner
encrypt(key, data)
encrypt,
generate_signature(path, key)
generate_signature,
sign(url, key)
sign,
url_safe_base64_decode(base64_string)
url_safe_base64_decode,
url_safe_base64_encode(raw)
url_safe_base64_encode
Constructor Detail
def self.new(api_key : Nil | String = nil, size : String = "640x640", center : Nil | String = "0,0", zoom : Int32 = 0, path : Nil | String = nil, scale : Int32 | Nil = nil)
#
Class Method Detail
Instance Method Detail
def add_marker(location : GoogleMaps::Locatable, label : String | Nil = nil, color : String | Nil = "blue", size : String | Nil = nil)
#