tile

package
v1.8.0 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2024 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Id added in v1.8.0

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

* Data structure representing a tile ID.

func CreateId added in v1.8.0

func CreateId(z uint8, x uint32, y uint32) Id

* Creates a tile ID based on zoom level, x and y coordinate.

func (*Id) X added in v1.8.0

func (this *Id) X() uint32

* Returns the X coordinate associated with this map tile.

func (*Id) Y added in v1.8.0

func (this *Id) Y() uint32

* Returns the Y coordinate associated with this map tile.

func (*Id) Z added in v1.8.0

func (this *Id) Z() uint8

* Returns the zoom level associated with this map tile.

type Image added in v1.8.0

type Image interface {
	Close() error
	Read(buf []byte) (int, error)
	ReadAt(buf []byte, offset int64) (int, error)
	Seek(offset int64, whence int) (int64, error)
}

* An image - either fetched from a tile server or stored in cache. * * Implements io.ReadSeekCloser and io.ReaderAt.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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