osm

package
v0.0.0-...-8062b39 Latest Latest
Warning

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

Go to latest
Published: May 30, 2023 License: GPL-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MAX_DOWNLOAD_THREADS = 2
	MAX_ZOOM_LEVEL       = 19
)

Variables

View Source
var ErrBusy = errors.New("Too many simultaneous requests")

Functions

This section is empty.

Types

type MapTiles

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

func NewMapTiles

func NewMapTiles() *MapTiles

func (*MapTiles) CancelRequestsExcept

func (m *MapTiles) CancelRequestsExcept(requestsToKeep map[TileCoord]struct{})

func (*MapTiles) GetTile

func (m *MapTiles) GetTile(coord TileCoord) (image.Image, error)

type TileCoord

type TileCoord struct {
	X, Y, Zoom int
}

Jump to

Keyboard shortcuts

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