Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FetchMap ¶
func FetchMap(url string, layer string, bounds *geom.MultiPoint, size Size, params map[string]string) (result string, err error)
FetchMap : fetch a map from url and layer with bounds in EPSG:4326 and return a png with size
func GetXYfromLonLat ¶
func GetXYfromLonLat(bounds *geom.MultiPoint, size Size, point [2]float64) (coordinates [2]int)
GetXYfromLonLat
Types ¶
type Size ¶
type Size struct {
Width, Height int
}
Size : can either be Integer for the long side, or a struct consistant of width and height (both integers)
func (*Size) UnmarshalJSON ¶
UnmarshalJSON : Own Json Unmarshal to check if type is int or struct