Versions in this module Expand all Collapse all v0 v0.10.0 Nov 8, 2023 Changes in this version + const DefaultExtent + var ErrDataIsGZipped = errors.New("failed to unmarshal, data possibly gzipped") + var MapboxGLDefaultExtentBound = orb.Bound + func Marshal(layers Layers) ([]byte, error) + func MarshalGzipped(layers Layers) ([]byte, error) + type Layer struct + Extent uint32 + Features []*geojson.Feature + Name string + Version uint32 + func NewLayer(name string, fc *geojson.FeatureCollection) *Layer + func (l *Layer) Clip(box orb.Bound) + func (l *Layer) ProjectToTile(tile maptile.Tile) + func (l *Layer) ProjectToWGS84(tile maptile.Tile) + func (l *Layer) RemoveEmpty(lineLimit, areaLimit float64) + func (l *Layer) Simplify(s orb.Simplifier) + type Layers []*Layer + func NewLayers(layers map[string]*geojson.FeatureCollection) Layers + func Unmarshal(data []byte) (Layers, error) + func UnmarshalGzipped(data []byte) (Layers, error) + func (ls Layers) Clip(box orb.Bound) + func (ls Layers) ProjectToTile(tile maptile.Tile) + func (ls Layers) ProjectToWGS84(tile maptile.Tile) + func (ls Layers) RemoveEmpty(lineLimit, areaLimit float64) + func (ls Layers) Simplify(s orb.Simplifier) + func (ls Layers) ToFeatureCollections() map[string]*geojson.FeatureCollection