View Single Post
gnuite's Avatar
Posts: 1,245 | Thanked: 421 times | Joined on Dec 2005
#433
Originally Posted by Goldy View Post
Yes it works well to show China map now! thanks very much!

Just curious how do you get the url?
I went to the URL that you sent me in my browser (any browser should work, I think, but I used a Mozilla-based one), and once I saw the javascript-enabled map, I right-clicked on it and selected "Copy Image Address to Clipboard". I then examined the URL and found the x, y, and zoom variables. This particular example's URL looked like this:

http://mapgoogle.mapabc.com/googlechina/maptile?v=w2.61&x=11&y=6&zoom=13

It was pretty easy to interpret because it was identical to normal Google's URL format. It was really just a matter of discovering the hostname and path of the map script (mapgoogle.mapabc.com/googlechina/maptile).

Originally Posted by Goldy View Post
btw i m still interested in converting other formats of maps. how to convert the lon-lan to the index number and the specfic pixel in the 256X256 image, and vise verser? i thought out a formula but i m doubhtful that it might be wrong.
Take a look at this post to get an idea about how to convert lat/lon to tile number. If you know C, you can look at the code to get more details. Let me know if you have any specific questions about it.