Documentation ¶
Overview ¶
Package builder implements converter from CartoCSS to Mapnik/MapServer styles.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Builder ¶
type Builder struct {
// contains filtered or unexported fields
}
Builder builds map styles from MML and MSS files.
func (*Builder) SetDumpRulesDest ¶
SetDumpRulesDest enables internal debuging output.
func (*Builder) SetIncludeInactive ¶
SetIncludeInactive set whether status=off layers should be included in output.
type Cache ¶
type Cache struct {
// contains filtered or unexported fields
}
Cache builds styles and caches the results. It automatically detects changes to the MSS and MML files and rebuilds styles if requested again.
func (*Cache) ClearAll ¶
func (c *Cache) ClearAll()
ClearAll removes all cached styles. Needs to be called before shutdown to prevent leaking temp files when used _without_ SetDestination. Will remove all cached styles from cache dir when used _with_ SetDestination.
func (*Cache) SetDestination ¶
type FilesMissingError ¶
type FilesMissingError struct {
Files []string
}
func (*FilesMissingError) Error ¶
func (e *FilesMissingError) Error() string
type MapMaker ¶
type MapMaker interface { New(config.Locator) MapWriter // Type returns a unique string for this MapMaker, used for caching generated styles. Type() string FileSuffix() string }
MapMaker creates new MapWriters.
type MapOptionsSetter ¶
type MapZoomScaleSetter ¶
type MapZoomScaleSetter interface {
SetZoomScales([]int)
}
Click to show internal directories.
Click to hide internal directories.