I’m making an app that will show the current location in a map, but this map is a image (not google maps). How can i do that? Use a map that is not google maps.
I’m wondering if is possible, somehow, to relate the google maps coordinates with this map i want to use, using core location to get these coordinates.
Any ideias?
Here is a class I created for latitude/longitude conversions for both FAI globe and WGS-84 projections. You initialize it with a base geographic point (say: the center of your map), and it will compute distance in meters between that point and other points. If you then know the meters/pixel resolution of your map, you can easily convert it to pixel values.
The class is not very much documented, but I know you can figure it out. It uses another class of mine (Vector), but you should be able to replace that with CGPoint easily.
CAVEAT: it will not work with small scale maps. It is optimized for quick computing time assuming a large scale map (say: smaller than 100km across).
The .h file:
The .m file: