Documentation ¶
Index ¶
- func NewTileProviderMapLU() *sm.TileProvider
- func NewTileProviderNaturalEarth2() *sm.TileProvider
- type MapBuilder
- func (m *MapBuilder) AddObject(o sm.MapObject) *MapBuilder
- func (m *MapBuilder) AppendStation(s *darwingraph.StationNode) *MapBuilder
- func (m *MapBuilder) AppendStationEdge(s *darwingraph.StationEdge) *MapBuilder
- func (m *MapBuilder) Center(lon, lat float64) *MapBuilder
- func (m *MapBuilder) ForEachStationEdge(d *darwingraph.DarwinGraph, f func(*MapBuilder, *darwingraph.StationEdge)) *MapBuilder
- func (m *MapBuilder) ForEachStationNode(d *darwingraph.DarwinGraph, f func(*MapBuilder, *darwingraph.StationNode)) *MapBuilder
- func (m *MapBuilder) Render(w io.Writer) error
- func (m *MapBuilder) Run(t MapTask) *MapBuilder
- func (m *MapBuilder) Size(width, height int) *MapBuilder
- func (m *MapBuilder) StationRadius(r float64) *MapBuilder
- func (m *MapBuilder) TileProvider(p *sm.TileProvider) *MapBuilder
- func (m *MapBuilder) Zoom(z int) *MapBuilder
- type MapDef
- type MapService
- type MapTask
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) 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 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)
Click to show internal directories.
Click to hide internal directories.