maps

package
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 16, 2017 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MapFormat

type MapFormat string
const (
	MapFormatPng    MapFormat = "png"    // true color PNG
	MapFormatPng32  MapFormat = "png32"  // 32 color indexed PNG
	MapFormatPng64  MapFormat = "png64"  // 64 color indexed PNG
	MapFormatPng128 MapFormat = "png128" // 128 color indexed PNG
	MapFormatPng256 MapFormat = "png256" // 256 color indexed PNG
	MapFormatJpg70  MapFormat = "jpg70"  // 70% quality JPG
	MapFormatJpg80  MapFormat = "jpg80"  // 80% quality JPG
	MapFormatJpg90  MapFormat = "jpg90"  // 90% quality JPG
)

type MapID

type MapID string
const (
	MapIDStreets          MapID = "mapbox.streets"
	MapIDLight            MapID = "mapbox.light"
	MapIDDark             MapID = "mapbox.dark"
	MapIDSatellite        MapID = "mapbox.satellite"
	MapIDStreetsSatellite MapID = "mapbox.streets-satellite"
	MapIDWheatpaste       MapID = "mapbox.wheatpaste"
	MapIDStreetsBasic     MapID = "mapbox.streets-basic"
	MapIDComic            MapID = "mapbox.comic"
	MapIDOutdoors         MapID = "mapbox.outdoors"
	MapIDRunBikeHike      MapID = "mapbox.run-bike-hike"
	MapIDPencil           MapID = "mapbox.pencil"
	MapIDPirates          MapID = "mapbox.pirates"
	MapIDEmerald          MapID = "mapbox.emerald"
	MapIDHighContrast     MapID = "mapbox.high-contrast"
)

type Maps

type Maps struct {
	// contains filtered or unexported fields
}

Maps api wrapper instance

func NewMaps

func NewMaps(base *base.Base) *Maps

NewMaps Create a new Maps API wrapper

func (*Maps) GetTiles

func (m *Maps) GetTiles(mapID MapID, x, y, z uint, format MapFormat, highDPI bool) (image.Image, error)

GetTiles fetches the map tile for the specified location

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL