tiles

package
v0.0.0-...-63972f7 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2025 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const TILE_URL = "https://%s.basemaps.cartocdn.com/light_all/%d/%d/%d.png" // CartoDB Positron URL

Variables

This section is empty.

Functions

func FetchTile

func FetchTile(zoom int, lat float64, lon float64) (*mappers.RawTile, error)

FetchTile fetches a tile for the given zoom level and geographical latitude/longitude.

Types

type TileHandler

type TileHandler struct {
	Service services.TileService
}

func NewTileHandler

func NewTileHandler(service services.TileService) *TileHandler

NewTileHandler creates a new handler with the provided TileService.

func (*TileHandler) GetAllTiles

func (h *TileHandler) GetAllTiles(c echo.Context) error

GetAllTiles fetches all available tiles.

func (*TileHandler) GetPaginatedSatelliteMappings

func (h *TileHandler) GetPaginatedSatelliteMappings(c echo.Context) error

GetPaginatedSatelliteMappings fetches a paginated list of satellite mappings with optional search filters.

func (*TileHandler) GetSatelliteMappingsByNoradID

func (h *TileHandler) GetSatelliteMappingsByNoradID(c echo.Context) error

GetSatelliteMappingByNoradID handles requests to fetch tiles in a region.

func (*TileHandler) GetTilesInRegionHandler

func (h *TileHandler) GetTilesInRegionHandler(c echo.Context) error

GetTilesInRegionHandler handles requests to fetch tiles in a region.

func (*TileHandler) RecomputeMappingsByNoradID

func (h *TileHandler) RecomputeMappingsByNoradID(c echo.Context) error

RecomputeMappingsByNoradID handles requests to recompute satellite mappings for a given NORAD ID.

Jump to

Keyboard shortcuts

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