Documentation ¶
Index ¶
- func RegisterDatasources(path string)
- func RegisterFonts(path string)
- func Version() string
- type Coord
- type Map
- func (m *Map) Free()
- func (m *Map) Load(stylesheetFile string) error
- func (m *Map) LoadString(stylesheet string) error
- func (m *Map) Projection() Projection
- func (m *Map) RenderToFile(path string) error
- func (m *Map) RenderToMemoryPng() ([]byte, error)
- func (m *Map) Resize(width, height uint32)
- func (m *Map) SRS() string
- func (m *Map) SetBufferSize(s int)
- func (m *Map) SetSRS(srs string)
- func (m *Map) ZoomAll() error
- func (m *Map) ZoomToMinMax(minx, miny, maxx, maxy float64)
- type Projection
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterDatasources ¶
func RegisterDatasources(path string)
func RegisterFonts ¶
func RegisterFonts(path string)
Types ¶
type Map ¶
type Map struct {
// contains filtered or unexported fields
}
Map base type
func (*Map) LoadString ¶
LoadString initializes the map not from a file but from a stylesheet provided as a string.
func (*Map) Projection ¶
func (m *Map) Projection() Projection
func (*Map) RenderToFile ¶
func (*Map) RenderToMemoryPng ¶
func (*Map) SetBufferSize ¶
func (*Map) ZoomToMinMax ¶
type Projection ¶
type Projection struct {
// contains filtered or unexported fields
}
Projection from one reference system to the other
func (Projection) Forward ¶
func (p Projection) Forward(coord Coord) Coord
func (*Projection) Free ¶
func (p *Projection) Free()
Click to show internal directories.
Click to hide internal directories.