Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var MapDataPath = "./static/maps/map.json"
Functions ¶
func SaveMapData ¶
Types ¶
type Building ¶
type Building struct { Floors []*Floor `json:"floors,omitempty"` Name string `json:"name,omitempty"` SIS string `json:"sis,omitempty"` Position *LatLng `json:"position,omitempty"` Address string Image string Description string }
func LoadMapData ¶
type Coords ¶
type Coords struct { North float64 `json:"north,omitempty"` South float64 `json:"south,omitempty"` East float64 `json:"east,omitempty"` West float64 `json:"west,omitempty"` }
func (Coords) OverlapLatLng ¶
type Floor ¶
type Floor struct { Name string `json:"floor,omitempty"` Coords *Coords `json:"coords,omitempty"` Image string `json:"image,omitempty"` Rooms []*Room `json:"rooms,omitempty"` Rotation float64 `json:"rotation,omitempty"` RotatedImage draw.Image `json:"-"` ImageWG sync.WaitGroup `json:"-"` ImageOnce sync.Once `json:"-"` }
type ZoomableCoord ¶
Click to show internal directories.
Click to hide internal directories.