Documentation
¶
Overview ¶
staticmap assists with https://developers.google.com/maps/documentation/maps-static/start
staticmap assists with https://developers.google.com/maps/documentation/maps-static/start
Index ¶
- Constants
- type Markers
- type MarkersMatrix
- type MarkersSlice
- type StaticMap
- func (sm *StaticMap) SetDefaultEU()
- func (sm *StaticMap) SetDefaultUSAKHI()
- func (sm *StaticMap) SetDefaultUSContiguous()
- func (sm *StaticMap) SetDefaultWorld()
- func (sm *StaticMap) Size() string
- func (sm *StaticMap) URL(key string) string
- func (sm *StaticMap) WriteFilePNG(filename, key string) error
Constants ¶
View Source
const ( SizeTiny = "tiny" SizeMid = "mid" SizeSmall = "small" ColorBlack = "black" ColorBlue = "blue" ColorBrown = "brown" ColorGray = "gray" ColorGreen = "green" ColorOrange = "orange" ColorRed = "red" ColorPurple = "purple" ColorWhite = "white" ColorYellow = "yellow" )
View Source
const ( DefaultSize = "500x500" DefaultZoom = 5 APIURL = "https://maps.googleapis.com/maps/api/staticmap" ParamCenter = "center" ParamKey = "key" ParamMarkers = "markers" ParamSize = "size" ParamZoom = "zoom" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Markers ¶
type MarkersMatrix ¶
type MarkersMatrix [][]Markers
func (MarkersMatrix) WriteFilesPNG ¶
func (mm MarkersMatrix) WriteFilesPNG(filenames []string, sm StaticMap, key string) error
type MarkersSlice ¶
type MarkersSlice []Markers
type StaticMap ¶
type StaticMap struct { Center *latlng.LatLng Zoom uint Height int Width int MarkersList []Markers LatLngPrecision int }
func (*StaticMap) SetDefaultEU ¶
func (sm *StaticMap) SetDefaultEU()
func (*StaticMap) SetDefaultUSAKHI ¶
func (sm *StaticMap) SetDefaultUSAKHI()
func (*StaticMap) SetDefaultUSContiguous ¶
func (sm *StaticMap) SetDefaultUSContiguous()
func (*StaticMap) SetDefaultWorld ¶
func (sm *StaticMap) SetDefaultWorld()
func (*StaticMap) WriteFilePNG ¶
Click to show internal directories.
Click to hide internal directories.