1

I am trying to make a android application that display a map when application run without using any internet connection ie. offline map show.On map i want to plot some latitude and longitude that are stored in my database.Basically i want plot a offline map and on map i need to display some marker from my database.But i could not plot offline map and marker.I searched more on Google but i could not found any better solution.

Can any one help me how can i plot map offline. thank You

user3260296
  • 23
  • 1
  • 7

1 Answers1

0

You will need to use GeoPoint lat-lon, convert it into a point (x,y) (co-ordinate geometry), and use canvas to draw the line/shape you want. Eg.:

GeoPoint gp = new GeoPoint((int)(lat * 1E6), (int)(lon * 1E6));

and for drawing using the canvas, refer to:
How to draw filled polygon?

Also,
Drawing an empty polygon given a set of points on a Map Overylay (Android 2.1)

Community
  • 1
  • 1
Pararth
  • 8,114
  • 4
  • 34
  • 51
  • Sir,firstly i could not plot an offline map so please help for plotting offline map. – user3260296 Feb 03 '14 at 11:21
  • start with running the app without internet application and take static lat, lon co-ordinates. Can you see the map right now?(without location identifiers etc) Check the links above and start with a line between a lat,lon pairs – Pararth Feb 03 '14 at 11:24