Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrNoEntity = errors.New("entity does not exist") ErrBadInput = errors.New("invalid input") )
Functions ¶
This section is empty.
Types ¶
type Response ¶
type Response struct {
Status string `json:"status"`
Message string `json:"message"`
StatusCode int `json:"code"`
}
Response describes a status response
func NewResponse ¶
NewResponse creates a new status response based on parameters
type Tile ¶
type TileJSON ¶
type TileJSON struct {
// TileJSON spec fields
TileJSON string `json:"tilejson"`
Name string `json:"name,omitempty"`
Description string `json:"description,omitempty"`
Version string `json:"version,omitempty"`
Attribution string `json:"attribution,omitempty"`
Template string `json:"template,omitempty"`
Legend string `json:"legend,omitempty"`
Scheme string `json:"scheme,omitempty"`
Tiles []string `json:"tiles"`
Grids []string `json:"grids,omitempty"`
Data []string `json:"data,omitempty"`
MinZoom int `json:"minzoom,omitempty"`
MaxZoom int `json:"maxzoom,omitempty"`
Bounds [4]float64 `json:"bounds,omitempty"`
Center [3]float64 `json:"center,omitempty"`
// Custom fields
Format string `json:"format,omitempty"`
Type string `json:"type,omitempty"`
*mbtiles.LayerData `json:",omitempty"`
}
TileJSON describes a tileset in JSON format
Click to show internal directories.
Click to hide internal directories.