Documentation
¶
Index ¶
- Variables
- func CreateGIF(framePaths []string, timestamps []string, background image.Image, ...) error
- func GetBackground(ctx context.Context, bounds Bounds, cacheDir string, targetSize int) (image.Image, error)
- func LatLonToPixel(lat, lon float64, bounds Bounds, imageSize int) (x, y int)
- func LoadFrame(path string) (image.Image, error)
- type Bounds
- type Tile
Constants ¶
This section is empty.
Variables ¶
View Source
var BelgiumBounds = Bounds{
North: 51.6,
South: 49.4,
East: 6.5,
West: 2.3,
}
BelgiumBounds covers the Belgium radar area
View Source
var NetherlandsBounds = Bounds{
North: 53.6,
South: 50.7,
East: 7.3,
West: 3.3,
}
NetherlandsBounds covers the Netherlands radar area
Functions ¶
func CreateGIF ¶
func CreateGIF(framePaths []string, timestamps []string, background image.Image, markerX, markerY int, speed float64, outputPath string) error
CreateGIF creates an animated GIF from radar frames with background, marker, and timestamps
func GetBackground ¶
func GetBackground(ctx context.Context, bounds Bounds, cacheDir string, targetSize int) (image.Image, error)
GetBackground fetches or loads cached background map for given bounds
func LatLonToPixel ¶
LatLonToPixel converts lat/lon to pixel coordinates within the given bounds Uses Mercator projection for accurate Y positioning on OSM-based maps
Types ¶
Click to show internal directories.
Click to hide internal directories.