Versions in this module Expand all Collapse all v0 v0.1.0 Feb 22, 2020 Changes in this version + var OSM = OSMTileMapper + func GenericBoundsFromTiles(t TileMapper, a Tile, b Tile, rightbottom LatLon) (LatLon, LatLon) + func GenericTilesFromBounds(t TileMapper, a LatLon, b LatLon, maxWidth uint, maxHeight uint, tileSize uint, ...) (Tile, Tile) + func SwapIfNeeded(a Tile, b Tile) (Tile, Tile) + type AdvancedTileProvider interface + RenderTileRange func(a Tile, b Tile) []TileImage + type CompositingTileProvider struct + func NewCompositingTileProvider(providers ...TileProvider) *CompositingTileProvider + func (c *CompositingTileProvider) RenderTile(t Tile) image.Image + type FallbackTileCache struct + func NewFallbackTileCache(provider TileProvider, fallbackProvider TileProvider, maxItems uint) *FallbackTileCache + func (c *FallbackTileCache) GoRender() + func (c *FallbackTileCache) RenderTile(t Tile) image.Image + func (c *FallbackTileCache) RenderTileRange(a Tile, b Tile) []TileImage + func (c *FallbackTileCache) UsedFallback() bool + type FallbackTileProvider interface + UsedFallback func() bool + type LatLon struct + Lat float64 + Lon float64 + type OSMTileMapper struct + TileSize uint + func (o OSMTileMapper) BoundsFromTiles(a Tile, b Tile) (LatLon, LatLon) + func (o OSMTileMapper) LatLon(t Tile) LatLon + func (o OSMTileMapper) Tile(l LatLon, zoomLevel uint) Tile + func (o OSMTileMapper) TilesFromBounds(a LatLon, b LatLon, maxWidth uint, maxHeight uint) (Tile, Tile) + type OSMTileProvider struct + ServerURL string + func NewOSMTileProvider(ServerURL string) *OSMTileProvider + func (o *OSMTileProvider) RenderTile(t Tile) image.Image + type StreamingTileCache struct + func NewStreamingTileCache(provider TileProvider, maxItems uint) *StreamingTileCache + func (c *StreamingTileCache) StreamTileRange(a Tile, b Tile) chan TileImage + type StreamingTileProvider interface + StreamTileRange func(a Tile, b Tile) chan TileImage + type TestTileProvider struct + Height int + Width int + func NewTestTileProvider(width, height int) *TestTileProvider + func (p *TestTileProvider) RenderTile(t Tile) image.Image + type Tile struct + X uint + Y uint + Z uint + func ShiftToBottomRight(t Tile) Tile + func (t Tile) CompareTo(a Tile) int + func (t Tile) GetChildTile(left bool, top bool) Tile + func (t Tile) GetParentTile() Tile + func (t Tile) IsInside(a Tile, b Tile) bool + type TileCache struct + func NewTileCache(provider TileProvider, maxItems uint) *TileCache + func (c *TileCache) RenderTile(t Tile) image.Image + func (c *TileCache) RenderTileRange(a Tile, b Tile) []TileImage + type TileImage struct + Img image.Image + Tile Tile + func (c TileImage) CompareTo(t Tile) int + type TileMapper interface + BoundsFromTiles func(a Tile, b Tile) (LatLon, LatLon) + LatLon func(t Tile) LatLon + Tile func(l LatLon, Zoom uint) Tile + TilesFromBounds func(a LatLon, b LatLon, maxWidth uint, maxHeight uint) (Tile, Tile) + type TileProvider interface + RenderTile func(t Tile) image.Image + type TileRenderModel struct + Img image.Image + NeedsRender bool + Rendering bool + RequestRender chan interface{} + func NewTileRenderModel(mapper TileMapper, provider TileProvider, leftTop LatLon, bottomRight LatLon) *TileRenderModel + func (m *TileRenderModel) GoRender() + func (m *TileRenderModel) InnerRender() + func (m *TileRenderModel) Render() image.Image + func (m *TileRenderModel) Start()