Documentation ¶
Index ¶
- Constants
- type CursorType
- type Feature
- type Geometry
- type Layer
- type Point
- type Shape
- func (s *Shape) Append(point Point)
- func (s *Shape) Equals(that *Shape) bool
- func (s *Shape) GetCursorType() CursorType
- func (s *Shape) GetPoints() []Point
- func (s *Shape) Head() Point
- func (s *Shape) Insert(i int, p Point) (err error)
- func (s *Shape) Tail() Point
- func (s *Shape) ToCommands() (cmds []*command)
- type TileAdapter
Constants ¶
View Source
const ( MoveTo = 0x1 LineTo = 0x2 ClosePath = 0x7 )
View Source
const VT_VERSION = 2
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CursorType ¶
type CursorType string
const ( AbsCur CursorType = "ABSOLUTE" RelCur CursorType = "RELATIVE" )
type Feature ¶
type Feature struct {
// contains filtered or unexported fields
}
func NewFeatureAdapter ¶
type Layer ¶
type Layer struct {
// contains filtered or unexported fields
}
func (*Layer) AddFeature ¶
type Shape ¶
type Shape struct {
// contains filtered or unexported fields
}
func NewPointShape ¶
func NewPolygon ¶
func (*Shape) GetCursorType ¶
func (s *Shape) GetCursorType() CursorType
func (*Shape) ToCommands ¶
func (s *Shape) ToCommands() (cmds []*command)
type TileAdapter ¶
type TileAdapter struct {
// contains filtered or unexported fields
}
func NewTileAdapter ¶
func NewTileAdapter(x, y, z uint) *TileAdapter
func (*TileAdapter) GetTile ¶
func (t *TileAdapter) GetTile() *vt.Tile
func (*TileAdapter) GetTileBytes ¶
func (t *TileAdapter) GetTileBytes() ([]byte, error)
func (*TileAdapter) GetTileGz ¶
func (t *TileAdapter) GetTileGz() ([]byte, error)
Directories ¶
Path | Synopsis |
---|---|
Package vector_tile provides the go code needed to read and write Mapbox vector tiles (https://github.com/mapbox/vector-tile-spec).
|
Package vector_tile provides the go code needed to read and write Mapbox vector tiles (https://github.com/mapbox/vector-tile-spec). |
Click to show internal directories.
Click to hide internal directories.