How do you calculate latitude and longitude of a point in a static map?

المشرف العام

Administrator
طاقم الإدارة
Background: I have generated a static map (map.png) of a particular city using mapnik and osm data of the highest zoom level. I am able to zoom in and zoom out successfully using my Java program. It is an offline desktop application.

Question: I want to represent a point at a particular latitude and longitude on this map. How do I do it?

I went through the following references:http://wiki.openstreetmap.org/wiki/Zoom_levelshttp://wiki.openstreetmap.org/wiki/Slippy_map_tilenames#Resolution_and_ScaleHow to plot a point on a static Google map [png]?

I'm still not able to understand how to plot it on a static map by calculating a specific latitude and longitude at a particular zoom level with the image having a specific pixel width and height.



أكثر...
 
أعلى