Documentation
¶
Overview ¶
Package mapdata decodes bounded inner map payloads without network or rendering.
Index ¶
- Variables
- func Decode(format mapmodel.MapFormat, payload []byte) (*mapmodel.MapSnapshot, error)
- func MapToPixel(grid mapmodel.MapGrid, point mapmodel.MapPoint) (mapmodel.MapPoint, error)
- func PixelRectangleToMap(grid mapmodel.MapGrid, rectangle mapmodel.MapRectangle) (mapmodel.MapRectangle, error)
- func PixelToMap(grid mapmodel.MapGrid, point mapmodel.MapPoint) (mapmodel.MapPoint, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrMalformed = errors.New("malformed map data")
ErrMalformed identifies unsupported, truncated, or inconsistent map data.
Functions ¶
func MapToPixel ¶
MapToPixel converts source-frame world coordinates to displayed top-down pixels.
func PixelRectangleToMap ¶
func PixelRectangleToMap(grid mapmodel.MapGrid, rectangle mapmodel.MapRectangle) (mapmodel.MapRectangle, error)
PixelRectangleToMap validates a displayed raster rectangle and converts its corners.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.