简体   繁体   中英

Using the latitude and longitude gets the tile image with the location in it, But how to pinpoint that location?

I am given a latitude and longitude of a place. Then I apply global mercator projection formula. Then I am able to get a square image(256*256) with the location in it. I am using all this to display a map made my images from a customised google map, in my iphone app.

When zoom is high, even when we pinpoint randomly on that image, it will be ok. But when zoom decreases, that single image may constitue an entire nation sometimes and my pinpoint will be in another nation(on the same image).

Is there any mathematical or someother formula or something else which will help me to pinpoint the exact location of that place in that image?

I am not an expert on map projections, but you might check to see what projection Google uses. When you change the zoom level, your pin may be misplaced because the motion of your chosen location, using Mercator, doesn't come out the same as for Google.

Hope this helps.

John Doner

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM