server

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2016 License: MIT Imports: 14 Imported by: 0

Documentation

Overview

Package server implements the http frontend

Index

Constants

View Source
const (
	// MaxTileSize is 500k
	MaxTileSize = 500000
	MaxZoom     = 20
)
View Source
const DefaultLogFormat = "{{.Time}}:{{.RequestIP}} —— Tile:{{.Z}}/{{.X}}/{{.Y}}"

Variables

This section is empty.

Functions

func RegisterMap

func RegisterMap(name string, layers []Layer) error

RegisterMap associates layers with map names

func Start

func Start(port string)

Start starts the tile server binding to the provided port

Types

type Layer

type Layer struct {
	Name        string
	MinZoom     int
	MaxZoom     int
	Provider    mvt.Provider
	DefaultTags map[string]interface{}
}

type Logger

type Logger struct {
	File   *os.File
	Format string
	// contains filtered or unexported fields
}
var L *Logger

func (*Logger) Log

func (l *Logger) Log(item logItem)

Jump to

Keyboard shortcuts

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