Answers for "php convert latitude longitude to map tile"

PHP
0

php convert latitude longitude to map tile

$xtile = floor((($lon + 180) / 360) * pow(2, $zoom));
$ytile = floor((1 - log(tan(deg2rad($lat)) + 1 / cos(deg2rad($lat))) / pi()) /2 * pow(2, $zoom));
Posted by: Guest on April-19-2021

Code answers related to "php convert latitude longitude to map tile"

Browse Popular Code Answers by Language