Versions in this module Expand all Collapse all v1 v1.0.3 Mar 14, 2024 v1.0.2 Mar 7, 2024 v1.0.1 Feb 20, 2024 Changes in this version + const TileJSONVersion + func NewTileBounds(minLon, minLat, maxLon, maxLat float64) *[4]float64 + func NewTileCenter(lon, lat float64, zoom float64) *[3]float64 + func StructToFields(v interface{}) map[string]FieldType + func StructToProperties(v interface{}) map[string]interface + func TrailingZeros32(x uint32) int + type CoordsTransform interface + ToEarth func(point geography.Point) geography.Point + ToMars func(point geography.Point) geography.Point + type Feature interface + Properties func() map[string]interface{} + ToGeom func() geography.Geom + type FeatureID interface + ID func() uint64 + type FieldType string + const FieldTypeBoolean + const FieldTypeNumber + const FieldTypeString + type Layer struct + Extent uint32 + Features []Feature + Name string + func NewLayer(name string, extent uint32, features ...Feature) *Layer + type MapTile struct + Layers []*Layer + X uint32 + Y uint32 + Z uint32 + func NewMapTile(z, x, y uint32) *MapTile + func (t *MapTile) AddLayers(layers ...*Layer) + func (t *MapTile) AddTileLayers(tileLayers ...TileLayer) (e error) + func (t *MapTile) BBox() geography.Bound + func (t *MapTile) MarshalMVT(w *mvt.MVTWriter) error + func (t *MapTile) NewTransform(extent uint32) geography.Transform + func (t *MapTile) SetCoordsTransform(coordsTransform CoordsTransform) + type SchemeType string + const SchemeTypeTMLS + const SchemeTypeXYZ + type TileJSON struct + Attribution *string + Bounds *[4]float64 + Center *[3]float64 + Data []string + Description string + Format string + Grids []string + Legend string + MaxZoom uint + MinZoom uint + Name string + Scheme SchemeType + Template string + TileJSON string + Tiles []string + VectorLayers []VectorLayer + Version string + type TileLayer interface + Features func(tile *MapTile) ([]Feature, error) + Fields func() map[string]FieldType + Name func() string + type TileLayerExtentConf interface + Extent func() uint32 + type VectorLayer struct + Description string + Fields map[string]FieldType + ID string + MaxZoom uint + MinZoom uint