Suoritettu

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

Taidot: Matematiikka, Matlab ja Mathematica, Javascript, Algoritmi, Karttatiede ja kartat

Näytä lisää: 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

Tietoa työnantajasta:
( 2 arvostelua ) South Shields, United Kingdom

Projektin tunnus: #20963846

Myönnetty käyttäjälle:

Nawaz091993

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 1 päivässä
(16 Arvostelua)
4.4