class Gmaps::StaticMap

Included Modules

Defined in:

gmaps/static_map.cr

Constant Summary

API_URL = "https://maps.googleapis.com/maps/api/staticmap"
Log = ::Log.for(self)

Constructors

Class Method Summary

Instance Method Summary

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) #

[View source]

Class Method Detail

def self.build(&) #

[View source]

Instance Method Detail

def add_marker(location : GoogleMaps::Locatable, label : String | Nil = nil, color : String | Nil = "blue", size : String | Nil = nil) #

[View source]
def add_route_overlay(route : Gmaps::Route) #

[View source]
def api_key : String | Nil #

[View source]
def api_key=(api_key : String | Nil) #

[View source]
def center : String | Nil #

[View source]
def center=(center : String | Nil) #

[View source]
def fetch(format : String = format, api_key : String | Nil = api_key) #

[View source]
def format : String | Nil #

[View source]
def format=(format : String | Nil) #

[View source]
def markers : Array(Marker) #

[View source]
def markers=(markers : Array(Marker)) #

[View source]
def path : String | Nil #

[View source]
def path=(path : String | Nil) #

[View source]
def scale : Int32 | Nil #

[View source]
def scale=(scale : Int32 | Nil) #

[View source]
def size : String #

[View source]
def size=(size : String) #

[View source]
def zoom : Int32 #

[View source]
def zoom=(zoom : Int32) #

[View source]