tile

package
v0.0.0-...-e550801 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2020 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Point

type Point struct {
	Lon_, Lat_ float64
}

func (Point) Lat

func (p Point) Lat() float64

func (Point) Lon

func (p Point) Lon() float64

type Server

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

func New

func New(prefix string, gIndex *osm.Data, styles map[string]map[string]config.Style) *Server

New to create new tile server instance

func (*Server) ServeHTTP

func (s *Server) ServeHTTP(w http.ResponseWriter, r *http.Request)

type Tile

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

func (*Tile) Draw

func (tl *Tile) Draw(osmData *osm.Data) error

func (*Tile) DrawPolyLine

func (t *Tile) DrawPolyLine(coords [][]float64, tags map[string]string)

func (*Tile) GetNw

func (t *Tile) GetNw() types.IPoint

func (*Tile) GetRelativeXY

func (t *Tile) GetRelativeXY(p types.IPoint) (float64, float64)

func (*Tile) GetSe

func (t *Tile) GetSe() types.IPoint

func (*Tile) GetZoom

func (tl *Tile) GetZoom() int

func (*Tile) IsCrossing

func (t *Tile) IsCrossing(t1, t2 s2.Point) bool

func (*Tile) IsInside

func (t *Tile) IsInside(p types.IPoint) bool

Jump to

Keyboard shortcuts

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