Documentation
¶
Index ¶
- Variables
- func ConvertTracks(src []track) (tracks []storm.Track)
- func GetStorms(t time.Time) (storms []storm.Storm, err error)
- func Map(path string, dt time.Time, coords coordinates.Coordinates, opt *MapOptions) (t time.Time, img image.Image, err error)
- func Realtime(path string, coords coordinates.Coordinates, opt *MapOptions) (time.Time, image.Image, error)
- func URL(path string, t time.Time, coords coordinates.Coordinates, zoom float64, ...) string
- type MapOptions
- func (o MapOptions) Overlays() []string
- func (o *MapOptions) SetOverlays(overlays []string) *MapOptions
- func (o *MapOptions) SetSize(width int, height int) *MapOptions
- func (o *MapOptions) SetTimeZone(timezone *time.Location) *MapOptions
- func (o *MapOptions) SetZoom(zoom float64) *MapOptions
- func (o MapOptions) Size() (int, int)
- func (o MapOptions) TimeZone() *time.Location
- func (o MapOptions) Zoom() float64
- type StormID
- type ZoomEarthAPI
- func (ZoomEarthAPI) GetStorms(t time.Time) ([]storm.Storm, error)
- func (ZoomEarthAPI) Map(mt maps.MapType, t time.Time, coords coordinates.Coordinates, opt any) (time.Time, image.Image, error)
- func (api ZoomEarthAPI) Realtime(mt maps.MapType, coords coordinates.Coordinates, opt any) (time.Time, image.Image, error)
- func (ZoomEarthAPI) URL(mt maps.MapType, t time.Time, coords coordinates.Coordinates, opt any) string
Constants ¶
This section is empty.
Variables ¶
View Source
var ( DefaultTimeout = 2 * time.Minute DefaultColorDepth = 5000 )
Functions ¶
func ConvertTracks ¶
func Map ¶ added in v1.0.22
func Map(path string, dt time.Time, coords coordinates.Coordinates, opt *MapOptions) (t time.Time, img image.Image, err error)
func Realtime ¶ added in v1.0.16
func Realtime(path string, coords coordinates.Coordinates, opt *MapOptions) (time.Time, image.Image, error)
func URL ¶ added in v1.0.16
func URL(path string, t time.Time, coords coordinates.Coordinates, zoom float64, overlays []string) string
Types ¶
type MapOptions ¶ added in v1.0.16
type MapOptions struct {
// contains filtered or unexported fields
}
func NewMapOptions ¶ added in v1.0.16
func NewMapOptions() *MapOptions
func (MapOptions) Overlays ¶ added in v1.0.16
func (o MapOptions) Overlays() []string
func (*MapOptions) SetOverlays ¶ added in v1.0.17
func (o *MapOptions) SetOverlays(overlays []string) *MapOptions
func (*MapOptions) SetSize ¶ added in v1.0.17
func (o *MapOptions) SetSize(width int, height int) *MapOptions
func (*MapOptions) SetTimeZone ¶ added in v1.0.17
func (o *MapOptions) SetTimeZone(timezone *time.Location) *MapOptions
func (*MapOptions) SetZoom ¶ added in v1.0.17
func (o *MapOptions) SetZoom(zoom float64) *MapOptions
func (MapOptions) Size ¶ added in v1.0.17
func (o MapOptions) Size() (int, int)
func (MapOptions) TimeZone ¶ added in v1.0.17
func (o MapOptions) TimeZone() *time.Location
func (MapOptions) Zoom ¶ added in v1.0.16
func (o MapOptions) Zoom() float64
type ZoomEarthAPI ¶
type ZoomEarthAPI struct{}
func (ZoomEarthAPI) Map ¶ added in v1.0.22
func (ZoomEarthAPI) Map(mt maps.MapType, t time.Time, coords coordinates.Coordinates, opt any) (time.Time, image.Image, error)
func (ZoomEarthAPI) Realtime ¶ added in v1.0.16
func (api ZoomEarthAPI) Realtime(mt maps.MapType, coords coordinates.Coordinates, opt any) (time.Time, image.Image, error)
func (ZoomEarthAPI) URL ¶ added in v1.0.16
func (ZoomEarthAPI) URL(mt maps.MapType, t time.Time, coords coordinates.Coordinates, opt any) string
Click to show internal directories.
Click to hide internal directories.