Help with Maps and Drawing...

kbnambiar

New Member
Licensed User
Longtime User
I am a newbie and trying to work on a route tracing project.
I need help with:
1) Opening a map of my current location
2) Draw lines connecting a set of lan/long coordinates which I will read from a text file.

Any help in this regard is highly appreciated.

:sign0085:
 

warwound

Expert
Licensed User
Longtime User
You currently have three options:
  • GoogleMaps for Android.
    This library has support for Polylines which you can use to draw a route on the map.
  • OSMDroid.
    OSMDroid supports polylines too with it's PathOverlay object.
    OSMDroid also has a built in MyLocationOverlay object that uses the device GPS to automatically get the device location and draw it on the map.
  • Use a WebView to display a webpage containing a (javascript) Google Maps API v3 based map.
    With this option you have use of all the functionality of the Google Maps API v3 - that included polylines.
    But it's not a true android based map, it's a webpage in a WebView.
    Performance is not that good on low powered devices and saving restoring map state on orientation change can be problematic.
The Google Maps for Android and OSMDroid libraries are in my opinion the better options.

Martin.
 
Upvote 0

kbnambiar

New Member
Licensed User
Longtime User
Thanks Erel and Martin for providing the pointers.

I am going through the Map threads and yes, it covers what Martin has pointed out.

Appreciate your help.
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…