Skip to content Skip to sidebar Skip to footer

Tile Projection Google Maps: Convert Distance To Screen Dimensions

I am using the CanvasTileProvider in Google Maps Android v2. I can convert lat long points to screen pixels. However I would like to create a method to convert a distance to scre

Solution 1:

At first you should be aware of the fact, that a circle on the surface of the earth is not exactly a circle on the map. But if you ignore this inaccuracy, you just need to create a LatLng point in 25nm distance, and then use latLngToPoint method to get the pixels. Comparing them with the pixels of the center, gives you the radius. For creating a LatLng in a given distance see the answer to this SO question (method move)


Post a Comment for "Tile Projection Google Maps: Convert Distance To Screen Dimensions"