forked from ryankurte/go-mapbox
/
types.go
40 lines (36 loc) · 1.58 KB
/
types.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
package maps
// MapID selects which map to fetch from the API
type MapID string
// Map IDs
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"
MapIDTerrainRGB MapID = "mapbox.terrain-rgb"
)
// MapFormat specifies the format in which to return the map tiles
type MapFormat string
// Map formats
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
MapFormatPngRaw MapFormat = "pngraw" // Raw PNG (only for MapIDTerrainRGB)
MapFormatJpg70 MapFormat = "jpg70" // 70% quality JPG
MapFormatJpg80 MapFormat = "jpg80" // 80% quality JPG
MapFormatJpg90 MapFormat = "jpg90" // 90% quality JPG
MapFormatVectorTile MapFormat = "mvt" // Vector Tile
)