Search
 
SCRIPT & CODE EXAMPLE
 

PHP

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));
Comment

PREVIOUS NEXT
Code Example
Php :: execute function php 
Php :: eloquent insert 
Php :: php script read source code web 
Php :: php Program to check if a given year is leap year 
Php :: laravel make:middleware 
Php :: Prevent direct url access to php file 
Php :: laravel max length format 
Php :: return message in laravel 
Php :: laravel where in 
Php :: array join pgp 
Php :: laravel santum 
Php :: php curl detect 404 
Php :: add key value array php 
Php :: laravel permission 
Php :: laravel passport Route [login] not defined 
Php :: laravel model factory attribute 
Php :: how get the size of image in laravel 
Php :: get all error message in array form laravel validation in laravel 
Php :: how to setup cron job for laravel queues on shared hosting 
Php :: asin() php 
Php :: get data without pivot relation laravel 
Php :: laravel validation exists array 
Php :: firstOrFail() 
Php :: php array current 
Php :: php method type hinting 
Php :: laravel collection methods 
Php :: get users by role name - spatie/laravel-permission 
Php :: how change resource route parameters lravel 
Php :: laravel migration change column order 
Php :: wp php footer date automatically 
ADD CONTENT
Topic
Content
Source link
Name
4+9 =