I haven't had to use the Douglas-Peucker algorithm, but I understand others have so with success. http://en.wikipedia.org/wiki/Ramer%E2%80%93Douglas%E2%80%93Peucker_algorithm This algorithm will thin out the number of poly lines. Apparently there's an open source implementation in the Android MyTracks app, licensed under Apache 2.0. http://code.google.com/p/mytracks/source/browse/MyTracks/src/com/google/android/apps/mytracks/util/LocationUtils.java It's in the method decimate(). JP
On Jun 30, 2:46 pm, Felix Garcia Lainez <fgarcialai...@gmail.com> wrote: > Hello, > > The case is that i want to show a route on a MapView. Something simple > at first sight, simply i created a class that extends overlay and > implement draw method. On this method i iterate over an array of > GeoPoints and using a canvas y connect all points. It works fine more > or less, but i am having issues when drawing long routes with many > points. The problem is that application is very slow, and sometimes > MapActivity is closed simply doing a zoom in or zoom out on the map > with the route drawn... > > My question is how to improve performance on this situation.... > > Thanks! -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en