sg

Salı, Aralık 27, 2005

Re: How do you get a bitmap image (png)?


Wasn't it diem who wrote:
>
>Mike,
>
>Thanks for the reply. I 'clicked' on your example link an the map is
>just what I need. However, the 'obviousness' of the lat/lon values
>escapes me, probably a gene pool problem. Can you expand on how these
>values are derived?

Take the latitude

Multiply it by 1e6

If negative add 2^32

Take the integer value

And that's the value for the latitude_e6 parameter

var lng = longitude*1e6;
if (lng < 0) lng = lng + Math.pow(2,32);
lng = Math.floor(lng);

--
The Blackpool Community Church Google Map API Tutorial
http://www.econym.demon.co.uk/googlemaps/

0 Comments:

Yorum Gönder

<< Home


Komik Videolar   islam  şarkı sözleri  yemek tarifleri  gelibolu  huzur   sağlık