maps

package
v0.0.0-...-fd78167 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewTileProviderMapLU

func NewTileProviderMapLU() *sm.TileProvider

func NewTileProviderNaturalEarth2

func NewTileProviderNaturalEarth2() *sm.TileProvider

Types

type MapBuilder

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

func NewMapBuilder

func NewMapBuilder() *MapBuilder

func (*MapBuilder) AddObject

func (m *MapBuilder) AddObject(o sm.MapObject) *MapBuilder

func (*MapBuilder) AppendStation

func (m *MapBuilder) AppendStation(s *darwingraph.StationNode) *MapBuilder

func (*MapBuilder) AppendStationEdge

func (m *MapBuilder) AppendStationEdge(s *darwingraph.StationEdge) *MapBuilder

func (*MapBuilder) Center

func (m *MapBuilder) Center(lon, lat float64) *MapBuilder

func (*MapBuilder) ForEachStationEdge

func (m *MapBuilder) ForEachStationEdge(d *darwingraph.DarwinGraph, f func(*MapBuilder, *darwingraph.StationEdge)) *MapBuilder

func (*MapBuilder) ForEachStationNode

func (m *MapBuilder) ForEachStationNode(d *darwingraph.DarwinGraph, f func(*MapBuilder, *darwingraph.StationNode)) *MapBuilder

func (*MapBuilder) Render

func (m *MapBuilder) Render(w io.Writer) error

func (*MapBuilder) Run

func (m *MapBuilder) Run(t MapTask) *MapBuilder

func (*MapBuilder) Size

func (m *MapBuilder) Size(width, height int) *MapBuilder

func (*MapBuilder) StationRadius

func (m *MapBuilder) StationRadius(r float64) *MapBuilder

func (*MapBuilder) TileProvider

func (m *MapBuilder) TileProvider(p *sm.TileProvider) *MapBuilder

func (*MapBuilder) Zoom

func (m *MapBuilder) Zoom(z int) *MapBuilder

type MapDef

type MapDef struct {
	Name    string  // Name of map in -map parameter
	Handler MapTask // Function to plot map
}

type MapService

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

MapService generates a map covering the UK of the lines in a RailMap

func (*MapService) Init

func (m *MapService) Init(k *kernel.Kernel) error

func (*MapService) Name

func (m *MapService) Name() string

func (*MapService) PostInit

func (m *MapService) PostInit() error

func (*MapService) Start

func (m *MapService) Start() error

type MapTask

type MapTask func(builder *MapBuilder)

Jump to

Keyboard shortcuts

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