Versions in this module Expand all Collapse all v0 v0.9.0 Jan 11, 2025 v0.8.0 Oct 18, 2024 Changes in this version type Bounds + SRID uint + func (b Bounds) BufferRelative(pct float64) Bounds + func (b Bounds) Centroid() (float64, float64) + func (b Bounds) ConfineToPsuedoMercatorRange() Bounds + func (b Bounds) Height() float64 + func (b Bounds) ToEWKT() string + func (b Bounds) ToWKT() string + func (b Bounds) Width() float64 v0.7.0 Sep 6, 2024 Changes in this version type Image + Content []byte + ContentType string + ForceSkipCache bool + func DecodeImage(b []byte) (*Image, error) + func (i Image) Encode() ([]byte, error) type TileRequest + func (t TileRequest) StringWithSeparator(sep string) string v0.6.0 Aug 17, 2024 Changes in this version + const SRIDPsuedoMercator + const SRIDWGS84 + func AllowedLayersFromContext(ctx context.Context) (*[]string, bool) + func LayerPatternMatchesFromContext(ctx context.Context) (*map[string]string, bool) + func LimitLayersFromContext(ctx context.Context) (*bool, bool) + func MakeChildSpan(ctx context.Context, newRequest *TileRequest, providerName string, ...) (context.Context, trace.Span) + func ReqFromContext(ctx context.Context) (*http.Request, bool) + func SkipCacheSaveFromContext(ctx context.Context) (*bool, bool) + func StartTimeFromContext(ctx context.Context) (time.Time, bool) + func UserIDFromContext(ctx context.Context) (*string, bool) type Bounds + func AllowedAreaFromContext(ctx context.Context) (*Bounds, bool) + type InvalidSridError struct + func (e InvalidSridError) Error() string + func (e InvalidSridError) External(messages config.ErrorMessages) string + func (e InvalidSridError) Type() TypeOfError type TileRequest + func (t TileRequest) GetBoundsProjection(srid uint) (*Bounds, error) + func (t TileRequest) IntersectsBoundsProjection(b Bounds, srid uint) (bool, error) v0.5.1 Aug 2, 2024 v0.5.0 Jul 26, 2024 Changes in this version + const MaxZoom + const TypeOfErrorAuth + const TypeOfErrorBadRequest + const TypeOfErrorBounds + const TypeOfErrorOther + const TypeOfErrorProvider + func ParseZoomString(str string) ([]int, error) + func RandomString() string + func ReplaceConfigValues(rawConfig map[string]interface{}, keyTag string, ...) (map[string]interface{}, error) + func ReplaceEnv(rawConfig map[string]interface{}) map[string]interface + func Ternary[T any](cond bool, a T, b T) T + type Bounds struct + East float64 + North float64 + South float64 + West float64 + func NewBoundsFromGeohash(hashStr string) (Bounds, error) + func (b Bounds) Contains(b2 Bounds) bool + func (b Bounds) FindTiles(layerName string, zoom uint, force bool) (*[]TileRequest, error) + func (b Bounds) Intersects(b2 Bounds) bool + func (b Bounds) IsNullIsland() bool + type Image = []byte + type InvalidArgumentError struct + Name string + Value any + func (e InvalidArgumentError) Error() string + func (e InvalidArgumentError) External(messages config.ErrorMessages) string + func (e InvalidArgumentError) Type() TypeOfError + type InvalidContentLengthError struct + Length int + func (e InvalidContentLengthError) Error() string + func (e InvalidContentLengthError) External(messages config.ErrorMessages) string + func (e InvalidContentLengthError) Type() TypeOfError + type InvalidContentTypeError struct + ContentType string + func (e InvalidContentTypeError) Error() string + func (e InvalidContentTypeError) External(messages config.ErrorMessages) string + func (e InvalidContentTypeError) Type() TypeOfError + type ProviderAuthError struct + Message string + func (e ProviderAuthError) Error() string + func (e ProviderAuthError) External(_ config.ErrorMessages) string + func (e ProviderAuthError) Type() TypeOfError + type RangeError struct + MaxValue float64 + MinValue float64 + ParamName string + func (e RangeError) Error() string + func (e RangeError) External(messages config.ErrorMessages) string + func (e RangeError) Type() TypeOfError + type RemoteServerError struct + StatusCode int + func (e RemoteServerError) Error() string + func (e RemoteServerError) External(messages config.ErrorMessages) string + func (e RemoteServerError) Type() TypeOfError + type RequestContext struct + AllowedArea Bounds + AllowedLayers []string + LayerPatternMatches map[string]string + LimitLayers bool + SkipCacheSave bool + UserIdentifier string + func BackgroundContext() *RequestContext + func NewRequestContext(req *http.Request) RequestContext + func (c *RequestContext) Value(keyAny any) any + type TileRequest struct + LayerName string + X int + Y int + Z int + func (t TileRequest) GetBounds() (*Bounds, error) + func (t TileRequest) IntersectsBounds(b Bounds) (bool, error) + func (t TileRequest) String() string + type TooManyTilesError struct + NumTiles uint64 + func (e TooManyTilesError) Error() string + func (e TooManyTilesError) External(messages config.ErrorMessages) string + func (e TooManyTilesError) Type() TypeOfError + type TypeOfError int + type TypedError interface + External func(errorMessages config.ErrorMessages) string + Type func() TypeOfError + type UnauthorizedError struct + Message string + func (e UnauthorizedError) Error() string + func (e UnauthorizedError) External(messages config.ErrorMessages) string + func (e UnauthorizedError) Type() TypeOfError