Convert a tile coordinate to a lon/lat coordinate for a given zoom. Decimal tile coordinates are accepted.
Arguments
- X
horizontal map-tile coordinate (0 is map-left)
- Y
vertical map-tile coordinate (0 is map-top)
- zoom
zoom
- x
within tile x (0 is tile-left)
- y
within tile y (0 it tile-top)
- xpix
width of tile in pixels
- ypix
length of tile in pixels
Author
David Kahle david@kahle.io, based on
RgoogleMaps::XY2LatLon()
by Markus Loecher of Sense Networks
markus@sensenetworks.com