Hello I am developing an application where .jpg images are to be used as maps. I am developing this application for trekking spots near my university where internet connection is too low.
So using only the pre-saved image as the map and GPS, I wish to make the user navigate. I want an idea of how to display the image which can be panned and zoomed. Also i wish to add an overlay over the image to display his current position. .
Plz give a brief idea….
Welcome to Stack Overflow — this is certainly possible with Google Maps. You can tell the map to load images for you — providing the bounding corners for each image.
This is not an easy problem to solve as there are many, many moving parts:
How is this acheived? Well – that’s the hard part. You basically need to extend Google Map’s Overlay Class and override the
drawmethod.drawmethodpostInvalidateon your map view to force it to redraw the tiles.It is worth noting that Google Maps will cache some imagery — if your university’s campus is small enough you may be able to fit the whole thing in the cache. Then you don’t have to do any fancy work at all.