Note that there are some explanatory texts on larger screens.

plurals
  1. POAndroid google maps show path
    primarykey
    data
    text
    <p>What I'm trying to do is register and show the path that the user is doing. I didn't find anything about to know if this is the right way, so I'd like your help.</p> <p>Is this a good idea with Google Maps from Google Play Services?</p> <p>Here is a image of what I'm doing: <a href="http://img818.imageshack.us/img818/9663/screenshot2013052911461.jpg" rel="nofollow">http://img818.imageshack.us/img818/9663/screenshot2013052911461.jpg</a></p> <p>As you can see I already did, but the problem is the movement of the map is not so smooth to follow the marker.</p> <p>Is there a way to do this without loading all the coordinates to the map every single update?</p> <p>I'm not sure about this solution, should I use another API? Which one would you recommend to me?</p> <p>Thanks!</p> <blockquote> <p>*<strong>A piece of code to try explain my doubt/problem:</strong> I have a list of the all points the gps gave to me while the user moves, everytime this list is updated I call this method.</p> <pre><code>private void refreshMap(List&lt;LatLng&gt; latLngList) { if (!latLngList.isEmpty()) { if (this.polylines.get(this.section) != null) { Polyline polyline = this.polylines.get(this.section); polyline.setPoints(latLngList); } else { PolylineOptions rectOptions = new PolylineOptions(); rectOptions.addAll(latLngList); Polyline polyline = this.googleMap.addPolyline(rectOptions); this.polylines.put(this.section, polyline); } // Creating a LatLng object for the current location LatLng latLng = latLngList.get(latLngList.size() - 1); // Showing the current location in Google Map this.googleMap.moveCamera(CameraUpdateFactory.newLatLng(latLng)); } } </code></pre> </blockquote>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload