Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CoverLinestring ¶
func CoverLinestring(points geojson.LineString, zoom int) (TileHash, []TileFraction)
Calculate all tiles covered by linestring
func ExpireNodes ¶
Types ¶
type ByYX ¶
type ByYX []TileFraction
type NoExpireor ¶
type NoExpireor struct{}
func (NoExpireor) Expire ¶
func (_ NoExpireor) Expire(long, lat float64)
type Tile ¶
func CoverPoint ¶
Calculate all tiles covered by the point
type TileExpireor ¶
type TileExpireor struct {
// contains filtered or unexported fields
}
func NewTileExpireor ¶
func NewTileExpireor(maxZoom int) *TileExpireor
The tile expireor keeps a list of dirty XYZ tiles that are covered by the expired polygons, linestring and points
func (*TileExpireor) CalculateParentTiles ¶
func (te *TileExpireor) CalculateParentTiles()
func (*TileExpireor) Expire ¶
func (te *TileExpireor) Expire(long, lat float64)
func (*TileExpireor) ExpireLinestring ¶
func (te *TileExpireor) ExpireLinestring(nodes []element.Node)
func (*TileExpireor) ExpirePolygon ¶
func (te *TileExpireor) ExpirePolygon(nodes []element.Node)
func (*TileExpireor) WriteTiles ¶
func (te *TileExpireor) WriteTiles(w io.Writer)
type TileFraction ¶
func ToTileFraction ¶
func ToTileFraction(p geojson.Point, zoomLevel int) TileFraction
type TileHash ¶
type TileHash map[int]struct{}
func CoverPolygon ¶
Calculate all tiles covered by the linear rings of the polygon and the tiles enclosed by it
func (TileHash) CalculateParents ¶
func (TileHash) MergeTiles ¶
func (TileHash) TileExists ¶
Click to show internal directories.
Click to hide internal directories.