Documentation
¶
Index ¶
Constants ¶
View Source
const NamePrefix = "mvt_"
Variables ¶
This section is empty.
Functions ¶
func Register ¶
func Register(name string, init InitFunc, cleanup CleanupFunc) error
Register the provider with the system. This call is generally made in the init functions of the provider.
the clean up function will be called during shutdown of the provider to allow the provider to do any cleanup.
Types ¶
type CleanupFunc ¶
type CleanupFunc func()
CleanupFunc is called to when the system is shuting down, this allows the provider to cleanup.
type InitFunc ¶
InitFunc initialize a provider given a config map. The init function should validate the config map, and report any errors. This is called by the For function.
type Layer ¶
type Layer struct { // Name is the name of the Layer as recognized by the provider Name string // MVTName is the name of the layer to encode into the MVT. // this is often used when different provider layers are used // at different zoom levels but the MVT layer name is consistent MVTName string }
layer holds information about a query.
Click to show internal directories.
Click to hide internal directories.