Versions in this module Expand all Collapse all v0 v0.5.1 Aug 30, 2022 v0.5.0 Apr 6, 2020 Changes in this version + const EarthRadiusM + const MaxLat + const MaxLon + const MaxZ + const MinLat + const MinLon + const TileSize + var Placeholder = pixel.PictureDataFromImage(image.NewRGBA(image.Rect(0, 0, TileSize, TileSize))) + var UserAgent = "Slippy/Go-Test" + func BlankTile() image.Image + func FetchImage(url string) (image.Image, error) + func V(lat, lon float64, zoom int) pixel.Vec + type Coord [2]float64 + func C(lat, lon float64) Coord + func FromVec(v pixel.Vec, zoom int) Coord + func (c Coord) Lat() float64 + func (c Coord) Lon() float64 + func (c Coord) String() string + func (c Coord) Tile(zoom int) Tile + func (c Coord) Vec(zoom int) pixel.Vec + type ImageTile struct + Frame pixel.Rect + Loaded bool + Sprite *pixel.Sprite + func NewImageTile(t Tile, bounds pixel.Rect) ImageTile + func (t *ImageTile) Fetch() error + func (t *ImageTile) SetPicture(pic *pixel.PictureData) + func (t ImageTile) Draw(tg pixel.Target, m pixel.Matrix) + func (t ImageTile) Offset() pixel.Vec + type Loader struct + func NewLoader() *Loader + func (Loader) Fetch(t Tile) (*pixel.PictureData, error) + func (l *Loader) Picture(t Tile) (*pixel.PictureData, bool) + func (l *Loader) Prefetch(t Tile) + func (p Loader) Cancel() + type Map struct + func New(opts Options) *Map + func (m *Map) Bounds() pixel.Rect + func (m *Map) Center() Coord + func (m *Map) CenterVec() pixel.Vec + func (m *Map) Coord(v pixel.Vec) Coord + func (m *Map) Draw(tg pixel.Target, mt pixel.Matrix) + func (m *Map) FetchAsync() + func (m *Map) FetchSync() error + func (m *Map) Push(p Pusher, coords ...Coord) + func (m *Map) SetBounds(bounds pixel.Rect) + func (m *Map) SetCenter(center Coord) + func (m *Map) SetCenterVec(center pixel.Vec) + func (m *Map) SetOptions(opts Options) + func (m *Map) SetZoom(zoom int) + func (m *Map) Vec(c Coord) pixel.Vec + func (m *Map) Visible(c Coord) bool + func (m *Map) Zoom() int + type Options struct + Bounds pixel.Rect + Center Coord + Zoom int + type Pusher interface + Push func(pts ...pixel.Vec) + type Tile struct + X int + Y int + Z int + func (t Tile) Rect() pixel.Rect + func (t Tile) String() string + func (t Tile) Vec() pixel.Vec