Versions in this module Expand all Collapse all v2 v2.0.1 Aug 19, 2020 v2.0.0 Oct 10, 2019 Changes in this version + var Debug = LogLevel(C.MAPNIK_DEBUG) + var Error = LogLevel(C.MAPNIK_ERROR) + var None = LogLevel(C.MAPNIK_NONE) + var Version version + var Warn = LogLevel(C.MAPNIK_WARN) + func Encode(img image.Image, format string) ([]byte, error) + func LogSeverity(level LogLevel) + func RegisterDatasources(path string) error + func RegisterFonts(path string) error + type LayerSelector interface + Select func(layername string) Status + type LogLevel int + type Map struct + func New() *Map + func NewSized(width, height int) *Map + func (m *Map) BackgroundColor() color.NRGBA + func (m *Map) Free() + func (m *Map) Load(stylesheet string) error + func (m *Map) Render(opts RenderOpts) ([]byte, error) + func (m *Map) RenderImage(opts RenderOpts) (*image.NRGBA, error) + func (m *Map) RenderToFile(opts RenderOpts, path string) error + func (m *Map) ResetLayers() + func (m *Map) ResetMaxExtent() + func (m *Map) Resize(width, height int) + func (m *Map) SRS() string + func (m *Map) ScaleDenominator() float64 + func (m *Map) SelectLayers(selector LayerSelector) bool + func (m *Map) SetBackgroundColor(c color.NRGBA) + func (m *Map) SetBufferSize(s int) + func (m *Map) SetMaxExtent(minx, miny, maxx, maxy float64) + func (m *Map) SetSRS(srs string) + func (m *Map) ZoomAll() error + func (m *Map) ZoomTo(minx, miny, maxx, maxy float64) + type RenderOpts struct + Format string + Scale float64 + ScaleFactor float64 + type SelectorFunc func(string) Status + func (f SelectorFunc) Select(layername string) Status + type Status int + const Default + const Exclude + const Include Other modules containing this package github.com/omniscale/go-mapnik