debug

package
v0.10.4 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

The debug provider returns features that are helpful for debugging a tile including a box for the tile edges and a point in the middle of the tile with z,x,y values encoded

Index

Constants

View Source
const (
	LayerDebugTileOutline = "debug-tile-outline"
	LayerDebugTileCenter  = "debug-tile-center"
)
View Source
const Name = "debug"

Variables

This section is empty.

Functions

func NewTileProvider added in v0.6.0

func NewTileProvider(config dict.Dicter) (provider.Tiler, error)

NewProvider Setups a debug provider. there are not currently any config params supported

Types

type Layer

type Layer struct {
	// contains filtered or unexported fields
}

func (Layer) GeomType

func (l Layer) GeomType() geom.Geometry

func (Layer) Name

func (l Layer) Name() string

func (Layer) SRID

func (l Layer) SRID() uint64

type Provider

type Provider struct{}

Provider provides the debug provider

func (*Provider) Layers

func (p *Provider) Layers() ([]provider.LayerInfo, error)

Layers returns information about the various layers the provider supports

func (*Provider) TileFeatures added in v0.6.0

func (p *Provider) TileFeatures(ctx context.Context, layer string, tile provider.Tile, fn func(f *provider.Feature) error) error

Jump to

Keyboard shortcuts

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