Documentation
¶
Overview ¶
Config loads and understand the tegola config format.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
// LocationName is the file name or http server that the config was read from.
// If this is an empty string, it means that the location was unknown. This is the case if
// the Parse() function is used directly.
LocationName string
Webserver Webserver `toml:"webserver"`
Cache map[string]interface{} `toml:"cache"`
// Map of providers.
Providers []map[string]interface{}
Maps []Map
}
Config represents a tegola config file.
type ErrInvalidProviderLayerName ¶
type ErrInvalidProviderLayerName struct {
ProviderLayerName string
}
func (ErrInvalidProviderLayerName) Error ¶
func (e ErrInvalidProviderLayerName) Error() string
type ErrMapNotFound ¶
type ErrMapNotFound struct {
MapName string
}
func (ErrMapNotFound) Error ¶
func (e ErrMapNotFound) Error() string
type ErrOverlappingLayerZooms ¶
func (ErrOverlappingLayerZooms) Error ¶
func (e ErrOverlappingLayerZooms) Error() string
type Map ¶
type Map struct {
Name string `toml:"name"`
Attribution string `toml:"attribution"`
Bounds []float64 `toml:"bounds"`
Center [3]float64 `toml:"center"`
Layers []MapLayer `toml:"layers"`
}
A Map represents a map in the Tegola Config file.
type MapLayer ¶
type MapLayer struct {
// Name is optional. If it's not defined the name of the ProviderLayer will be used.
// Name can also be used to group multiple ProviderLayers under the same namespace.
Name string `toml:"name"`
ProviderLayer string `toml:"provider_layer"`
MinZoom int `toml:"min_zoom"`
MaxZoom int `toml:"max_zoom"`
DefaultTags interface{} `toml:"default_tags"`
}
Click to show internal directories.
Click to hide internal directories.