K kbnambiar New Member Licensed User Longtime User Apr 11, 2013 #1 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:
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:
Erel B4X founder Staff member Licensed User Longtime User Apr 12, 2013 #2 Start by going over some of the related maps threads: Basic4android Search: map Upvote 0
warwound Expert Licensed User Longtime User Apr 12, 2013 #3 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
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.
K kbnambiar New Member Licensed User Longtime User Apr 14, 2013 #4 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
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.