Documentation ¶
Index ¶
- Variables
- func FlipY(y int, z int, size int, bbox []float64, resolutions []float64) int
- func LatitudeToTile(lat float64, z int) int
- func LongitudeToTile(lon float64, z int) int
- func TileToBoundingBox(z int, x int, y int) []float64
- func TileToLatitude(y int, z int) float64
- func TileToLongitude(x int, z int) float64
Constants ¶
This section is empty.
Variables ¶
View Source
var R2D = 180 / math.Pi
View Source
var WebMercatorExtent = []float64{-20037508.34, -20037508.34, 20037508.34, 20037508.34}
View Source
var WebMercatorResolutions = []float64{
156543.03390000000945292413,
78271.51695000000472646207,
39135.75847500000236323103,
19567.87923750000118161552,
9783.93961875000059080776,
4891.96980937500029540388,
2445.98490468750014770194,
1222.99245234375007385097,
611.49622617187503692548,
305.74811308593751846274,
152.87405654296875923137,
76.43702827148437961569,
38.21851413574218980784,
19.10925706787109490392,
9.55462853393554745196,
4.77731426696777372598,
2.38865713348388686299,
1.19432856674194343150,
0.59716428337097171575,
0.29858214168548585787,
0.14929107084274292894,
0.07464553542137146447,
}
Functions ¶
func LatitudeToTile ¶
func LongitudeToTile ¶
func TileToLatitude ¶
func TileToLongitude ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.