Pixels to Lat, Lng - Miller projection Map

I have the following function

function millerProjection(lat, lng, elem) {

// Create sec() function

function sec(value) {

return 1/[login to view URL](value);


// Create fucntion to change degree to radians

function toRadian(value) {

return value * [login to view URL] / 180;


lng = toRadian(lng);

lat = toRadian(lat);

// Miller Projection

var x = lng;

var y = -1.25*[login to view URL]([login to view URL](Math.PI/4+0.4*(lat)));

var width = [login to view URL]();

var scale = width/[login to view URL];

x *= scale;

y *= scale;

x += width/2;

y += width/2*0.7331989845

return [x,y];


This converts lat, lng coordinates into pixel position on a miller projection map

However we also need the reverse of that - convert pixel x,y to lat lng coordinates

Skills: Mathematics, Matlab and Mathematica, Javascript, Algorithm, Cartography & Maps

See more: maploco need click map, google map api click address show location map, need clickable map wordpress, need create map campground, lat lng address google maps, convert address lat lng using google maps, mysql calculate distance lat lng, google maps lat lng zip, google map postcode lat lng, google map address lat lng, lat lng google maps via form posten, javascript google maps lat lng address, google map country code lat lng, save lat lng google maps database, google map api set marker lat lng, i need a map designer, lat lng, map i, i need a map of the seven asia minor churches

About the Employer:
( 2 reviews ) South Shields, United Kingdom

Project ID: #20963846

Awarded to:


Greetings! I am an expert programmer with sound problem solving skills and I can easily reverse the function you have mentioned within an hour. Hoping to start right away!

£15 GBP in 1 day
(16 Reviews)