Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server is a servever to get tiles from https://wiki.openstreetmap.org/wiki/tile_servers
func NewServer ¶
NewServer returns a new Server for the given URL url takes the format https://a.tile.openstreetmap.org/${z}/${x}/${y}.png
func (Server) Find ¶
Find returs a tile image based on latitude and longitude. The image.Point returned is the pixel coordinate of the lat/long position. Integers returned are the x/y tile numbers
Click to show internal directories.
Click to hide internal directories.