function _lat2mercator in Geolocation Field 7
Helper function converts latitude to mercator value (Mercator projection).
1 call to _lat2mercator()
- _geolocation_html5_lat2px in modules/
geolocation_html5/ geolocation_html5.module - Helper function converts latitude pixel value for display in image map.
File
- modules/
geolocation_html5/ geolocation_html5.module, line 166 - HTML5 widget and formaters for Geolocation.
Code
function _lat2mercator($latitude) {
return log(tan($latitude * pi() / 180) + 1 / cos($latitude * pi() / 180));
}