api

package
v0.0.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 14, 2025 License: BSD-3-Clause Imports: 17 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultSVGSizes

func DefaultSVGSizes() map[string]SVGSize

func GeoJSONHandler

func GeoJSONHandler(opts *GeoJSONHandlerOptions) (http.Handler, error)

func GeoJSONLDHandler

func GeoJSONLDHandler(opts *GeoJSONLDHandlerOptions) (http.Handler, error)
func NavPlaceHandler(opts *NavPlaceHandlerOptions) (http.Handler, error)

NavPlaceHandler will return a given record as a FeatureCollection for use by the IIIF navPlace extension, specifically as navPlace "reference" objects.

func SPRHandler

func SPRHandler(opts *SPRHandlerOptions) (http.Handler, error)

func SVGHandler

func SVGHandler(opts *SVGHandlerOptions) (http.Handler, error)

func SelectHandler

func SelectHandler(opts *SelectHandlerOptions) (http.Handler, error)

func WKTHandler added in v0.0.2

func WKTHandler(opts *WKTHandlerOptions) (http.Handler, error)

Types

type GeoJSONHandlerOptions

type GeoJSONHandlerOptions struct {
	Provider derivatives.Provider
}

type GeoJSONLDHandlerOptions

type GeoJSONLDHandlerOptions struct {
	Provider derivatives.Provider
}
type NavPlaceHandlerOptions struct {
	Provider    derivatives.Provider
	MaxFeatures int
}

type SPRHandlerOptions

type SPRHandlerOptions struct {
	Provider derivatives.Provider
}

type SVGHandlerOptions

type SVGHandlerOptions struct {
	Sizes    map[string]SVGSize
	Provider derivatives.Provider
}

type SVGSize

type SVGSize struct {
	Label     string
	MaxHeight int
	MaxWidth  int
}

type SelectHandlerOptions

type SelectHandlerOptions struct {
	Pattern  *regexp.Regexp
	Provider derivatives.Provider
}

type WKTHandlerOptions added in v0.0.2

type WKTHandlerOptions struct {
	Provider derivatives.Provider
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL