types

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: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ItemTypeNode = iota
	ItemTypeWay
	ItemTypeRelation
)

Variables

This section is empty.

Functions

This section is empty.

Types

type IDrawable

type IDrawable interface {
	Draw(t ITile)
}

type IPoint

type IPoint interface {
	Lon() float64
	Lat() float64
}

type ITile

type ITile interface {
	GetNw() IPoint
	GetSe() IPoint
	IsInside(p IPoint) bool
	IsCrossing(p1, p2 s2.Point) bool
	DrawPolyLine(coords [][]float64, tags map[string]string)
	GetRelativeXY(p IPoint) (float64, float64)
	GetZoom() int
}

type Tag

type Tag struct {
	Key, Val string
}

Jump to

Keyboard shortcuts

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