Documentation ¶
Index ¶
- func LatLonXY(lat, lon float64, tileX, tileY, tileZ int) (x, y float64)
- func TileBounds(tileX, tileY, tileZ int) (minLat, minLon, maxLat, maxLon float64)
- type Feature
- func (f *Feature) AddTag(key string, value interface{})
- func (f *Feature) ClosePath()
- func (f *Feature) CubicTo(x1, y1, x2, y2, x3, y3 float64)
- func (f *Feature) LineTo(x, y float64)
- func (f *Feature) MoveTo(x, y float64)
- func (f *Feature) QuadraticTo(x1, y1, x2, y2 float64)
- func (f *Feature) SetID(id uint64)
- type GeometryType
- type Layer
- type Tile
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func TileBounds ¶ added in v0.1.1
TileBounds returns the lat/lon bounds around a tile.
Types ¶
type Feature ¶
type Feature struct {
// contains filtered or unexported fields
}
Feature represents a feature
func (*Feature) QuadraticTo ¶
QuadraticTo draw a quadratic curve
type GeometryType ¶
type GeometryType byte
GeometryType represents geometry type
const ( // Unknown is an unknown geometry type Unknown GeometryType = 0 // Point is a point Point GeometryType = 1 // LineString is a line string LineString GeometryType = 2 // Polygon is a polygon Polygon GeometryType = 3 )
type Layer ¶
type Layer struct {
// contains filtered or unexported fields
}
Layer represents a layer
func (*Layer) AddFeature ¶
func (l *Layer) AddFeature(geomType GeometryType) *Feature
AddFeature add a geometry feature
Click to show internal directories.
Click to hide internal directories.