Documentation ¶
Overview ¶
package tilezen provides methods for retrieving and caching tilezen/nextzen map tiles.
Index ¶
- Constants
- Variables
- func CropTile(z int, x int, y int, fh io.ReadCloser) (io.ReadCloser, error)
- func FetchTile(t *Tile, opts *Options) (io.ReadSeekCloser, error)
- func FetchTileWithCache(ctx context.Context, tile_cache cache.Cache, tile *Tile, opts *Options) (io.ReadSeekCloser, error)
- func IsOverZoom(z int) bool
- type Options
- type Tile
Constants ¶
View Source
const DEFAULT_FORMAT = "mvt"
View Source
const DEFAULT_LAYER = "all"
View Source
const DEFAULT_SIZE string = "512"
View Source
const DEFAULT_URITEMPLATE string = "https://tile.nextzen.org/tilezen/vector/{version}/{size}/{layer}/{z}/{x}/{y}.{format}?api_key={apikey}"
View Source
const DEFAULT_VERSION string = "v1"
View Source
const MAX_ZOOM int = 16
Variables ¶
View Source
var Layers []string
Functions ¶
func CropTile ¶
func CropTile(z int, x int, y int, fh io.ReadCloser) (io.ReadCloser, error)
func FetchTileWithCache ¶
func IsOverZoom ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.