package
0.11.1
Repository: https://github.com/paulmach/orb.git
Documentation: pkg.go.dev

# README

orb/maptile Godoc Reference

Package maptile provides types and methods for working with web mercator map tiles. It defines a tile as:

type Tile struct {
    X, Y uint32
    Z    Zoom
}

type Zoom uint32

Functions are provided to create tiles from lon/lat points as well as quadkeys. The tile defines helper methods such as Parent(), Children(), Siblings(), etc.

List of sub-package utilities

  • tilecover - computes the covering set of tiles for an orb.Geometry.

Similar libraries in other languages:

# Packages

Package tilecover computes the covering set of tiles for an orb.Geometry.

# Functions

At creates a tile for the point at the given zoom.
ChildrenInZoomRange returns all the children tiles of tile from ranges [zoomStart, zoomEnd], both ends inclusive.
Fraction returns the precise tile fraction at the given zoom.
FromQuadkey creates the tile from the quadkey.
New creates a new tile with the given coordinates.

# Structs

Tile is an x, y, z web mercator tile.

# Type aliases

Set is a map/hash of tiles.
Tiles is a set of tiles, later we can add methods to this.
A Zoom is a strict type for a tile zoom level.